ippcommon.parts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ############################################################################
  2. # Copyright 2016 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("9.0.1")
  18. env.PartName("ippcommon")
  19. env.DependsOn([])
  20. #prebuild installs prebuild headers instead of src headers.
  21. #internal ipp includes src/primitives/ipp/
  22. env.Append(CPPPATH=[AbsDir('sources/include/')])
  23. # env.Append(CPPDEFINES = '_IPP_BE') #only for BE targets
  24. #includes to install
  25. install_headers = Pattern(src_dir='include/',
  26. includes=['ippdefs.h',
  27. 'ippversion.h',
  28. 'ippcore.h',
  29. 'ippbase.h',
  30. 'ipptypes.h'
  31. ],
  32. excludes=[],
  33. recursive=True)
  34. source_headers = Pattern(src_dir='sources/include/',
  35. includes=['*'],
  36. excludes=[],
  37. recursive=True)
  38. parts_file = Pattern(src_dir='.',
  39. includes=['ippcommon.parts'],
  40. excludes=[],
  41. recursive=True)
  42. env.ExportCPPPATH([AbsDir('sources/include/')])
  43. if 'install_package' in env['MODE']:
  44. # All files at /ext/ipp/include
  45. env.InstallTopLevel(install_headers, sub_dir='ext/ipp/include')
  46. env.InstallTopLevel(source_headers, sub_dir='ext/ipp/sources/include')
  47. env.InstallTopLevel(parts_file, sub_dir='ext/ipp/')
  48. #else
  49. env.SdkInclude(install_headers)