Permalink
Browse files

Converted to use CMake build system

- replaced autotools build system with CMake
- removed legacy native IDE project files
- removed redundant SaaSndC.cpp file
  • Loading branch information...
simonowen committed Sep 1, 2018
1 parent b1d2767 commit c1d4fef0fa26164c42a0a95db0abcc9398c689d7
View
Binary file not shown.
View
@@ -0,0 +1,48 @@
cmake_minimum_required(VERSION 3.0)
if (APPLE)
option(BUILD_FRAMEWORK "Build a Mac OS X framework instead of a shared library" OFF)
set(CMAKE_OSX_ARCHITECTURES "i386;x86_64")
endif ()
#include(CheckStructHasMember)
#CHECK_STRUCT_HAS_MEMBER("struct dirent" d_type dirent.h HAVE_STRUCT_DIRENT_D_TYPE LANGUAGE CXX)
file(GLOB SOURCES src/*.cpp)
file(GLOB HEADERS src/*.h)
file(GLOB API_HEADERS include/*.h)
add_library(SAASound SHARED ${SOURCES} ${HEADERS} ${API_HEADERS})
set_target_properties(SAASound PROPERTIES
VERSION 3.2
SOVERSION 3
CXX_STANDARD 11)
target_include_directories(SAASound PRIVATE
${CMAKE_BINARY_DIR}
include)
if (APPLE AND BUILD_FRAMEWORK)
set_target_properties(SAASound PROPERTIES
OUTPUT_NAME SAASound
FRAMEWORK TRUE
FRAMEWORK_VERSION C
MACOSX_FRAMEWORK_IDENTIFIER org.rebuzz)
set_source_files_properties(${API_HEADERS} PROPERTIES
MACOSX_PACKAGE_LOCATION Headers)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
endif ()
configure_file(src/config.h.in ${CMAKE_BINARY_DIR}/config.h)
target_compile_definitions(SAASound PRIVATE HAVE_CONFIG_H=1)
install(TARGETS SAASound
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
FRAMEWORK DESTINATION "/Library/Frameworks"
PUBLIC_HEADER DESTINATION include)
if (NOT APPLE OR NOT BUILD_FRAMEWORK)
install(FILES ${API_HEADERS} DESTINATION include)
endif ()
View
26 INSTALL
@@ -2,35 +2,17 @@ SAASound build and install notes
--------------------------------
Win32:
- Open the VS6/SAASound.dsw in Visual Studio 6 ,
or open the VS17/SAASound.sln in Visual Studio 2017
- Open VS17/SAASound.sln in Visual Studio 2017
- Select and build the Release target
- Copy the resulting SAASound.dll from the Release folder
to Windows\System (or WinNT\System32 on NT/W2K/XP)
or alternatively simply copy it directly to the application folder
that requires it (e.g. for SimCoupe and SAAPlay, copy the
SAASound.dll to the same folder as the executable application)
Unix:
- To build it run: ./configure ; make
- To install, log in as root and run: make install
OS X:
- Open OSX/SAASound.xcodeproject in XCode 2.2 or later
- On the Project menu, Set Active Build Configuration to Release
- Click the Build button on the toolbar
- Copy SAASound.framework into /Library/Frameworks
- Or for a Unix-style library, follow the Unix instructions
BeOS:
- unzip BeOS.zip into the current directory
- Open BeOS/SAASound.proj in BeIDE and build it
- Copy libSAASound.so into /boot/home/config/lib
Pocket PC:
- Open SAASound.dsw from eVC3/eVC4, depending on your compiler version
- Select and build the appropriate Release target (ARM for devices)
- Copy the DLL to Windows\ on your device
Linux/Unix:
- To build: cmake . ; make
- To install: sudo make install
--
View

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit c1d4fef

Please sign in to comment.