• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1############################################################################
2# Copyright 2017 Intel Corporation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#     http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15############################################################################
16Import('*')
17
18env.PartVersion("3.0.3")
19env.PartName("argtable3")
20
21# sourcefiles
22src_files = Pattern(src_dir='.',
23                    includes=['argtable3.c']).files()
24
25#includes to install
26install_headers = Pattern(src_dir='.',
27                          includes=['argtable3.h']).files()
28
29parts_file = ['argtable3.parts']
30license_file = ['LICENSE']
31makefile = ['Makefile']
32
33if 'install_package' in env['MODE']:
34    env.InstallTopLevel(src_files, sub_dir='ext/argtable3')
35    env.InstallTopLevel(install_headers, sub_dir='ext/argtable3')
36    env.InstallTopLevel(parts_file, sub_dir='ext/argtable3')
37    env.InstallTopLevel(license_file, sub_dir='ext/argtable3')
38    env.InstallTopLevel(makefile, sub_dir='ext/argtable3')
39else:
40    env.Append(CPPPATH='.')
41
42    outputs = env.Library('${PART_NAME}', src_files)
43    sdk_outs = env.Sdk(outputs)
44
45    env.SdkInclude(install_headers)
46