toots / shine

Super fast fixed-point MP3 encoder with JS/wasm and android native bindings.
Other
394 stars 62 forks source link

This seems to build Shine on Windows (CMakeLists.txt) #45

Open ar-visions opened 1 year ago

ar-visions commented 1 year ago

CMakeLists.txt

cmake_minimum_required(VERSION 3.20)
project(libshine)

include_directories(src src/lib src/bin)

add_library(
    shine STATIC
    src/lib/bitstream.c src/lib/huffman.c
    src/lib/l3bitstream.c
    src/lib/l3loop.c 
    src/lib/l3mdct.c 
    src/lib/l3subband.c
    src/lib/layer3.c
    src/lib/reservoir.c
    src/lib/tables.c)

install(
    TARGETS shine
    LIBRARY DESTINATION lib  # for shared libs
    ARCHIVE DESTINATION lib) # for static libs

install(
    DIRECTORY       libshine/include/
    DESTINATION     include
    FILES_MATCHING  PATTERN "*.h")

I integrated shine into prefix, a cmake ci project system. project ion is using shine. it needs CMake projects or ones with an autoconfigure, and for this one I had a generative autotools.cmake; however cmake did not launch with the appropriate environment vars so that configure would generate and then invoke & succeed. So I made this one manually