cmake_minimum_required(VERSION 3.5) # This is a posix wrapper for windows-msvc build. # We won't need setjmp in gfxstrea # android_nasm_compile( # TARGET setjmp_asm_lib LICENSE Apache-2.0 SRC # cmake-format: sortable # src/setjmp.asm) add_library( msvc-posix-compat src/getopt.c src/gettimeofday.c src/msvc-posix.c) # Msvc posix needs the file-io libs from android-emu-base. # target_link_libraries(msvc-posix-compat PRIVATE setjmp_asm_lib) target_link_libraries(msvc-posix-compat) # Msvc redefines macro's to inject compatibility. target_compile_options( msvc-posix-compat PUBLIC "-Wno-macro-redefined" "-Wno-deprecated-declarations" # A lot of the POSIX names are # deprecated.. ) target_include_directories( msvc-posix-compat PUBLIC include/ ${GFXSTREAM_REPO_ROOT})