Skip to content

Commit

Permalink
Add the data repositories, define the DEV_EXTRA_PATHS var (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
MCMrARM authored Jun 30, 2018
1 parent 8ad42ca commit b8b54ce
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@
[submodule "arg-parser"]
path = arg-parser
url = ../arg-parser.git
[submodule "mcpelauncher-linux-bin"]
path = mcpelauncher-linux-bin
url = ../mcpelauncher-linux-bin.git
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ else()
set(CMAKE_LIBRARY_ARCHITECTURE "i386-linux-gnu")
endif(APPLE)

option(ENABLE_DEV_PATHS "Enables lookup in source directories for misc files required by the launcher. This should be disabled for package builds." ON)
if (ENABLE_DEV_PATHS)
add_definitions(-DDEV_EXTRA_PATHS="${CMAKE_SOURCE_DIR}/mcpelauncher-linux-bin")
endif()


include(ext/json.cmake)
include(ext/glfw.cmake)

Expand Down
2 changes: 1 addition & 1 deletion mcpelauncher-common
1 change: 1 addition & 0 deletions mcpelauncher-linux-bin
Submodule mcpelauncher-linux-bin added at a8ea80

0 comments on commit b8b54ce

Please sign in to comment.