diff options
| author | ruki <[email protected]> | 2022-08-11 00:53:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-11 00:53:18 +0800 |
| commit | ae1521c83b8d19b832b1fb1636ae2c22c299cac8 (patch) | |
| tree | ec3db9772f4bd9428f2fb91b166a1968e2120cd2 /xmake/rules/c++/precompiled_header/xmake.lua | |
| parent | eb348d65c260d13a47bea41ee461fff95b9dfb60 (diff) | |
fix pcheader for msvc
Diffstat (limited to 'xmake/rules/c++/precompiled_header/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/precompiled_header/xmake.lua | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/xmake/rules/c++/precompiled_header/xmake.lua b/xmake/rules/c++/precompiled_header/xmake.lua new file mode 100644 index 000000000..7216a1f13 --- /dev/null +++ b/xmake/rules/c++/precompiled_header/xmake.lua @@ -0,0 +1,36 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed 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-present, TBOOX Open Source Group. +-- +-- @author ruki +-- @file xmake.lua +-- + +rule("c.build.pcheader") + on_config(function (target, opt) + import("private.action.build.pcheader").config(target, "c", opt) + end) + before_build(function (target, opt) + import("private.action.build.pcheader").build(target, "c", opt) + end) + +rule("c++.build.pcheader") + on_config(function (target, opt) + import("private.action.build.pcheader").config(target, "cxx", opt) + end) + before_build(function (target, opt) + import("private.action.build.pcheader").build(target, "cxx", opt) + end) + |
