argtable3.parts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. ############################################################################
  16. Import('*')
  17. env.PartVersion("3.0.3")
  18. env.PartName("argtable3")
  19. # sourcefiles
  20. src_files = Pattern(src_dir='.',
  21. includes=['argtable3.c']).files()
  22. #includes to install
  23. install_headers = Pattern(src_dir='.',
  24. includes=['argtable3.h']).files()
  25. parts_file = ['argtable3.parts']
  26. license_file = ['LICENSE']
  27. makefile = ['Makefile']
  28. if 'install_package' in env['MODE']:
  29. env.InstallTopLevel(src_files, sub_dir='ext/argtable3')
  30. env.InstallTopLevel(install_headers, sub_dir='ext/argtable3')
  31. env.InstallTopLevel(parts_file, sub_dir='ext/argtable3')
  32. env.InstallTopLevel(license_file, sub_dir='ext/argtable3')
  33. env.InstallTopLevel(makefile, sub_dir='ext/argtable3')
  34. else:
  35. env.Append(CPPPATH='.')
  36. outputs = env.Library('${PART_NAME}', src_files)
  37. sdk_outs = env.Sdk(outputs)
  38. env.SdkInclude(install_headers)