diff options
| author | ruki <[email protected]> | 2018-05-19 00:52:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-05-18 23:16:54 +0800 |
| commit | ccbd73d46319fb9f71eae878aa7ca3845747e1e5 (patch) | |
| tree | ada04b7bde67f7a4faba20394cbfe1dd5e8359f4 /xmake | |
| parent | 90008609b8044bd4f600c9cc11e792b1eb4c03e5 (diff) | |
add win.sdk rules
Diffstat (limited to 'xmake')
| -rw-r--r-- | xmake/rules/winsdk/dotnet/xmake.lua | 32 | ||||
| -rw-r--r-- | xmake/rules/winsdk/xmake.lua | 40 |
2 files changed, 72 insertions, 0 deletions
diff --git a/xmake/rules/winsdk/dotnet/xmake.lua b/xmake/rules/winsdk/dotnet/xmake.lua new file mode 100644 index 000000000..a54347d40 --- /dev/null +++ b/xmake/rules/winsdk/dotnet/xmake.lua @@ -0,0 +1,32 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed to the Apache Software Foundation (ASF) under one +-- or more contributor license agreements. See the NOTICE file +-- distributed with this work for additional information +-- regarding copyright ownership. The ASF licenses this file +-- to you under the Apache License, Version 2.0 (the +-- "License"); you may not use this file except in compliance +-- with the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- Copyright (C) 2015 - 2018, TBOOX Open Source Group. +-- +-- @author ruki +-- @file xmake.lua +-- + +-- define rule: dotnet +rule("win.sdk.dotnet") + + -- on load + on_load(function (target) + + end) + diff --git a/xmake/rules/winsdk/xmake.lua b/xmake/rules/winsdk/xmake.lua new file mode 100644 index 000000000..6ba05debe --- /dev/null +++ b/xmake/rules/winsdk/xmake.lua @@ -0,0 +1,40 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed to the Apache Software Foundation (ASF) under one +-- or more contributor license agreements. See the NOTICE file +-- distributed with this work for additional information +-- regarding copyright ownership. The ASF licenses this file +-- to you under the Apache License, Version 2.0 (the +-- "License"); you may not use this file except in compliance +-- with the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- Copyright (C) 2015 - 2018, TBOOX Open Source Group. +-- +-- @author ruki +-- @file xmake.lua +-- + +-- define rule: application +rule("win.sdk.application") + + -- on load + on_load(function (target) + + -- TODO + -- values: win.sdk.mt/md + + -- link libcmt[d].lib + -- target:add("cflags", "-MT" .. (is_mode("debug") and "d" or "")) + + -- no msvcrt.lib +-- target:add("ldflags", "-nodefaultlib:\"msvcrt.lib\"") + end) + |
