From 65f920e9b88dc89124b286d82668ece9178a665f Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 29 Sep 2022 17:49:35 +0800 Subject: Start to work on emscripten. --- src/platform/graphics/CMakeLists.txt | 2 +- src/platform/graphics/cairo/CMakeLists.txt | 4 ++-- src/platform/graphics/direct2d/CMakeLists.txt | 2 +- src/platform/graphics/quartz/CMakeLists.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/platform/graphics') diff --git a/src/platform/graphics/CMakeLists.txt b/src/platform/graphics/CMakeLists.txt index da9bf61c..e9c6a9d1 100644 --- a/src/platform/graphics/CMakeLists.txt +++ b/src/platform/graphics/CMakeLists.txt @@ -1,4 +1,4 @@ -add_library(CruPlatformGraphics SHARED +add_library(CruPlatformGraphics ForDllExport.cpp Geometry.cpp Image.cpp diff --git a/src/platform/graphics/cairo/CMakeLists.txt b/src/platform/graphics/cairo/CMakeLists.txt index 206fa21c..5879e01c 100644 --- a/src/platform/graphics/cairo/CMakeLists.txt +++ b/src/platform/graphics/cairo/CMakeLists.txt @@ -1,4 +1,4 @@ -if (UNIX) +if (UNIX AND NOT EMSCRIPTEN) # It's so great to see emscripten is somewhat UNIX! foreach(PP IN LISTS CMAKE_SYSTEM_PREFIX_PATH) cmake_path(APPEND PP "lib" ${CMAKE_LIBRARY_ARCHITECTURE}) list(APPEND LIB_ARCH_DIR ${PP}) @@ -16,7 +16,7 @@ if (UNIX) find_library(LIB_PNG png REQUIRED) - add_library(CruPlatformGraphicsCairo SHARED + add_library(CruPlatformGraphicsCairo Base.cpp CairoBrush.cpp CairoGeometry.cpp diff --git a/src/platform/graphics/direct2d/CMakeLists.txt b/src/platform/graphics/direct2d/CMakeLists.txt index a9d5900b..4776e773 100644 --- a/src/platform/graphics/direct2d/CMakeLists.txt +++ b/src/platform/graphics/direct2d/CMakeLists.txt @@ -1,4 +1,4 @@ -add_library(CruPlatformGraphicsDirect2d SHARED +add_library(CruPlatformGraphicsDirect2d Brush.cpp Font.cpp Geometry.cpp diff --git a/src/platform/graphics/quartz/CMakeLists.txt b/src/platform/graphics/quartz/CMakeLists.txt index 1fcaff26..88050a07 100644 --- a/src/platform/graphics/quartz/CMakeLists.txt +++ b/src/platform/graphics/quartz/CMakeLists.txt @@ -1,4 +1,4 @@ -add_library(CruPlatformGraphicsQuartz SHARED +add_library(CruPlatformGraphicsQuartz Brush.cpp Convert.cpp Factory.cpp -- cgit v1.2.3