-
Notifications
You must be signed in to change notification settings - Fork 39
/
premake5_yoga_v2.lua
47 lines (39 loc) · 1.17 KB
/
premake5_yoga_v2.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
dofile('rive_build_config.lua')
local dependency = require('dependency')
yoga = dependency.github('rive-app/yoga', 'rive_changes_v2_0_1')
newoption({
trigger = 'no-yoga-renames',
description = 'don\'t rename yoga symbols',
})
project('rive_yoga')
do
kind('StaticLib')
warnings('Off')
defines({ 'YOGA_EXPORT=' })
includedirs({ yoga })
filter('action:xcode4')
do
-- xcode doesnt like angle brackets except for -isystem
-- should use externalincludedirs but GitHub runners dont have latest premake5 binaries
buildoptions({ '-isystem' .. yoga })
end
filter({})
files({
yoga .. '/yoga/Utils.cpp',
yoga .. '/yoga/YGConfig.cpp',
yoga .. '/yoga/YGLayout.cpp',
yoga .. '/yoga/YGEnums.cpp',
yoga .. '/yoga/YGNodePrint.cpp',
yoga .. '/yoga/YGNode.cpp',
yoga .. '/yoga/YGValue.cpp',
yoga .. '/yoga/YGStyle.cpp',
yoga .. '/yoga/Yoga.cpp',
yoga .. '/yoga/event/event.cpp',
yoga .. '/yoga/log.cpp',
})
filter({ 'options:not no-yoga-renames' })
do
includedirs({ './' })
forceincludes({ 'rive_yoga_renames.h' })
end
end