[CONFIG] Use config system for different platforms.
This commit is contained in:
Родитель
f646bbe94d
Коммит
4d1905bbe4
|
@ -18,9 +18,9 @@ jobs:
|
|||
- run: dir
|
||||
- run: python3 -m pip install ninja
|
||||
- run: ninja --version
|
||||
- run: make skia_defconfig
|
||||
- run: make skia-win_x64_defconfig
|
||||
- run: make source-checkout
|
||||
- run: make CONFIG_VARIANT=win_x64
|
||||
- run: make
|
||||
- run: Compress-Archive -Path out/skia/win_x64/sysroot/ skia-win64.zip
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
- uses: actions/upload-artifact@v3
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
CONFIG_RECIPE:=skia
|
||||
CONFIG_VARIANT:=wasm
|
||||
|
||||
CONFIG_SYSROOT:=y
|
|
@ -0,0 +1,6 @@
|
|||
CONFIG_RECIPE:=skia
|
||||
CONFIG_VARIANT:=win_x64
|
||||
CLANG:=clang
|
||||
CLANGXX:=clang++
|
||||
CC:=clang
|
||||
SKIA_ARCH:=x64
|
|
@ -1 +1,6 @@
|
|||
CONFIG_RECIPE:=skia
|
||||
CONFIG_MESON:=y
|
||||
CONFIG_FREETYPE:=y
|
||||
CONFIG_FONTCONFIG:=y
|
||||
CONFIG_AVALONIA_SKIA:=y
|
||||
CONFIG_SYSROOT:=y
|
||||
|
|
|
@ -20,13 +20,6 @@ endif
|
|||
CLANG?=clang-13
|
||||
CLANGXX?=clang++-13
|
||||
|
||||
ifdef WINDOWS
|
||||
CLANG?=clang
|
||||
CLANGXX?=clang++
|
||||
CC=clang
|
||||
endif
|
||||
|
||||
|
||||
HOST:=$(shell $(CC) -dumpmachine)
|
||||
|
||||
PREFIX:=usr/local
|
||||
|
@ -54,20 +47,16 @@ endif
|
|||
|
||||
MESON_OPTIONS:=
|
||||
|
||||
LAYERS-$(CONFIG_MESON) += meson
|
||||
LAYERS-$(CONFIG_FREETYPE) += freetype
|
||||
LAYERS-$(CONFIG_FONTCONFIG) += fontconfig
|
||||
|
||||
ifndef WINDOWS
|
||||
LAYERS += meson
|
||||
LAYERS += freetype
|
||||
LAYERS += fontconfig
|
||||
endif
|
||||
LAYERS-y += skia
|
||||
|
||||
LAYERS += skia
|
||||
|
||||
ifndef WINDOWS
|
||||
LAYERS += avalonia_skia
|
||||
LAYERS += sysroot/package
|
||||
endif
|
||||
LAYERS-$(CONFIG_AVALONIA_SKIA) += avalonia_skia
|
||||
LAYERS-$(CONFIG_SYSROOT) += sysroot/package
|
||||
|
||||
LAYERS:=$(LAYERS-y)
|
||||
|
||||
include $(BUILD_RECIPE)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче