• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cmake_minimum_required(VERSION 3.5)
2
3# This is a posix wrapper for windows-msvc build.
4# We won't need setjmp in gfxstrea
5# android_nasm_compile(
6#   TARGET setjmp_asm_lib LICENSE Apache-2.0 SRC # cmake-format: sortable
7#                                                src/setjmp.asm)
8add_library(
9  msvc-posix-compat
10  src/getopt.c src/gettimeofday.c src/msvc-posix.c)
11
12# Msvc posix needs the file-io libs from android-emu-base.
13# target_link_libraries(msvc-posix-compat PRIVATE setjmp_asm_lib)
14target_link_libraries(msvc-posix-compat)
15
16# Msvc redefines macro's to inject compatibility.
17target_compile_options(
18  msvc-posix-compat
19  PUBLIC "-Wno-macro-redefined"
20         "-Wno-deprecated-declarations" # A lot of the POSIX names are
21                                        # deprecated..
22)
23target_include_directories(
24  msvc-posix-compat PUBLIC include/
25  ${GFXSTREAM_REPO_ROOT})
26