mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 09:27:59 +02:00
Initial macOS changes
Many changes are related to fixing warnings
This commit is contained in:
parent
75f11b1459
commit
22ec4a86b8
52 changed files with 2873 additions and 266 deletions
|
@ -34,13 +34,24 @@ add_definitions(
|
|||
-DBP_DYNAMIC
|
||||
)
|
||||
|
||||
include_directories(
|
||||
.
|
||||
platform/linux
|
||||
third_party
|
||||
third_party/freetype/include
|
||||
../extern
|
||||
)
|
||||
if (${APPLE})
|
||||
include_directories(
|
||||
.
|
||||
platform/osx
|
||||
platform/darwin
|
||||
third_party
|
||||
third_party/freetype/include
|
||||
../extern
|
||||
)
|
||||
else()
|
||||
include_directories(
|
||||
.
|
||||
platform/linux
|
||||
third_party
|
||||
third_party/freetype/include
|
||||
../extern
|
||||
)
|
||||
endif()
|
||||
|
||||
############## Artefacts Output #################
|
||||
# Defines outputs , depending Debug or Release. #
|
||||
|
@ -105,10 +116,7 @@ file(GLOB SRC_FILES
|
|||
HeadlessApp.cpp
|
||||
MemStream.cpp
|
||||
ResLib.cpp
|
||||
Startup.cpp
|
||||
|
||||
platform/linux/BFPlatform.cpp
|
||||
platform/linux/LinuxCommon.cpp
|
||||
Startup.cpp
|
||||
|
||||
fbx/FBXReader.cpp
|
||||
gfx/DrawLayer.cpp
|
||||
|
@ -284,9 +292,22 @@ file(GLOB SRC_FILES
|
|||
util/Vector.cpp
|
||||
)
|
||||
|
||||
if (${APPLE})
|
||||
file(GLOB SRC_FILES_OS
|
||||
platform/darwin/BFPlatform.cpp
|
||||
platform/darwin/DarwinCommon.cpp
|
||||
)
|
||||
else()
|
||||
file(GLOB SRC_FILES_OS
|
||||
platform/linux/BFPlatform.cpp
|
||||
platform/linux/LinuxCommon.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
# Add library to build.
|
||||
add_library(${PROJECT_NAME} SHARED
|
||||
${SRC_FILES}
|
||||
${SRC_FILES_OS}
|
||||
)
|
||||
|
||||
# Link with other dependencies.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue