mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 08:09:41 +02:00
Mostly from suggestions, but there's a couple of other minor fixes and additions: Cmake not decides with SDK to use on Windows All Audacity cmake options are not prefixed with "audacity_", but this is configurable in audacity/CMakeLists.txt Several other options have been marked advanced so they don't clutter the CMake GUI On Windows, multiple processors will now be used reducing build time considerably Quieted a couple of package messages that the user doesn't need to see No longer tried to create aliases on Windows No longer used precompiled headers if ccache is available On Windows, only copies the needed wxWidgets and VC runtime libraries to the bin directory
46 lines
935 B
CMake
46 lines
935 B
CMake
|
|
add_library( ${TARGET} STATIC )
|
|
|
|
def_vars()
|
|
|
|
list( APPEND SOURCES
|
|
PRIVATE
|
|
${TARGET_ROOT}/lib/xmlparse.c
|
|
${TARGET_ROOT}/lib/xmlrole.c
|
|
${TARGET_ROOT}/lib/xmltok.c
|
|
${TARGET_ROOT}/lib/xmltok_impl.c
|
|
${TARGET_ROOT}/lib/xmltok_ns.c
|
|
)
|
|
|
|
list( APPEND INCLUDES
|
|
PRIVATE
|
|
${_PRVDIR}
|
|
PUBLIC
|
|
${TARGET_ROOT}/lib
|
|
)
|
|
|
|
list( APPEND DEFINES
|
|
PRIVATE
|
|
HAVE_EXPAT_CONFIG_H
|
|
PUBLIC
|
|
XML_STATIC
|
|
)
|
|
|
|
if( WORDS_BIGENDIAN )
|
|
set( BYTEORDER 4321 )
|
|
else( WORDS_BIGENDIAN )
|
|
set( BYTEORDER 1234 )
|
|
endif()
|
|
|
|
set( XML_DTD OFF )
|
|
set( XML_NS OFF )
|
|
|
|
configure_file( ${TARGET_ROOT}/expat_config.h.cmake private/expat_config.h )
|
|
|
|
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
|
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
|
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
|
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
|
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
|
|