mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
cmake: Add support for using c++ bin2cpp instead of perl
This commit is contained in:
@@ -1,47 +1,6 @@
|
||||
# bin2cpp tool
|
||||
|
||||
# executable name
|
||||
set(bin2cppName bin2cpp)
|
||||
|
||||
# Debug - Build
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
# add defines
|
||||
set(bin2cppFinalFlags
|
||||
-s -Wall -fexceptions
|
||||
)
|
||||
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
|
||||
# Devel - Build
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Devel)
|
||||
# add defines
|
||||
set(bin2cppFinalFlags
|
||||
-s -Wall -fexceptions
|
||||
)
|
||||
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
|
||||
|
||||
# Release - Build
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Release)
|
||||
# add defines
|
||||
set(bin2cppFinalFlags
|
||||
-s -Wall -fexceptions
|
||||
)
|
||||
endif(CMAKE_BUILD_TYPE STREQUAL Release)
|
||||
|
||||
# variable with all sources of this executable
|
||||
set(bin2cppSources
|
||||
bin2cpp.cpp)
|
||||
|
||||
set(bin2cppHeaders
|
||||
)
|
||||
|
||||
# add executable
|
||||
set(bin2cppFinalSources
|
||||
${bin2cppSources}
|
||||
${bin2cppHeaders}
|
||||
)
|
||||
|
||||
add_pcsx2_executable(${bin2cppName} "${bin2cppFinalSources}" "" "${bin2cppFinalFlags}")
|
||||
add_executable(bin2cpp bin2cpp.cpp)
|
||||
|
||||
# set output directory
|
||||
# set_target_properties(${bin2cppName} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/tools/bin)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user