summaryrefslogtreecommitdiff
path: root/xmake/templates/objc/console/project/xmake.lua
blob: 04d70929f37baea153393d7deb0e16b455e7ac10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

-- add modes: debug and release 
add_rules("mode.debug", "mode.release")

-- add frameworks
add_frameworks("Foundation", "CoreFoundation")

-- for macosx or ios
if os("macosx", "ios") then

    -- enable arc?
    add_mxflags("-fobjc-arc")
end

-- add target
target("[targetname]")

    -- set kind
    set_kind("binary")

    -- add files
    add_files("src/*.m")