2020-09-25 16:43:53 +00:00
|
|
|
project(mods)
|
|
|
|
|
2024-11-20 00:57:43 +00:00
|
|
|
# Build
|
|
|
|
add_library(mods SHARED
|
2024-01-24 02:57:57 +00:00
|
|
|
# compat
|
2024-04-02 23:22:01 +00:00
|
|
|
src/compat/compat.cpp
|
|
|
|
src/compat/egl.cpp
|
|
|
|
src/compat/x11.cpp
|
|
|
|
src/compat/bcm_host.cpp
|
2024-10-20 05:19:08 +00:00
|
|
|
src/compat/sdl.cpp
|
2024-01-24 02:57:57 +00:00
|
|
|
# readdir
|
2024-04-02 23:22:01 +00:00
|
|
|
src/readdir/readdir.cpp
|
2024-01-24 02:57:57 +00:00
|
|
|
# feature
|
2024-04-02 23:22:01 +00:00
|
|
|
src/feature/feature.cpp
|
2024-01-24 02:57:57 +00:00
|
|
|
# version
|
|
|
|
src/version/version.cpp
|
|
|
|
# chat
|
|
|
|
src/chat/chat.cpp
|
2024-02-01 08:12:24 +00:00
|
|
|
src/chat/ui.cpp
|
2024-01-24 02:57:57 +00:00
|
|
|
# creative
|
|
|
|
src/creative/creative.cpp
|
|
|
|
# game-mode
|
2024-04-02 23:22:01 +00:00
|
|
|
src/game-mode/game-mode.cpp
|
2024-01-24 02:57:57 +00:00
|
|
|
src/game-mode/ui.cpp
|
|
|
|
# override
|
2024-04-02 23:22:01 +00:00
|
|
|
src/override/override.cpp
|
2024-01-24 02:57:57 +00:00
|
|
|
# death
|
|
|
|
src/death/death.cpp
|
|
|
|
# misc
|
|
|
|
src/misc/misc.cpp
|
|
|
|
src/misc/logging.cpp
|
|
|
|
src/misc/api.cpp
|
2024-08-25 21:06:12 +00:00
|
|
|
src/misc/graphics.cpp
|
|
|
|
src/misc/ui.cpp
|
|
|
|
src/misc/tinting.cpp
|
2024-11-08 07:34:58 +00:00
|
|
|
# extend
|
|
|
|
src/extend/Screen.cpp
|
|
|
|
src/extend/DynamicTexture.cpp
|
2024-01-24 02:57:57 +00:00
|
|
|
# options
|
|
|
|
src/options/options.cpp
|
2024-05-09 00:18:50 +00:00
|
|
|
src/options/ui.cpp
|
2024-05-09 05:25:53 +00:00
|
|
|
src/options/info.cpp
|
2024-01-24 02:57:57 +00:00
|
|
|
# bucket
|
|
|
|
src/bucket/bucket.cpp
|
2024-02-07 06:47:46 +00:00
|
|
|
# cake
|
|
|
|
src/cake/cake.cpp
|
2024-01-24 02:57:57 +00:00
|
|
|
# home
|
2024-04-02 23:22:01 +00:00
|
|
|
src/home/home.cpp
|
2024-05-09 05:25:53 +00:00
|
|
|
# touch
|
|
|
|
src/touch/touch.cpp
|
|
|
|
# text-input-box
|
|
|
|
src/text-input-box/TextInputBox.cpp
|
|
|
|
src/text-input-box/TextInputScreen.cpp
|
2024-01-24 02:57:57 +00:00
|
|
|
# test
|
2024-04-02 23:22:01 +00:00
|
|
|
src/test/test.cpp
|
2024-06-15 12:52:15 +00:00
|
|
|
# sound
|
|
|
|
src/sound/sound.cpp
|
|
|
|
src/sound/repository.cpp
|
|
|
|
# camera
|
|
|
|
src/camera/camera.cpp
|
|
|
|
# input
|
|
|
|
src/input/input.cpp
|
|
|
|
src/input/bow.cpp
|
|
|
|
src/input/attack.cpp
|
|
|
|
src/input/toggle.cpp
|
|
|
|
src/input/misc.cpp
|
|
|
|
src/input/drop.cpp
|
2024-06-21 05:19:37 +00:00
|
|
|
src/input/keys.cpp
|
2024-06-15 12:52:15 +00:00
|
|
|
# sign
|
|
|
|
src/sign/sign.cpp
|
|
|
|
# atlas
|
|
|
|
src/atlas/atlas.cpp
|
|
|
|
# title-screen
|
|
|
|
src/title-screen/title-screen.cpp
|
2024-09-22 23:28:51 +00:00
|
|
|
src/title-screen/splashes.cpp
|
2024-06-15 12:52:15 +00:00
|
|
|
src/title-screen/splashes.txt # Show In IDE
|
|
|
|
src/title-screen/welcome.cpp
|
|
|
|
# skin
|
|
|
|
src/skin/skin.cpp
|
|
|
|
src/skin/loader.cpp
|
|
|
|
# screenshot
|
|
|
|
src/screenshot/screenshot.cpp
|
|
|
|
# textures
|
|
|
|
src/textures/textures.cpp
|
|
|
|
src/textures/lava.cpp
|
|
|
|
src/textures/headless.cpp
|
|
|
|
# fps
|
|
|
|
src/fps/fps.cpp
|
|
|
|
# server
|
|
|
|
src/server/server.cpp
|
|
|
|
src/server/server_properties.cpp
|
|
|
|
# multiplayer
|
|
|
|
src/multiplayer/multiplayer.cpp
|
|
|
|
# benchmark
|
|
|
|
src/benchmark/benchmark.cpp
|
2024-01-24 02:57:57 +00:00
|
|
|
# init
|
2024-04-02 23:22:01 +00:00
|
|
|
src/init/init.cpp
|
2024-07-05 06:33:29 +00:00
|
|
|
# f3
|
|
|
|
src/f3/f3.cpp
|
2024-07-11 03:15:58 +00:00
|
|
|
# multidraw
|
|
|
|
src/multidraw/glue.cpp
|
|
|
|
src/multidraw/buffer.cpp
|
|
|
|
src/multidraw/storage.cpp
|
2024-08-25 21:06:12 +00:00
|
|
|
# classic-ui
|
|
|
|
src/classic-ui/classic-ui.cpp
|
2024-10-18 05:41:59 +00:00
|
|
|
# shading
|
|
|
|
src/shading/init.cpp
|
|
|
|
src/shading/tesselator.cpp
|
2024-10-18 19:14:18 +00:00
|
|
|
src/shading/lighting.cpp
|
|
|
|
src/shading/normals.cpp
|
2022-06-25 21:30:08 +00:00
|
|
|
)
|
2024-11-20 00:57:43 +00:00
|
|
|
|
2024-06-15 12:52:15 +00:00
|
|
|
# Install Splashes
|
|
|
|
install(
|
|
|
|
FILES "src/title-screen/splashes.txt"
|
|
|
|
DESTINATION "${MCPI_INSTALL_DIR}/data"
|
|
|
|
)
|
2023-11-11 05:44:26 +00:00
|
|
|
|
2024-11-20 00:57:43 +00:00
|
|
|
# Headers
|
|
|
|
setup_header_dirs(mods "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
2022-07-08 04:25:01 +00:00
|
|
|
|
2024-01-24 02:57:57 +00:00
|
|
|
# Install
|
2024-11-20 00:57:43 +00:00
|
|
|
set(old_lib_dir "${MCPI_LIB_DIR}")
|
|
|
|
set(MCPI_LIB_DIR "${MCPI_INSTALL_DIR}/mods")
|
|
|
|
setup_library(mods TRUE TRUE)
|
|
|
|
set(MCPI_LIB_DIR "${old_lib_dir}")
|
2021-01-27 16:13:06 +00:00
|
|
|
|
2024-01-24 02:57:57 +00:00
|
|
|
# Dependencies
|
2024-11-20 00:57:43 +00:00
|
|
|
target_link_libraries(mods
|
2024-01-24 02:57:57 +00:00
|
|
|
PUBLIC
|
2024-11-20 00:57:43 +00:00
|
|
|
symbols
|
|
|
|
reborn-patch
|
|
|
|
media-layer-core
|
|
|
|
PRIVATE
|
|
|
|
stb_image
|
|
|
|
dl
|
|
|
|
pthread
|
2024-01-24 02:57:57 +00:00
|
|
|
)
|