Added Mac build scripts
This commit is contained in:
parent
7978eb6716
commit
41021072fa
11
src/BuildMacIntel-MacPPC.cmake
Normal file
11
src/BuildMacIntel-MacPPC.cmake
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
################################################################
|
||||||
|
# Name: BuildMacIntel-MacPPC.cmake
|
||||||
|
# Purpose: Build MacPPC binary on MacIntel
|
||||||
|
# Author: Cas Cremers
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
message (STATUS "Building Apple Mac PPC version")
|
||||||
|
set (scythername "scyther-macppc")
|
||||||
|
add_executable (${scythername} ${Scyther_sources})
|
||||||
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fnested-functions -arch ppc")
|
||||||
|
|
@ -7,5 +7,5 @@
|
|||||||
message (STATUS "Building Apple Mac Intel version")
|
message (STATUS "Building Apple Mac Intel version")
|
||||||
set (scythername "scyther-macintel")
|
set (scythername "scyther-macintel")
|
||||||
add_executable (${scythername} ${Scyther_sources})
|
add_executable (${scythername} ${Scyther_sources})
|
||||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fnested-functions")
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fnested-functions -arch i386")
|
||||||
|
|
||||||
|
@ -7,16 +7,20 @@
|
|||||||
# Retrieve Source_OS, Destination_OS (from -DTARGET)
|
# Retrieve Source_OS, Destination_OS (from -DTARGET)
|
||||||
include (GetOS.cmake)
|
include (GetOS.cmake)
|
||||||
|
|
||||||
|
message (STATUS "Test ${Source_OS} ${Destination_OS}")
|
||||||
# From source_os and destination_os make a new name for the build script
|
# From source_os and destination_os make a new name for the build script
|
||||||
if (Source_OS STREQUAL Destination_OS)
|
if (Source_OS STREQUAL Destination_OS)
|
||||||
set (BuildScriptName "Build${Source_OS}.cmake")
|
set (BuildScriptName "Build${Source_OS}.cmake")
|
||||||
else (Source_OS STREQUAL Destination_OS)
|
else (Source_OS STREQUAL Destination_OS)
|
||||||
set (BuildScriptName "Build${Source_OS}-${Destination_OS}.cmake")
|
set (BuildScriptName "Build${Source_OS}-${Destination_OS}.cmake")
|
||||||
endif (Source_OS STREQUAL Destination_OS)
|
endif (Source_OS STREQUAL Destination_OS)
|
||||||
|
message (STATUS "Locating platform specific file ${BuildScriptName}")
|
||||||
|
|
||||||
|
# Locate the file. If it exists, start it
|
||||||
find_file (BuildScriptFile "${BuildScriptName}")
|
find_file (BuildScriptFile "${BuildScriptName}")
|
||||||
if (BuildScriptFile)
|
if (BuildScriptFile)
|
||||||
# Execute the build script
|
# Execute the build script
|
||||||
include (${BuildScriptFile})
|
include (${BuildScriptName})
|
||||||
else (BuildScriptFile)
|
else (BuildScriptFile)
|
||||||
# Could not find it!
|
# Could not find it!
|
||||||
message (STATUS "Could not find ${BuildScriptName}")
|
message (STATUS "Could not find ${BuildScriptName}")
|
||||||
|
Loading…
Reference in New Issue
Block a user