1if (APPLE) 2 set(apigen-codec-common-platform-sources) 3elseif (WIN32) 4 set(apigen-codec-common-platform-sources) 5else() 6 set(apigen-codec-common-platform-sources X11Support.cpp) 7endif() 8 9add_library( 10 apigen-codec-common 11 ChecksumCalculator.cpp 12 ChecksumCalculatorThreadInfo.cpp 13 glUtils.cpp 14 ${apigen-codec-common-platform-sources}) 15if (NOT MSVC) 16 target_compile_options( 17 apigen-codec-common PRIVATE -fvisibility=hidden) 18endif() 19target_link_libraries( 20 apigen-codec-common 21 PUBLIC 22 gfxstream-gl-host-common.headers 23 aemu-host-common.headers 24 aemu-base.headers) 25target_include_directories( 26 apigen-codec-common 27 PUBLIC 28 ${GFXSTREAM_REPO_ROOT}/stream-servers/apigen-codec-common 29 PRIVATE 30 ${GFXSTREAM_REPO_ROOT}/stream-servers 31 ${GFXSTREAM_REPO_ROOT}/include) 32