From a4a011d5147d15c424b6a01633b33b9d8d11a4ff Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 20 Jun 2017 13:15:10 +0800 Subject: add has_flag for g++, clang, clang++ --- xmake/modules/detect/tools/clang/has_flag.lua | 27 +++++++++++++++++++++++++ xmake/modules/detect/tools/clangxx/has_flag.lua | 27 +++++++++++++++++++++++++ xmake/modules/detect/tools/gcc/has_flag.lua | 2 +- xmake/modules/detect/tools/gxx/has_flag.lua | 27 +++++++++++++++++++++++++ 4 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 xmake/modules/detect/tools/clang/has_flag.lua create mode 100644 xmake/modules/detect/tools/clangxx/has_flag.lua create mode 100644 xmake/modules/detect/tools/gxx/has_flag.lua diff --git a/xmake/modules/detect/tools/clang/has_flag.lua b/xmake/modules/detect/tools/clang/has_flag.lua new file mode 100644 index 000000000..0cb83600e --- /dev/null +++ b/xmake/modules/detect/tools/clang/has_flag.lua @@ -0,0 +1,27 @@ +--!The Make-like 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 - 2017, TBOOX Open Source Group. +-- +-- @author ruki +-- @file has_flag.lua +-- + +-- imports +inherit("detect.tools.gcc.has_flag") + diff --git a/xmake/modules/detect/tools/clangxx/has_flag.lua b/xmake/modules/detect/tools/clangxx/has_flag.lua new file mode 100644 index 000000000..0cb83600e --- /dev/null +++ b/xmake/modules/detect/tools/clangxx/has_flag.lua @@ -0,0 +1,27 @@ +--!The Make-like 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 - 2017, TBOOX Open Source Group. +-- +-- @author ruki +-- @file has_flag.lua +-- + +-- imports +inherit("detect.tools.gcc.has_flag") + diff --git a/xmake/modules/detect/tools/gcc/has_flag.lua b/xmake/modules/detect/tools/gcc/has_flag.lua index a0624dc4a..af00b84d8 100644 --- a/xmake/modules/detect/tools/gcc/has_flag.lua +++ b/xmake/modules/detect/tools/gcc/has_flag.lua @@ -19,7 +19,7 @@ -- Copyright (C) 2015 - 2017, TBOOX Open Source Group. -- -- @author ruki --- @file check_flag.lua +-- @file has_flag.lua -- -- imports diff --git a/xmake/modules/detect/tools/gxx/has_flag.lua b/xmake/modules/detect/tools/gxx/has_flag.lua new file mode 100644 index 000000000..0cb83600e --- /dev/null +++ b/xmake/modules/detect/tools/gxx/has_flag.lua @@ -0,0 +1,27 @@ +--!The Make-like 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 - 2017, TBOOX Open Source Group. +-- +-- @author ruki +-- @file has_flag.lua +-- + +-- imports +inherit("detect.tools.gcc.has_flag") + -- cgit v1.3.1