Skip to content

Commit

Permalink
now compatible with core moaisdk cmake build system (no moaicli requi…
Browse files Browse the repository at this point in the history
…red)
  • Loading branch information
halfnelson committed Feb 13, 2014
1 parent aac37fc commit 743e0b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
4 changes: 2 additions & 2 deletions build_host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def build

def cmake_output
if build_config.host.type == 'windows'
File.join(File.join(build_config.build_dir,'bin','sledge.exe'))
File.join(File.join(build_config.build_dir,'bin','host-custom','sledge.exe'))
else
File.join(File.join(build_config.build_dir,'bin','sledge'))
File.join(File.join(build_config.build_dir,'bin','host-custom','sledge'))
end
end

Expand Down
18 changes: 3 additions & 15 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
cmake_minimum_required ( VERSION 2.8.8 )
project ( sledge )


set ( BUILD_HOST false )

add_subdirectory( ${LIBMOAI_DIR} ${CMAKE_CURRENT_BINARY_DIR}/libmoaistatic )

set (HOST_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/..")

if (BUILD_WINDOWS)
if (NOT MSVC)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
endif (NOT MSVC)
endif (BUILD_WINDOWS)

set (HUSKY_SRC
${HOST_ROOT}/Husky/shared/HuskyLoader.cpp
)
Expand Down Expand Up @@ -63,9 +51,9 @@ if (BUILD_WINDOWS)
endif (BUILD_WINDOWS)

set (SLEDGE_INCLUDES
"${SDK_ROOT}/src"
"${SDK_ROOT}/src/moai-config"
"${SDK_ROOT}/3rdparty/sdl2-2.0.0/include"
"${MOAI_ROOT}/src"
"${MOAI_ROOT}/src/moai-config"
"${MOAI_ROOT}/3rdparty/sdl2-2.0.0/include"
"${HOST_ROOT}/"
)

Expand Down

0 comments on commit 743e0b1

Please sign in to comment.