Committing oneTBB 2021.1-beta05 source code
This commit is contained in:
Родитель
7a257a3ca0
Коммит
88b4c2782a
|
@ -0,0 +1,45 @@
|
|||
# Set the default behavior, in case people don't have core.autocrlf set.
|
||||
* text=auto
|
||||
|
||||
# Explicitly declare text files you want to always be normalized and converted
|
||||
# to native line endings on checkout.
|
||||
*.c text
|
||||
*.h text
|
||||
*.cpp text
|
||||
*.def text
|
||||
*.rc text
|
||||
*.i text
|
||||
*.sh text
|
||||
*.csh text
|
||||
*.mk text
|
||||
*.java text
|
||||
*.csv text
|
||||
*.lst text
|
||||
*.asm text
|
||||
*.cfg text
|
||||
*.css text
|
||||
*.inc text
|
||||
*.js text
|
||||
*.rb text
|
||||
*.strings text
|
||||
*.txt text
|
||||
*export.lst text
|
||||
*.xml text
|
||||
*.py text
|
||||
*.md text
|
||||
*.classpath text
|
||||
*.cproject text
|
||||
*.project text
|
||||
*.properties text
|
||||
*.java text
|
||||
*.gradle text
|
||||
|
||||
# Declare files that will always have CRLF line endings on checkout.
|
||||
*.sln text eol=crlf
|
||||
*.bat text eol=crlf
|
||||
|
||||
# Denote all files that are truly binary and should not be modified.
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.ico binary
|
||||
*.spir binary
|
|
@ -0,0 +1,88 @@
|
|||
# Ignore the debug and release directories created with Makefile builds #
|
||||
#########################################################################
|
||||
build/*_debug/
|
||||
build/*_release/
|
||||
|
||||
# Compiled source #
|
||||
###################
|
||||
*.com
|
||||
*.class
|
||||
*.dll
|
||||
*.lib
|
||||
*.pdb
|
||||
*.exe
|
||||
*.o
|
||||
*.so
|
||||
*.so.1
|
||||
*.so.2
|
||||
*.dylib
|
||||
*.a
|
||||
*.obj
|
||||
*.pyc
|
||||
|
||||
*.orig
|
||||
*.raw
|
||||
*.sample
|
||||
*.slo
|
||||
*.swp
|
||||
*.config
|
||||
*.la
|
||||
*.lai
|
||||
*.lo
|
||||
*.nhdr
|
||||
*.nii.gz
|
||||
*.nrrd
|
||||
|
||||
# Packages #
|
||||
############
|
||||
# it's better to unpack these files and commit the raw source
|
||||
# git has its own built in compression methods
|
||||
*.7z
|
||||
*.dmg
|
||||
*.gz
|
||||
*.iso
|
||||
*.jar
|
||||
*.rar
|
||||
*.tar
|
||||
*.tgz
|
||||
*.zip
|
||||
|
||||
# Logs and databases #
|
||||
######################
|
||||
*.log
|
||||
*.sql
|
||||
*.sqlite
|
||||
|
||||
# OS generated files #
|
||||
######################
|
||||
.DS_Store
|
||||
.DS_Store?
|
||||
._*
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
ehthumbs.db
|
||||
Thumbs.db
|
||||
|
||||
# IDE generated files #
|
||||
######################
|
||||
/.ninja_deps
|
||||
/.ninja_log
|
||||
/build.ninja
|
||||
/rules.ninja
|
||||
*~
|
||||
.emacs.desktop
|
||||
.tags
|
||||
|
||||
# Build system generated files #
|
||||
################################
|
||||
CMakeCache.txt
|
||||
CMakeFiles/
|
||||
|
||||
# Other #
|
||||
#########
|
||||
.clang_complete
|
||||
.idea
|
||||
.svn
|
||||
crash*
|
||||
*.tmp
|
||||
/.vs
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,201 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
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.
|
|
@ -0,0 +1,73 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
tbb_root?=.
|
||||
include $(tbb_root)/build/common.inc
|
||||
.PHONY: default all tbb tbbmalloc test examples
|
||||
|
||||
#workaround for non-depend targets tbb and tbbmalloc which both depend on version_string.ver
|
||||
#According to documentation, recursively invoked make commands can process their targets in parallel
|
||||
.NOTPARALLEL: tbb tbbmalloc
|
||||
|
||||
default: tbb tbbmalloc
|
||||
|
||||
all: tbb tbbmalloc test examples
|
||||
|
||||
tbb: mkdir
|
||||
$(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.tbb cfg=debug
|
||||
$(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.tbb cfg=release
|
||||
|
||||
tbbmalloc: mkdir
|
||||
$(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=debug malloc
|
||||
$(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=release malloc
|
||||
|
||||
test: tbb tbbmalloc
|
||||
-$(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=debug malloc_test
|
||||
-$(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.test cfg=debug
|
||||
-$(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=release malloc_test
|
||||
-$(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.test cfg=release
|
||||
|
||||
examples: tbb tbbmalloc
|
||||
$(MAKE) -C examples -r -f Makefile tbb_root=.. release test
|
||||
|
||||
python: tbb
|
||||
$(MAKE) -C "$(work_dir)_release" -rf $(tbb_root)/python/Makefile install
|
||||
|
||||
doxygen:
|
||||
doxygen Doxyfile
|
||||
|
||||
.PHONY: clean clean_examples mkdir info
|
||||
|
||||
clean: clean_examples
|
||||
$(shell $(RM) $(work_dir)_release$(SLASH)*.* >$(NUL) 2>$(NUL))
|
||||
$(shell $(RD) $(work_dir)_release >$(NUL) 2>$(NUL))
|
||||
$(shell $(RM) $(work_dir)_debug$(SLASH)*.* >$(NUL) 2>$(NUL))
|
||||
$(shell $(RD) $(work_dir)_debug >$(NUL) 2>$(NUL))
|
||||
@echo clean done
|
||||
|
||||
clean_examples:
|
||||
$(shell $(MAKE) -s -i -r -C examples -f Makefile tbb_root=.. clean >$(NUL) 2>$(NUL))
|
||||
|
||||
mkdir:
|
||||
$(shell $(MD) "$(work_dir)_release" >$(NUL) 2>$(NUL))
|
||||
$(shell $(MD) "$(work_dir)_debug" >$(NUL) 2>$(NUL))
|
||||
@echo Created $(work_dir)_release and ..._debug directories
|
||||
|
||||
info:
|
||||
@echo OS: $(tbb_os)
|
||||
@echo arch=$(arch)
|
||||
@echo compiler=$(compiler)
|
||||
@echo runtime=$(runtime)
|
||||
@echo tbb_build_prefix=$(tbb_build_prefix)
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
Intel(R) oneAPI Threading Building Blocks (oneTBB) - README
|
||||
|
||||
See index.html for directions and documentation.
|
||||
|
||||
If source is present (./Makefile and src/ directories),
|
||||
type 'gmake' in this directory to build and test.
|
||||
|
||||
See examples/index.html for runnable examples and directions.
|
||||
|
||||
See http://threadingbuildingblocks.org for full documentation
|
||||
and software information.
|
38
README.md
38
README.md
|
@ -1,30 +1,28 @@
|
|||
# Intel(R) Threading Building Blocks
|
||||
# oneAPI Threading Building Blocks (Beta)
|
||||
[![Stable release](https://img.shields.io/badge/version-2021.1--beta05-yellow.svg)](https://github.com/oneapi-src/oneTBB/releases/tag/v2021.1-beta05)
|
||||
[![Apache License Version 2.0](https://img.shields.io/badge/license-Apache_2.0-green.svg)](LICENSE)
|
||||
|
||||
Intel(R) Threading Building Blocks (Intel(R) TBB) lets you easily write parallel C++ programs that take
|
||||
oneAPI Threading Building Blocks (oneTBB) lets you easily write parallel C++ programs that take
|
||||
full advantage of multicore performance, that are portable, composable and have future-proof scalability.
|
||||
|
||||
## Intel(R) TBB Distribution
|
||||
* Commercial version: [https://software.intel.com/en-us/intel-tbb](https://software.intel.com/en-us/intel-tbb)
|
||||
* Community licensing: [https://software.intel.com/sites/campaigns/nest/](https://software.intel.com/sites/campaigns/nest/)
|
||||
* Open source version: [https://www.threadingbuildingblocks.org/](https://www.threadingbuildingblocks.org/)
|
||||
* Intel(R) TBB for Python\*: [http://anaconda.org/intel/tbb](http://anaconda.org/intel/tbb)
|
||||
## Release Information
|
||||
Here are [Release Notes]( https://software.intel.com/en-us/articles/intel-oneapi-threading-building-blocks-release-notes) and
|
||||
[System Requirements](https://software.intel.com/en-us/articles/intel-oneapi-threading-building-blocks-system-requirements).
|
||||
|
||||
## Repository Content
|
||||
This is an official Intel(R) TBB public GitHub repository. All source and binary packages starting from Intel(R) TBB 4.4
|
||||
can be found at the [Release page](https://github.com/01org/tbb/releases). Links to the packages with older versions of
|
||||
Intel(R) TBB can be found in the [download.md](download.md) file.
|
||||
## Documentation
|
||||
* [TBB general documentation](https://software.intel.com/en-us/oneapi-tbb-documentation)
|
||||
|
||||
## Repository Structure
|
||||
The Master branch is empty and contains only README.md and download.md files.
|
||||
## Support
|
||||
Please report issues and suggestions via
|
||||
[GitHub issues](https://github.com/oneapi-src/oneTBB/issues) or start a topic on the
|
||||
[TBB forum](http://software.intel.com/en-us/forums/intel-threading-building-blocks/).
|
||||
|
||||
tbb_\<major_version\> - branch for the new major version. All minor versions of the major release will be committed in this branch.
|
||||
## How to Contribute
|
||||
To contribute to TBB, please open a GitHub pull request (preferred) or send us a patch by e-mail.
|
||||
oneAPI Threading Building Blocks is licensed under [Apache License, Version 2.0](LICENSE).
|
||||
By its terms, contributions submitted to the project are also done under that license.
|
||||
|
||||
For example:
|
||||
* Intel(R) TBB 2017 initial release goes to branch tbb_2017.
|
||||
* Intel(R) TBB 2017 Update 1 will go to branch tbb_2017 too.
|
||||
* Intel(R) TBB 2018 initial release will go to branch tbb_2018.
|
||||
|
||||
## Сontact engineering team
|
||||
## Engineering team contacts
|
||||
* [E-mail us.](mailto:inteltbbdevelopers@intel.com)
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
|
|
@ -0,0 +1,71 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
DYLIB_KEY = -shared
|
||||
LIBDL = -ldl
|
||||
|
||||
CPLUS = g++
|
||||
CONLY = gcc
|
||||
LIB_LINK_FLAGS = -shared
|
||||
LIBS = -lpthread -ldl
|
||||
C_FLAGS = $(CPLUS_FLAGS) -x c
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = -O2 -DUSE_PTHREAD -pthread
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD -pthread
|
||||
endif
|
||||
|
||||
ASM=
|
||||
ASM_FLAGS=
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
|
||||
ifeq (powerpc,$(arch))
|
||||
CPLUS_FLAGS += -maix64 -Wl,-G
|
||||
LIB_LINK_FLAGS += -maix64 -Wl,-b64 -Wl,-brtl -Wl,-G
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
ASSEMBLY_SOURCE=ibm_aix51
|
||||
ifeq (powerpc,$(arch))
|
||||
TBB_ASM.OBJ = atomic_support.o
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,62 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
ifndef arch
|
||||
arch:=$(shell uname -p)
|
||||
export arch
|
||||
endif
|
||||
|
||||
ifndef runtime
|
||||
gcc_version:=$(shell gcc -dumpfullversion -dumpversion)
|
||||
os_version:=$(shell uname -r)
|
||||
os_kernel_version:=$(shell uname -r | sed -e 's/-.*$$//')
|
||||
export runtime:=cc$(gcc_version)_kernel$(os_kernel_version)
|
||||
endif
|
||||
|
||||
native_compiler := gcc
|
||||
export compiler ?= gcc
|
||||
debugger ?= gdb
|
||||
|
||||
CMD=$(SHELL) -c
|
||||
CWD=$(shell pwd)
|
||||
RM?=rm -f
|
||||
RD?=rmdir
|
||||
MD?=mkdir -p
|
||||
NUL= /dev/null
|
||||
SLASH=/
|
||||
MAKE_VERSIONS=sh $(tbb_root)/build/version_info_aix.sh $(VERSION_FLAGS) >version_string.ver
|
||||
MAKE_TBBVARS=sh $(tbb_root)/build/generate_tbbvars.sh
|
||||
|
||||
ifdef LIBPATH
|
||||
export LIBPATH := .:$(LIBPATH)
|
||||
else
|
||||
export LIBPATH := .
|
||||
endif
|
||||
|
||||
####### Build settings ########################################################
|
||||
|
||||
OBJ = o
|
||||
DLL = so
|
||||
|
||||
TBB.LST =
|
||||
TBB.DEF =
|
||||
TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
|
||||
TBB.LIB = $(TBB.DLL)
|
||||
LINK_TBB.LIB = $(TBB.LIB)
|
||||
|
||||
MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOC.LIB = $(MALLOC.DLL)
|
||||
LINK_MALLOC.LIB = $(MALLOC.LIB)
|
||||
|
||||
TEST_LAUNCHER=sh $(tbb_root)/build/test_launcher.sh $(largs)
|
|
@ -0,0 +1,106 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
TEST_WARNING_KEY = -Wextra -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor
|
||||
WARNING_SUPPRESS = -Wno-parentheses -Wno-non-virtual-dtor -Wno-dangling-else
|
||||
DYLIB_KEY = -shared
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBDL =
|
||||
|
||||
CPLUS = clang++
|
||||
CONLY = clang
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
||||
LIBS += -lpthread
|
||||
LINK_FLAGS = -Wl,-rpath-link=. -Wl,-rpath=. -rdynamic
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD
|
||||
endif
|
||||
|
||||
ifneq (,$(stdlib))
|
||||
CPLUS_FLAGS += -stdlib=$(stdlib)
|
||||
LIB_LINK_FLAGS += -stdlib=$(stdlib)
|
||||
endif
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
MALLOC_ASM.OBJ=
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m32 -march=pentium4
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (ppc64,$(arch))
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ppc32,$(arch))
|
||||
CPLUS_FLAGS += -m32
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (bg,$(arch))
|
||||
CPLUS = bgclang++
|
||||
CONLY = bgclang
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASM = as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += --64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
ASM_FLAGS += --32
|
||||
endif
|
||||
ifeq ($(cfg),debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,70 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
ifndef arch
|
||||
ifeq ($(shell uname -m),i386)
|
||||
export arch:=ia32
|
||||
endif
|
||||
ifeq ($(shell uname -m),ia64)
|
||||
export arch:=ia64
|
||||
endif
|
||||
ifeq ($(shell uname -m),amd64)
|
||||
export arch:=intel64
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef runtime
|
||||
clang_version:=$(shell clang --version | sed -n "1s/.*version \(.*[0-9]\) .*/\1/p")
|
||||
os_version:=$(shell uname -r)
|
||||
os_kernel_version:=$(shell uname -r | sed -e 's/-.*$$//')
|
||||
export runtime:=cc$(clang_version)_kernel$(os_kernel_version)
|
||||
endif
|
||||
|
||||
native_compiler := clang
|
||||
export compiler ?= clang
|
||||
debugger ?= gdb
|
||||
|
||||
CMD=$(SHELL) -c
|
||||
CWD=$(shell pwd)
|
||||
RM?=rm -f
|
||||
RD?=rmdir
|
||||
MD?=mkdir -p
|
||||
NUL= /dev/null
|
||||
SLASH=/
|
||||
MAKE_VERSIONS=sh $(tbb_root)/build/version_info_linux.sh $(VERSION_FLAGS) >version_string.ver
|
||||
MAKE_TBBVARS=sh $(tbb_root)/build/generate_tbbvars.sh
|
||||
|
||||
ifdef LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH := .:$(LD_LIBRARY_PATH)
|
||||
else
|
||||
export LD_LIBRARY_PATH := .
|
||||
endif
|
||||
|
||||
####### Build settings ########################################################
|
||||
|
||||
OBJ = o
|
||||
DLL = so
|
||||
LIBEXT=so
|
||||
|
||||
TBB.LST =
|
||||
TBB.DEF =
|
||||
TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
|
||||
TBB.LIB = $(TBB.DLL)
|
||||
LINK_TBB.LIB = $(TBB.LIB)
|
||||
|
||||
MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOC.LIB = $(MALLOC.DLL)
|
||||
LINK_MALLOC.LIB = $(MALLOC.LIB)
|
||||
|
||||
TEST_LAUNCHER=sh $(tbb_root)/build/test_launcher.sh $(largs)
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
include $(tbb_root)/build/BSD.clang.inc
|
||||
|
||||
LIBS += -lrt
|
|
@ -0,0 +1,89 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
DYLIB_KEY = -shared
|
||||
WARNING_SUPPRESS = -Wno-parentheses
|
||||
|
||||
CPLUS = g++
|
||||
CONLY = gcc
|
||||
LIB_LINK_FLAGS = -shared
|
||||
LIBS = -lpthread
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
# gcc 6.0 and later have -flifetime-dse option that controls
|
||||
# elimination of stores done outside the object lifetime
|
||||
ifneq (,$(shell gcc -dumpfullversion -dumpversion | egrep "^([6-9]|1[0-9])"))
|
||||
# keep pre-contruction stores for zero initialization
|
||||
DSE_KEY = -flifetime-dse=1
|
||||
endif
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = -g -O2 -DUSE_PTHREAD
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD
|
||||
endif
|
||||
|
||||
ASM=
|
||||
ASM_FLAGS=
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
MALLOC_ASM.OBJ=
|
||||
|
||||
ifeq (ia64,$(arch))
|
||||
# Position-independent code (PIC) is a must on IA-64 architecture, even for regular (not shared) executables
|
||||
CPLUS_FLAGS += $(PIC_KEY)
|
||||
endif
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
CPLUS_FLAGS += -m32
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
ifeq (ia64,$(arch))
|
||||
ASM=as
|
||||
TBB_ASM.OBJ = atomic_support.o lock_byte.o log2.o pause.o
|
||||
MALLOC_ASM.OBJ = atomic_support.o lock_byte.o pause.o
|
||||
endif
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
include $(tbb_root)/build/BSD.inc
|
|
@ -0,0 +1,114 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Define rules for making the TBB shared library.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
tbb_root ?= "$(TBBROOT)"
|
||||
BUILDING_PHASE=1
|
||||
include $(tbb_root)/build/common.inc
|
||||
CPLUS_FLAGS += $(SDL_FLAGS)
|
||||
DEBUG_SUFFIX=$(findstring _debug,_$(cfg))
|
||||
|
||||
#------------------------------------------------------------
|
||||
# Define static pattern rules dealing with .cpp source files
|
||||
#------------------------------------------------------------
|
||||
$(warning CONFIG: cfg=$(cfg) arch=$(arch) compiler=$(compiler) target=$(target) runtime=$(runtime))
|
||||
|
||||
default_tbb: $(TBB.DLL)
|
||||
.PHONY: default_tbb tbbvars clean
|
||||
.PRECIOUS: %.$(OBJ)
|
||||
|
||||
VPATH = $(tbb_root)/src/tbb/$(ASSEMBLY_SOURCE) $(tbb_root)/src/tbb $(tbb_root)/src/old $(tbb_root)/src/rml/client
|
||||
|
||||
CPLUS_FLAGS += $(PIC_KEY) $(DSE_KEY) $(DEFINE_KEY)__TBB_BUILD=1 $(DEFINE_KEY)__TBB_LEGACY_MODE=1
|
||||
|
||||
# Object files (that were compiled from C++ code) that gmake up TBB
|
||||
TBB_CPLUS.OBJ = concurrent_hash_map.$(OBJ) \
|
||||
concurrent_queue.$(OBJ) \
|
||||
concurrent_vector.$(OBJ) \
|
||||
dynamic_link.$(OBJ) \
|
||||
itt_notify.$(OBJ) \
|
||||
cache_aligned_allocator.$(OBJ) \
|
||||
pipeline.$(OBJ) \
|
||||
queuing_mutex.$(OBJ) \
|
||||
queuing_rw_mutex.$(OBJ) \
|
||||
reader_writer_lock.$(OBJ) \
|
||||
spin_rw_mutex.$(OBJ) \
|
||||
x86_rtm_rw_mutex.$(OBJ) \
|
||||
spin_mutex.$(OBJ) \
|
||||
critical_section.$(OBJ) \
|
||||
mutex.$(OBJ) \
|
||||
recursive_mutex.$(OBJ) \
|
||||
condition_variable.$(OBJ) \
|
||||
tbb_thread.$(OBJ) \
|
||||
concurrent_monitor.$(OBJ) \
|
||||
semaphore.$(OBJ) \
|
||||
private_server.$(OBJ) \
|
||||
rml_tbb.$(OBJ) \
|
||||
tbb_misc.$(OBJ) \
|
||||
tbb_misc_ex.$(OBJ) \
|
||||
task.$(OBJ) \
|
||||
task_group_context.$(OBJ) \
|
||||
governor.$(OBJ) \
|
||||
market.$(OBJ) \
|
||||
arena.$(OBJ) \
|
||||
scheduler.$(OBJ) \
|
||||
observer_proxy.$(OBJ) \
|
||||
tbb_statistics.$(OBJ) \
|
||||
tbb_main.$(OBJ)
|
||||
|
||||
# OLD/Legacy object files for backward binary compatibility
|
||||
ifeq (,$(findstring $(DEFINE_KEY)TBB_NO_LEGACY,$(CPLUS_FLAGS)))
|
||||
TBB_CPLUS_OLD.OBJ = \
|
||||
concurrent_vector_v2.$(OBJ) \
|
||||
concurrent_queue_v2.$(OBJ) \
|
||||
spin_rw_mutex_v2.$(OBJ) \
|
||||
task_v2.$(OBJ)
|
||||
endif
|
||||
|
||||
# Object files that gmake up TBB (TBB_ASM.OBJ is platform-specific)
|
||||
TBB.OBJ = $(TBB_CPLUS.OBJ) $(TBB_CPLUS_OLD.OBJ) $(TBB_ASM.OBJ)
|
||||
|
||||
# Suppress superfluous warnings for TBB compilation
|
||||
WARNING_KEY += $(WARNING_SUPPRESS)
|
||||
|
||||
include $(tbb_root)/build/common_rules.inc
|
||||
|
||||
ifneq (,$(TBB.DEF))
|
||||
tbb.def: $(TBB.DEF) $(TBB.LST)
|
||||
$(CPLUS) $(PREPROC_ONLY) $< $(CPLUS_FLAGS) $(INCLUDES) > $@
|
||||
|
||||
LIB_LINK_FLAGS += $(EXPORT_KEY)tbb.def
|
||||
$(TBB.DLL): tbb.def
|
||||
endif
|
||||
|
||||
tbbvars.sh:
|
||||
$(MAKE_TBBVARS)
|
||||
|
||||
$(TBB.DLL): BUILDING_LIBRARY = $(TBB.DLL)
|
||||
$(TBB.DLL): $(TBB.OBJ) $(TBB.RES) tbbvars.sh $(TBB_NO_VERSION.DLL)
|
||||
$(LIB_LINK_CMD) $(LIB_OUTPUT_KEY)$(TBB.DLL) $(TBB.OBJ) $(TBB.RES) $(LIB_LINK_LIBS) $(LIB_LINK_FLAGS)
|
||||
|
||||
ifneq (,$(TBB_NO_VERSION.DLL))
|
||||
$(TBB_NO_VERSION.DLL):
|
||||
echo "INPUT ($(TBB.DLL))" > $(TBB_NO_VERSION.DLL)
|
||||
endif
|
||||
|
||||
#clean:
|
||||
# $(RM) *.$(OBJ) *.$(DLL) *.res *.map *.ilk *.pdb *.exp *.manifest *.tmp *.d core core.*[0-9][0-9] *.ver
|
||||
|
||||
# Include automatically generated dependencies
|
||||
-include *.d
|
|
@ -0,0 +1,256 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# default target
|
||||
default_malloc: malloc malloc_test
|
||||
|
||||
tbb_root ?= $(TBBROOT)
|
||||
BUILDING_PHASE=1
|
||||
TEST_RESOURCE = $(MALLOC.RES)
|
||||
TESTFILE=tbbmalloc
|
||||
include $(tbb_root)/build/common.inc
|
||||
DEBUG_SUFFIX=$(findstring _debug,$(call cross_cfg,_$(cfg)))
|
||||
|
||||
MALLOC_ROOT ?= $(tbb_root)/src/tbbmalloc
|
||||
MALLOC_SOURCE_ROOT ?= $(MALLOC_ROOT)
|
||||
|
||||
VPATH = $(tbb_root)/src/tbb/$(ASSEMBLY_SOURCE) $(tbb_root)/src/tbb $(tbb_root)/src/test
|
||||
VPATH += $(MALLOC_ROOT) $(MALLOC_SOURCE_ROOT)
|
||||
|
||||
CPLUS_FLAGS += $(if $(crosstest),$(DEFINE_KEY)__TBBMALLOC_NO_IMPLICIT_LINKAGE=1)
|
||||
|
||||
TEST_SUFFIXES=proxy
|
||||
TEST_PREREQUISITE+=$(MALLOC.LIB)
|
||||
LINK_FILES+=$(LINK_MALLOC.LIB)
|
||||
include $(tbb_root)/build/common_rules.inc
|
||||
|
||||
ORIG_CPLUS_FLAGS:=$(CPLUS_FLAGS)
|
||||
ORIG_INCLUDES:=$(INCLUDES)
|
||||
ORIG_LINK_MALLOC.LIB:=$(LINK_MALLOC.LIB)
|
||||
|
||||
#------------------------------------------------------
|
||||
# Define rules for making the TBBMalloc shared library.
|
||||
#------------------------------------------------------
|
||||
|
||||
# Object files that make up TBBMalloc
|
||||
MALLOC_CPLUS.OBJ = backend.$(OBJ) large_objects.$(OBJ) backref.$(OBJ) tbbmalloc.$(OBJ)
|
||||
MALLOC.OBJ := $(MALLOC_CPLUS.OBJ) $(MALLOC_ASM.OBJ) itt_notify_malloc.$(OBJ) frontend.$(OBJ)
|
||||
PROXY.OBJ := proxy.$(OBJ) tbb_function_replacement.$(OBJ)
|
||||
M_CPLUS_FLAGS += $(DEFINE_KEY)__TBBMALLOC_BUILD=1 $(DEFINE_KEY)__TBB_LEGACY_MODE=1
|
||||
M_INCLUDES := $(INCLUDES) $(INCLUDE_KEY)$(MALLOC_ROOT) $(INCLUDE_KEY)$(MALLOC_SOURCE_ROOT)
|
||||
|
||||
# Suppress superfluous warnings for TBBMalloc compilation
|
||||
$(MALLOC.OBJ): M_CPLUS_FLAGS := $(subst $(WARNING_KEY),,$(M_CPLUS_FLAGS)) $(WARNING_SUPPRESS)
|
||||
# Suppress superfluous warnings for TBBMalloc proxy compilation
|
||||
$(PROXY.OBJ): CPLUS_FLAGS += $(WARNING_SUPPRESS)
|
||||
|
||||
frontend.$(OBJ): frontend.cpp version_string.ver
|
||||
$(CPLUS) $(COMPILE_ONLY) $(M_CPLUS_FLAGS) $(PIC_KEY) $(DSE_KEY) $(M_INCLUDES) $(INCLUDE_KEY). $<
|
||||
|
||||
$(PROXY.OBJ): %.$(OBJ): %.cpp
|
||||
$(CPLUS) $(COMPILE_ONLY) $(CPLUS_FLAGS) $(PIC_KEY) $(DSE_KEY) $(DEFINE_KEY)__TBBMALLOC_BUILD=1 $(M_INCLUDES) $<
|
||||
|
||||
$(MALLOC_CPLUS.OBJ): %.$(OBJ): %.cpp
|
||||
$(CPLUS) $(COMPILE_ONLY) $(M_CPLUS_FLAGS) $(PIC_KEY) $(DSE_KEY) $(M_INCLUDES) $<
|
||||
|
||||
itt_notify_malloc.$(OBJ): itt_notify.cpp
|
||||
$(CPLUS) $(COMPILE_ONLY) $(M_CPLUS_FLAGS) $(PIC_KEY) $(DSE_KEY) $(OUTPUTOBJ_KEY)$@ $(INCLUDES) $<
|
||||
|
||||
MALLOC_LINK_FLAGS = $(LIB_LINK_FLAGS)
|
||||
PROXY_LINK_FLAGS = $(LIB_LINK_FLAGS)
|
||||
|
||||
ifneq (,$(MALLOC.DEF))
|
||||
tbbmalloc.def: $(MALLOC.DEF)
|
||||
$(CPLUS) $(PREPROC_ONLY) $< $(M_CPLUS_FLAGS) $(WARNING_SUPPRESS) $(INCLUDES) > $@
|
||||
|
||||
MALLOC_LINK_FLAGS += $(EXPORT_KEY)tbbmalloc.def
|
||||
$(MALLOC.DLL): tbbmalloc.def
|
||||
endif
|
||||
|
||||
$(MALLOC.DLL) $(MALLOCPROXY.DLL): CPLUS_FLAGS += $(SDL_FLAGS)
|
||||
$(MALLOC.DLL) $(MALLOCPROXY.DLL): M_CPLUS_FLAGS += $(SDL_FLAGS)
|
||||
$(MALLOC.DLL): BUILDING_LIBRARY = $(MALLOC.DLL)
|
||||
$(MALLOC.DLL): $(MALLOC.OBJ) $(MALLOC.RES) $(MALLOC_NO_VERSION.DLL)
|
||||
$(subst $(CPLUS),$(CONLY),$(LIB_LINK_CMD)) $(LIB_OUTPUT_KEY)$(MALLOC.DLL) $(MALLOC.OBJ) $(MALLOC.RES) $(LIB_LINK_LIBS) $(MALLOC_LINK_FLAGS)
|
||||
|
||||
ifneq (,$(MALLOCPROXY.DEF))
|
||||
tbbmallocproxy.def: $(MALLOCPROXY.DEF)
|
||||
$(CPLUS) $(PREPROC_ONLY) $< $(CPLUS_FLAGS) $(WARNING_SUPPRESS) $(INCLUDES) > $@
|
||||
|
||||
PROXY_LINK_FLAGS += $(EXPORT_KEY)tbbmallocproxy.def
|
||||
$(MALLOCPROXY.DLL): tbbmallocproxy.def
|
||||
endif
|
||||
|
||||
ifneq (,$(MALLOCPROXY.DLL))
|
||||
$(MALLOCPROXY.DLL): BUILDING_LIBRARY = $(MALLOCPROXY.DLL)
|
||||
$(MALLOCPROXY.DLL): $(PROXY.OBJ) $(MALLOCPROXY_NO_VERSION.DLL) $(MALLOC.DLL) $(MALLOC.RES)
|
||||
$(LIB_LINK_CMD) $(LIB_OUTPUT_KEY)$(MALLOCPROXY.DLL) $(PROXY.OBJ) $(MALLOC.RES) $(LIB_LINK_LIBS) $(LINK_MALLOC.LIB) $(PROXY_LINK_FLAGS)
|
||||
endif
|
||||
|
||||
ifneq (,$(MALLOC_NO_VERSION.DLL))
|
||||
$(MALLOC_NO_VERSION.DLL):
|
||||
echo "INPUT ($(MALLOC.DLL))" > $(MALLOC_NO_VERSION.DLL)
|
||||
endif
|
||||
|
||||
ifneq (,$(MALLOCPROXY_NO_VERSION.DLL))
|
||||
$(MALLOCPROXY_NO_VERSION.DLL):
|
||||
echo "INPUT ($(MALLOCPROXY.DLL))" > $(MALLOCPROXY_NO_VERSION.DLL)
|
||||
endif
|
||||
|
||||
malloc: $(MALLOC.DLL) $(MALLOCPROXY.DLL)
|
||||
|
||||
malloc_dll: $(MALLOC.DLL)
|
||||
|
||||
malloc_proxy_dll: $(MALLOCPROXY.DLL)
|
||||
|
||||
.PHONY: malloc malloc_dll malloc_proxy_dll
|
||||
|
||||
#------------------------------------------------------
|
||||
# End of rules for making the TBBMalloc shared library
|
||||
#------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------
|
||||
# Define rules for making the TBBMalloc unit tests
|
||||
#------------------------------------------------------
|
||||
|
||||
# --------- The list of TBBMalloc unit tests ----------
|
||||
MALLOC_TESTS = test_ScalableAllocator.$(TEST_EXT) \
|
||||
test_ScalableAllocator_STL.$(TEST_EXT) \
|
||||
test_malloc_compliance.$(TEST_EXT) \
|
||||
test_malloc_regression.$(TEST_EXT) \
|
||||
test_malloc_init_shutdown.$(TEST_EXT) \
|
||||
test_malloc_pools.$(TEST_EXT) \
|
||||
test_malloc_pure_c.$(TEST_EXT) \
|
||||
test_malloc_whitebox.$(TEST_EXT) \
|
||||
test_malloc_used_by_lib.$(TEST_EXT) \
|
||||
test_malloc_lib_unload.$(TEST_EXT) \
|
||||
test_malloc_shutdown_hang.$(TEST_EXT)
|
||||
ifneq (,$(MALLOCPROXY.DLL))
|
||||
MALLOC_TESTS += test_malloc_overload.$(TEST_EXT) \
|
||||
test_malloc_overload_proxy.$(TEST_EXT) \
|
||||
test_malloc_overload_disable.$(TEST_EXT) \
|
||||
test_malloc_atexit.$(TEST_EXT) \
|
||||
test_malloc_new_handler.$(TEST_EXT)
|
||||
endif
|
||||
# -----------------------------------------------------
|
||||
|
||||
# ------------ Set test specific variables ------------
|
||||
# TODO: implement accurate warning suppression for tests to unify with Makefile.test.
|
||||
$(MALLOC_TESTS): CPLUS_FLAGS += $(TEST_WARNING_KEY) $(if $(no_exceptions),$(DEFINE_KEY)__TBB_TEST_NO_EXCEPTIONS=1)
|
||||
$(MALLOC_TESTS): M_CPLUS_FLAGS += $(TEST_WARNING_KEY) $(if $(no_exceptions),$(DEFINE_KEY)__TBB_TEST_NO_EXCEPTIONS=1)
|
||||
$(MALLOC_TESTS): INCLUDES += $(INCLUDE_TEST_HEADERS)
|
||||
$(MALLOC_TESTS): M_INCLUDES += $(INCLUDE_TEST_HEADERS)
|
||||
|
||||
ifeq (windows.gcc,$(tbb_os).$(compiler))
|
||||
test_malloc_overload.$(TEST_EXT): LIBS += $(MALLOCPROXY.LIB)
|
||||
endif
|
||||
|
||||
MALLOC_M_CPLUS_TESTS = test_malloc_whitebox.$(TEST_EXT) test_malloc_lib_unload.$(TEST_EXT) \
|
||||
test_malloc_used_by_lib.$(TEST_EXT)
|
||||
MALLOC_NO_LIB_TESTS = test_malloc_whitebox.$(TEST_EXT) test_malloc_lib_unload.$(TEST_EXT) \
|
||||
test_malloc_used_by_lib.$(TEST_EXT) test_malloc_overload.$(TEST_EXT)
|
||||
MALLOC_LINK_PROXY_TESTS = test_malloc_overload_proxy.$(TEST_EXT) test_malloc_new_handler.$(TEST_EXT)
|
||||
MALLOC_ADD_DLL_TESTS = test_malloc_lib_unload.$(TEST_EXT) test_malloc_used_by_lib.$(TEST_EXT) \
|
||||
test_malloc_atexit.$(TEST_EXT)
|
||||
MALLOC_SUPPRESS_WARNINGS = test_malloc_whitebox.$(TEST_EXT) test_malloc_pure_c.$(TEST_EXT)
|
||||
|
||||
$(MALLOC_SUPPRESS_WARNINGS): WARNING_KEY=
|
||||
$(MALLOC_SUPPRESS_WARNINGS): TEST_WARNING_KEY=
|
||||
$(MALLOC_M_CPLUS_TESTS): CPLUS_FLAGS:=$(M_CPLUS_FLAGS)
|
||||
$(MALLOC_M_CPLUS_TESTS): INCLUDES=$(M_INCLUDES)
|
||||
$(MALLOC_NO_LIB_TESTS): LINK_MALLOC.LIB=
|
||||
$(MALLOC_NO_LIB_TESTS): LINK_FLAGS+=$(LIBDL)
|
||||
$(MALLOC_LINK_PROXY_TESTS): LINK_MALLOC.LIB=$(LINK_MALLOCPROXY.LIB)
|
||||
ifneq (,$(DYLIB_KEY))
|
||||
$(MALLOC_ADD_DLL_TESTS): %.$(TEST_EXT): %_dll.$(DLL)
|
||||
$(MALLOC_ADD_DLL_TESTS): TEST_LIBS+=$(@:.$(TEST_EXT)=_dll.$(LIBEXT))
|
||||
endif
|
||||
|
||||
test_malloc_over%.$(TEST_EXT): CPLUS_FLAGS:=$(subst /MT,/MD,$(M_CPLUS_FLAGS))
|
||||
test_malloc_over%.$(TEST_EXT): INCLUDES=$(M_INCLUDES)
|
||||
test_malloc_overload_proxy.$(TEST_EXT): LINK_FLAGS+=$(LIBDL)
|
||||
|
||||
test_malloc_atexit_dll.$(DLL): CPLUS_FLAGS:=$(subst /MT,/MD,$(M_CPLUS_FLAGS))
|
||||
test_malloc_atexit.$(TEST_EXT): CPLUS_FLAGS:=$(subst /MT,/MD,$(M_CPLUS_FLAGS))
|
||||
test_malloc_atexit.$(TEST_EXT): LINK_FLAGS+=$(LIBDL)
|
||||
# on Ubuntu 11.10 linker called with --as-needed, so dependency on libtbbmalloc_proxy
|
||||
# is not created, and malloc overload via linking with -ltbbmalloc_proxy is not working.
|
||||
# Overcome with --no-as-needed.
|
||||
ifeq (linux.gcc,$(tbb_os).$(compiler))
|
||||
test_malloc_atexit.$(TEST_EXT): MALLOCPROXY.LIB := -Wl,--no-as-needed $(MALLOCPROXY.LIB)
|
||||
endif
|
||||
# The test isn't added to MALLOC_LINK_PROXY_TESTS, because we need both
|
||||
# tbbmalloc and proxy libs. For platforms other than Android it's enough
|
||||
# to modify LINK_MALLOC.LIB for TEST_EXT target only. But under Android build
|
||||
# of DLL and TEST_EXT can be requested independently, so there is no chance
|
||||
# to set LINK_MALLOC.LIB in TEST_EXT build rule, and affect DLL build.
|
||||
test_malloc_atexit.$(TEST_EXT): LINK_MALLOC.LIB := $(LINK_MALLOC.LIB) $(LINK_MALLOCPROXY.LIB)
|
||||
test_malloc_atexit_dll.$(DLL): LINK_MALLOC.LIB := $(LINK_MALLOC.LIB) $(LINK_MALLOCPROXY.LIB)
|
||||
|
||||
test_malloc_whitebox.$(TEST_EXT): $(MALLOC_ASM.OBJ) version_string.ver
|
||||
test_malloc_whitebox.$(TEST_EXT): INCLUDES+=$(INCLUDE_KEY).
|
||||
test_malloc_whitebox.$(TEST_EXT): LINK_FILES+=$(MALLOC_ASM.OBJ)
|
||||
|
||||
# Some _dll targets need to restore variables since they are changed by parent
|
||||
# target-specific rule of its .exe targets
|
||||
test_malloc_lib_unload_dll.$(DLL): CPLUS_FLAGS=$(ORIG_CPLUS_FLAGS) $(if $(no_exceptions),$(DEFINE_KEY)__TBB_TEST_NO_EXCEPTIONS=1)
|
||||
test_malloc_lib_unload_dll.$(DLL): INCLUDES=$(ORIG_INCLUDES) $(INCLUDE_TEST_HEADERS)
|
||||
|
||||
test_malloc_used_by_lib_dll.$(DLL): CPLUS_FLAGS:=$(subst /MT,/LD,$(M_CPLUS_FLAGS))
|
||||
test_malloc_used_by_lib_dll.$(DLL): LINK_FILES+=$(ORIG_LINK_MALLOC.LIB)
|
||||
test_malloc_used_by_lib_dll.$(DLL): LIBDL=
|
||||
|
||||
# The test needs both tbb and tbbmalloc.
|
||||
# For static build LINK_TBB.LIB is resolved in tbb.a static lib name (Linux), which cannot be found (dynamic tbb is used only).
|
||||
# In order to link properly, have to define LINK_TBB.LIB ourselves except for Windows where linkage with *.lib file expected.
|
||||
ifdef extra_inc
|
||||
ifneq ($(tbb_os),windows)
|
||||
DYNAMIC_TBB_LIB=$(LIBPREF)tbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
|
||||
endif
|
||||
endif
|
||||
test_malloc_shutdown_hang.$(TEST_EXT): LINK_FILES += $(if $(DYNAMIC_TBB_LIB), $(DYNAMIC_TBB_LIB), $(LINK_TBB.LIB))
|
||||
|
||||
# -----------------------------------------------------
|
||||
|
||||
# ---- The list of TBBMalloc test running commands ----
|
||||
# run_cmd is usually empty
|
||||
malloc_test: $(MALLOC.DLL) malloc_test_no_depends
|
||||
|
||||
malloc_test_no_depends: $(TEST_PREREQUISITE) $(MALLOC_TESTS)
|
||||
$(run_cmd) ./test_malloc_pools.$(TEST_EXT) $(args) 1:4
|
||||
ifneq (,$(MALLOCPROXY.DLL))
|
||||
$(run_cmd) ./test_malloc_atexit.$(TEST_EXT) $(args)
|
||||
$(run_cmd) $(TEST_LAUNCHER) -l $(MALLOCPROXY.DLL) ./test_malloc_overload.$(TEST_EXT) $(args)
|
||||
$(run_cmd) $(TEST_LAUNCHER) ./test_malloc_overload_proxy.$(TEST_EXT) $(args)
|
||||
$(run_cmd) ./test_malloc_overload_disable.$(TEST_EXT) $(args)
|
||||
$(run_cmd) $(TEST_LAUNCHER) ./test_malloc_new_handler.$(TEST_EXT) $(args)
|
||||
endif
|
||||
$(run_cmd) $(TEST_LAUNCHER) ./test_malloc_lib_unload.$(TEST_EXT) $(args)
|
||||
$(run_cmd) $(TEST_LAUNCHER) ./test_malloc_used_by_lib.$(TEST_EXT)
|
||||
$(run_cmd) ./test_malloc_whitebox.$(TEST_EXT) $(args) 1:4
|
||||
$(run_cmd) $(TEST_LAUNCHER) -u ./test_malloc_compliance.$(TEST_EXT) $(args) 1:4
|
||||
$(run_cmd) ./test_ScalableAllocator.$(TEST_EXT) $(args)
|
||||
$(run_cmd) ./test_ScalableAllocator_STL.$(TEST_EXT) $(args)
|
||||
$(run_cmd) ./test_malloc_regression.$(TEST_EXT) $(args)
|
||||
$(run_cmd) ./test_malloc_init_shutdown.$(TEST_EXT) $(args)
|
||||
$(run_cmd) ./test_malloc_pure_c.$(TEST_EXT) $(args)
|
||||
$(run_cmd) ./test_malloc_shutdown_hang.$(TEST_EXT)
|
||||
# -----------------------------------------------------
|
||||
|
||||
#------------------------------------------------------
|
||||
# End of rules for making the TBBMalloc unit tests
|
||||
#------------------------------------------------------
|
||||
|
||||
# Include automatically generated dependencies
|
||||
-include *.d
|
|
@ -0,0 +1,311 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Define rules for making the TBB tests.
|
||||
#------------------------------------------------------------------------------
|
||||
.PHONY: default test_tbb_plain test_tbb_openmp test_tbb_cilk test_tbb_old clean
|
||||
|
||||
default: test_tbb_plain test_tbb_openmp test_tbb_cilk test_tbb_old
|
||||
|
||||
tbb_root ?= $(TBBROOT)
|
||||
BUILDING_PHASE=1
|
||||
TEST_RESOURCE = $(TBB.RES)
|
||||
TESTFILE=test
|
||||
include $(tbb_root)/build/common.inc
|
||||
DEBUG_SUFFIX=$(findstring _debug,$(call cross_cfg,_$(cfg)))
|
||||
|
||||
#------------------------------------------------------------
|
||||
# Define static pattern rules dealing with .cpp source files
|
||||
#------------------------------------------------------------
|
||||
|
||||
VPATH = $(tbb_root)/src/tbb/$(ASSEMBLY_SOURCE) $(tbb_root)/src/tbb $(tbb_root)/src/rml/client $(tbb_root)/src/old $(tbb_root)/src/test $(tbb_root)/src/perf
|
||||
CPLUS_FLAGS += $(if $(crosstest),$(DEFINE_KEY)__TBB_NO_IMPLICIT_LINKAGE=1) \
|
||||
$(if $(no_exceptions),$(DEFINE_KEY)__TBB_TEST_NO_EXCEPTIONS=1) \
|
||||
$(if $(LINK_TBB.LIB),$(DEFINE_KEY)TEST_USES_TBB=1)
|
||||
|
||||
TEST_PREREQUISITE+=$(TBB.LIB)
|
||||
LINK_FILES+=$(LINK_TBB.LIB)
|
||||
|
||||
TEST_SUFFIXES=secondary compiler_builtins pic
|
||||
include $(tbb_root)/build/common_rules.inc
|
||||
|
||||
# Rules for the tests, which use TBB in a dynamically loadable library
|
||||
test_model_plugin.$(TEST_EXT): LINK_TBB.LIB =
|
||||
test_model_plugin.$(TEST_EXT): CPLUS_FLAGS := $(CPLUS_FLAGS:$(USE_PROXY_FLAG)=)
|
||||
test_model_plugin.$(TEST_EXT): LIBS += $(LIBDL)
|
||||
ifneq (,$(DYLIB_KEY))
|
||||
test_model_plugin.$(TEST_EXT): test_model_plugin_dll.$(DLL)
|
||||
endif
|
||||
|
||||
# tbb_misc.$(OBJ) has to be specified here (instead of harness_inject_scheduler.h) because it carries dependency on version_string.ver
|
||||
SCHEDULER_DEPENDENCIES = $(TBB_ASM.OBJ) tbb_misc.$(OBJ)
|
||||
|
||||
# These executables don't depend on the TBB library, but include core .cpp files directly
|
||||
SCHEDULER_DIRECTLY_INCLUDED = test_task_leaks.$(TEST_EXT) \
|
||||
test_task_assertions.$(TEST_EXT) \
|
||||
test_fast_random.$(TEST_EXT) \
|
||||
test_global_control_whitebox.$(TEST_EXT) \
|
||||
test_concurrent_queue_whitebox.$(TEST_EXT)
|
||||
|
||||
# Necessary to locate version_string.ver referenced from directly included tbb_misc.cpp
|
||||
INCLUDES += $(INCLUDE_KEY). $(INCLUDE_TEST_HEADERS)
|
||||
|
||||
$(SCHEDULER_DIRECTLY_INCLUDED): CPLUS_FLAGS += $(DSE_KEY) $(DEFINE_KEY)__TBB_LEGACY_MODE
|
||||
$(SCHEDULER_DIRECTLY_INCLUDED): WARNING_KEY += $(WARNING_SUPPRESS)
|
||||
$(SCHEDULER_DIRECTLY_INCLUDED): LIBS += $(LIBDL)
|
||||
#tbb.lib must not be linked to scheduler white box tests in order to not violate ODR
|
||||
$(SCHEDULER_DIRECTLY_INCLUDED): LINK_TBB.LIB =
|
||||
$(SCHEDULER_DIRECTLY_INCLUDED): LINK_FILES += $(SCHEDULER_DEPENDENCIES)
|
||||
$(SCHEDULER_DIRECTLY_INCLUDED): $(SCHEDULER_DEPENDENCIES)
|
||||
|
||||
# test_tbb_header detects "multiple definition" linker error using the test that covers the whole library
|
||||
TWICE_LINKED_TESTS = test_tbb_header.$(TEST_EXT) \
|
||||
test_concurrent_unordered_set.$(TEST_EXT)
|
||||
|
||||
%_secondary.$(OBJ): CPLUS_FLAGS+=$(DEFINE_KEY)__TBB_TEST_SECONDARY=1
|
||||
|
||||
# Detecting "multiple definition" linker error using the test that covers the whole library
|
||||
$(TWICE_LINKED_TESTS): %.$(TEST_EXT): %.$(OBJ) %_secondary.$(OBJ)
|
||||
$(TWICE_LINKED_TESTS): LINK_FILES+=$(@:.$(TEST_EXT)=_secondary.$(OBJ))
|
||||
|
||||
# Checks that TBB works correctly in position independent code
|
||||
%_pic.$(OBJ): CPLUS_FLAGS+=$(PIC_KEY)
|
||||
%_pic.$(OBJ): CPLUS_FLAGS+=$(DEFINE_KEY)__TBB_TEST_PIC=1
|
||||
|
||||
# Test of generic gcc port and icc intrinsics port
|
||||
%_compiler_builtins.$(TEST_EXT): LINK_TBB.LIB =
|
||||
%_compiler_builtins.$(OBJ): CPLUS_FLAGS+=$(DEFINE_KEY)__TBB_TEST_BUILTINS=1 $(DEFINE_KEY)TBB_USE_ASSERT=0
|
||||
|
||||
# dynamic_link tests don't depend on the TBB library
|
||||
test_dynamic_link%.$(TEST_EXT): LINK_TBB.LIB =
|
||||
test_dynamic_link.$(TEST_EXT): LIBS += $(LIBDL)
|
||||
|
||||
# Resolving issue with the number of sections that an object file can contain
|
||||
ifneq (,$(BIGOBJ_KEY))
|
||||
TEST_BIGOBJ = test_opencl_node.$(TEST_EXT) \
|
||||
test_atomic.$(TEST_EXT) \
|
||||
test_concurrent_hash_map.$(TEST_EXT) \
|
||||
test_concurrent_set.$(TEST_EXT) \
|
||||
test_concurrent_map.$(TEST_EXT) \
|
||||
test_concurrent_unordered_set.$(TEST_EXT) \
|
||||
test_concurrent_unordered_map.$(TEST_EXT) \
|
||||
test_join_node_key_matching.$(TEST_EXT) \
|
||||
test_join_node_msg_key_matching.$(TEST_EXT) \
|
||||
test_join_node.$(TEST_EXT)
|
||||
$(TEST_BIGOBJ): override CXXFLAGS += $(BIGOBJ_KEY)
|
||||
endif
|
||||
|
||||
# TODO: remove repetition of .$(TEST_EXT) in the list below
|
||||
# The main list of TBB tests
|
||||
TEST_TBB_PLAIN.EXE = test_assembly.$(TEST_EXT) \
|
||||
test_global_control.$(TEST_EXT) \
|
||||
test_tbb_fork.$(TEST_EXT) \
|
||||
test_assembly_compiler_builtins.$(TEST_EXT) \
|
||||
test_aligned_space.$(TEST_EXT) \
|
||||
test_atomic.$(TEST_EXT) \
|
||||
test_atomic_pic.$(TEST_EXT) \
|
||||
test_atomic_compiler_builtins.$(TEST_EXT) \
|
||||
test_blocked_range.$(TEST_EXT) \
|
||||
test_blocked_range2d.$(TEST_EXT) \
|
||||
test_blocked_range3d.$(TEST_EXT) \
|
||||
test_blocked_rangeNd.$(TEST_EXT) \
|
||||
test_concurrent_queue.$(TEST_EXT) \
|
||||
test_concurrent_vector.$(TEST_EXT) \
|
||||
test_concurrent_unordered_set.$(TEST_EXT) \
|
||||
test_concurrent_unordered_map.$(TEST_EXT) \
|
||||
test_concurrent_hash_map.$(TEST_EXT) \
|
||||
test_concurrent_set.$(TEST_EXT) \
|
||||
test_concurrent_map.$(TEST_EXT) \
|
||||
test_enumerable_thread_specific.$(TEST_EXT) \
|
||||
test_handle_perror.$(TEST_EXT) \
|
||||
test_halt.$(TEST_EXT) \
|
||||
test_model_plugin.$(TEST_EXT) \
|
||||
test_mutex.$(TEST_EXT) \
|
||||
test_mutex_native_threads.$(TEST_EXT) \
|
||||
test_rwm_upgrade_downgrade.$(TEST_EXT) \
|
||||
test_cache_aligned_allocator.$(TEST_EXT) \
|
||||
test_cache_aligned_allocator_STL.$(TEST_EXT) \
|
||||
test_parallel_for.$(TEST_EXT) \
|
||||
test_parallel_reduce.$(TEST_EXT) \
|
||||
test_parallel_sort.$(TEST_EXT) \
|
||||
test_parallel_scan.$(TEST_EXT) \
|
||||
test_parallel_while.$(TEST_EXT) \
|
||||
test_parallel_do.$(TEST_EXT) \
|
||||
test_pipeline.$(TEST_EXT) \
|
||||
test_pipeline_with_tbf.$(TEST_EXT) \
|
||||
test_parallel_pipeline.$(TEST_EXT) \
|
||||
test_lambda.$(TEST_EXT) \
|
||||
test_task_scheduler_init.$(TEST_EXT) \
|
||||
test_task_scheduler_observer.$(TEST_EXT) \
|
||||
test_task.$(TEST_EXT) \
|
||||
test_tbb_thread.$(TEST_EXT) \
|
||||
test_std_thread.$(TEST_EXT) \
|
||||
test_tick_count.$(TEST_EXT) \
|
||||
test_inits_loop.$(TEST_EXT) \
|
||||
test_yield.$(TEST_EXT) \
|
||||
test_eh_tasks.$(TEST_EXT) \
|
||||
test_eh_algorithms.$(TEST_EXT) \
|
||||
test_eh_flow_graph.$(TEST_EXT) \
|
||||
test_parallel_invoke.$(TEST_EXT) \
|
||||
test_task_group.$(TEST_EXT) \
|
||||
test_ittnotify.$(TEST_EXT) \
|
||||
test_parallel_for_each.$(TEST_EXT) \
|
||||
test_tbb_header.$(TEST_EXT) \
|
||||
test_combinable.$(TEST_EXT) \
|
||||
test_task_auto_init.$(TEST_EXT) \
|
||||
test_task_arena.$(TEST_EXT) \
|
||||
test_concurrent_monitor.$(TEST_EXT) \
|
||||
test_semaphore.$(TEST_EXT) \
|
||||
test_critical_section.$(TEST_EXT) \
|
||||
test_reader_writer_lock.$(TEST_EXT) \
|
||||
test_tbb_condition_variable.$(TEST_EXT) \
|
||||
test_intrusive_list.$(TEST_EXT) \
|
||||
test_concurrent_priority_queue.$(TEST_EXT) \
|
||||
test_task_priority.$(TEST_EXT) \
|
||||
test_task_enqueue.$(TEST_EXT) \
|
||||
test_task_steal_limit.$(TEST_EXT) \
|
||||
test_hw_concurrency.$(TEST_EXT) \
|
||||
test_fp.$(TEST_EXT) \
|
||||
test_tuple.$(TEST_EXT) \
|
||||
test_flow_graph.$(TEST_EXT) \
|
||||
test_broadcast_node.$(TEST_EXT) \
|
||||
test_continue_node.$(TEST_EXT) \
|
||||
test_function_node.$(TEST_EXT) \
|
||||
test_limiter_node.$(TEST_EXT) \
|
||||
test_join_node.$(TEST_EXT) \
|
||||
test_join_node_key_matching.$(TEST_EXT) \
|
||||
test_join_node_msg_key_matching.$(TEST_EXT) \
|
||||
test_buffer_node.$(TEST_EXT) \
|
||||
test_queue_node.$(TEST_EXT) \
|
||||
test_priority_queue_node.$(TEST_EXT) \
|
||||
test_sequencer_node.$(TEST_EXT) \
|
||||
test_source_node.$(TEST_EXT) \
|
||||
test_overwrite_node.$(TEST_EXT) \
|
||||
test_write_once_node.$(TEST_EXT) \
|
||||
test_indexer_node.$(TEST_EXT) \
|
||||
test_multifunction_node.$(TEST_EXT) \
|
||||
test_split_node.$(TEST_EXT) \
|
||||
test_static_assert.$(TEST_EXT) \
|
||||
test_aggregator.$(TEST_EXT) \
|
||||
test_concurrent_lru_cache.$(TEST_EXT) \
|
||||
test_examples_common_utility.$(TEST_EXT) \
|
||||
test_dynamic_link.$(TEST_EXT) \
|
||||
test_parallel_for_vectorization.$(TEST_EXT) \
|
||||
test_tagged_msg.$(TEST_EXT) \
|
||||
test_partitioner_whitebox.$(TEST_EXT) \
|
||||
test_flow_graph_whitebox.$(TEST_EXT) \
|
||||
test_composite_node.$(TEST_EXT) \
|
||||
test_async_node.$(TEST_EXT) \
|
||||
test_async_msg.$(TEST_EXT) \
|
||||
test_resumable_tasks.$(TEST_EXT) \
|
||||
test_tbb_version.$(TEST_EXT) # insert new files right above
|
||||
|
||||
# These tests depend on other technologies
|
||||
TEST_TBB_SPECIAL.EXE = test_openmp.$(TEST_EXT) \
|
||||
test_cilk_interop.$(TEST_EXT) \
|
||||
test_opencl_node.$(TEST_EXT)
|
||||
|
||||
# skip mode_plugin for now
|
||||
skip_tests += test_model_plugin
|
||||
|
||||
ifdef OPENMP_FLAG
|
||||
test_openmp.$(TEST_EXT): CPLUS_FLAGS += $(OPENMP_FLAG)
|
||||
|
||||
test_tbb_openmp: $(TEST_PREREQUISITE) test_openmp.$(TEST_EXT)
|
||||
$(run_cmd) ./test_openmp.$(TEST_EXT) 1:4
|
||||
else
|
||||
test_tbb_openmp:
|
||||
@echo "OpenMP is not available"
|
||||
endif
|
||||
|
||||
ifdef CILK_AVAILABLE
|
||||
# Workaround on cilkrts linkage known issue (see Intel(R) C++ Composer XE 2011 Release Notes)
|
||||
# The issue reveals itself if a version of binutils is prior to 2.17
|
||||
ifeq (linux_icc,$(tbb_os)_$(compiler))
|
||||
test_cilk_interop.$(TEST_EXT): LIBS += -lcilkrts
|
||||
endif
|
||||
test_tbb_cilk: test_cilk_interop.$(TEST_EXT)
|
||||
$(run_cmd) ./test_cilk_interop.$(TEST_EXT) $(args)
|
||||
else
|
||||
test_tbb_cilk:
|
||||
@echo "Intel(R) Cilk(TM) Plus is not available"
|
||||
endif
|
||||
|
||||
test_opencl_node.$(TEST_EXT): LIBS += $(OPENCL.LIB)
|
||||
|
||||
$(TEST_TBB_PLAIN.EXE) $(TEST_TBB_SPECIAL.EXE): WARNING_KEY += $(TEST_WARNING_KEY)
|
||||
|
||||
# Run tests that are in SCHEDULER_DIRECTLY_INCLUDED and TEST_TBB_PLAIN.EXE but not in skip_tests (which is specified by user)
|
||||
TESTS_TO_RUN := $(filter-out $(addsuffix .$(TEST_EXT),$(skip_tests)),$(TEST_TBB_PLAIN.EXE) $(SCHEDULER_DIRECTLY_INCLUDED))
|
||||
|
||||
# This definition intentionally consists of two blank lines
|
||||
define eol
|
||||
|
||||
|
||||
endef
|
||||
|
||||
# First build the targets, then run them
|
||||
# Form a list of commands separated with end of line
|
||||
# Note that usually run_cmd is empty, and tests run directly
|
||||
|
||||
test_tbb_plain: $(TEST_PREREQUISITE) $(TESTS_TO_RUN)
|
||||
$(foreach test, $(TESTS_TO_RUN), $(run_cmd) ./$(test) $(args) $(eol))
|
||||
|
||||
|
||||
# For deprecated files, we don't mind warnings etc., thus compilation rules are most relaxed
|
||||
CPLUS_FLAGS_DEPRECATED = $(DEFINE_KEY)__TBB_TEST_DEPRECATED=1 $(subst $(WARNING_KEY),,$(CPLUS_FLAGS)) $(WARNING_SUPPRESS) $(INCLUDE_KEY)$(tbb_root)/src/test
|
||||
TEST_TBB_OLD.OBJ = test_concurrent_vector_v2.$(OBJ) test_concurrent_queue_v2.$(OBJ) test_mutex_v2.$(OBJ) test_task_scheduler_observer_v3.$(OBJ)
|
||||
|
||||
$(TEST_TBB_OLD.OBJ): CPLUS_FLAGS := $(CPLUS_FLAGS_DEPRECATED)
|
||||
|
||||
TEST_TBB_OLD.EXE = $(subst .$(OBJ),.$(TEST_EXT),$(TEST_TBB_OLD.OBJ))
|
||||
|
||||
ifeq (,$(NO_LEGACY_TESTS))
|
||||
test_tbb_old: $(TEST_PREREQUISITE) $(TEST_TBB_OLD.EXE)
|
||||
$(run_cmd) ./test_concurrent_vector_v2.$(TEST_EXT) $(args) 1:4
|
||||
$(run_cmd) ./test_concurrent_queue_v2.$(TEST_EXT) $(args) 1:4
|
||||
$(run_cmd) ./test_mutex_v2.$(TEST_EXT) $(args) 1
|
||||
$(run_cmd) ./test_mutex_v2.$(TEST_EXT) $(args) 2
|
||||
$(run_cmd) ./test_mutex_v2.$(TEST_EXT) $(args) 4
|
||||
$(run_cmd) ./test_task_scheduler_observer_v3.$(TEST_EXT) $(args) 1:4
|
||||
else
|
||||
test_tbb_old:
|
||||
@echo Legacy tests skipped
|
||||
endif
|
||||
|
||||
ifneq (,$(codecov))
|
||||
codecov_gen:
|
||||
profmerge
|
||||
codecov $(if $(findstring -,$(codecov)),$(codecov),) -demang -comp $(tbb_root)/build/codecov.txt
|
||||
endif
|
||||
|
||||
time_%: time_%.$(TEST_EXT) $(TEST_PREREQUISITE)
|
||||
$(run_cmd) ./$< $(args)
|
||||
|
||||
|
||||
# for some reason, "perf_%.$(TEST_EXT): perf_dll.$(DLL)" does not work TODO: find out how to apply pattern here
|
||||
perf_sched.$(TEST_EXT): perf_dll.$(DLL)
|
||||
perf_%.$(TEST_EXT): TEST_LIBS = perf_dll.$(LIBEXT)
|
||||
perf_%: perf_%.$(TEST_EXT) $(TEST_PREREQUISITE)
|
||||
$(run_cmd) ./$< $(args)
|
||||
|
||||
clean_%:
|
||||
$(RM) $*.$(OBJ) $*.exe $*.$(DLL) $*.$(LIBEXT) $*.res $*.map $*.ilk $*.pdb $*.exp $*.*manifest $*.tmp $*.d *.ver
|
||||
|
||||
clean:
|
||||
$(RM) *.$(OBJ) *.exe *.$(DLL) *.$(LIBEXT) *.res *.map *.ilk *.pdb *.exp *.manifest *.tmp *.d pgopti.* *.dyn core core.*[0-9][0-9] *.ver
|
||||
|
||||
# Include automatically generated dependencies
|
||||
-include *.d
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
include $(tbb_root)/build/BSD.clang.inc
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
include $(tbb_root)/build/BSD.inc
|
|
@ -0,0 +1,88 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
TEST_WARNING_KEY = -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -Wextra
|
||||
WARNING_SUPPRESS = -Wno-parentheses -Wno-non-virtual-dtor
|
||||
DYLIB_KEY = -shared
|
||||
LIBDL = -ldl
|
||||
|
||||
CPLUS = g++
|
||||
CONLY = gcc
|
||||
LIB_LINK_FLAGS = -shared
|
||||
LIBS = -lpthread -lrt -ldl
|
||||
C_FLAGS = $(CPLUS_FLAGS) -x c
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = -g -O2 -DUSE_PTHREAD
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD
|
||||
endif
|
||||
|
||||
ASM=
|
||||
ASM_FLAGS=
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
|
||||
ifeq (ia64,$(arch))
|
||||
# Position-independent code (PIC) is a must for IA-64
|
||||
CPLUS_FLAGS += $(PIC_KEY)
|
||||
endif
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
CPLUS_FLAGS += -m32
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
# for some gcc versions on Solaris, -m64 may imply V9, but perhaps not everywhere (TODO: verify)
|
||||
ifeq (sparc,$(arch))
|
||||
CPLUS_FLAGS += -mcpu=v9 -m64
|
||||
LIB_LINK_FLAGS += -mcpu=v9 -m64
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
ifeq (ia64,$(arch))
|
||||
ASM=ias
|
||||
TBB_ASM.OBJ = atomic_support.o lock_byte.o log2.o pause.o
|
||||
endif
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,79 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
ifndef arch
|
||||
arch:=$(shell uname -p)
|
||||
ifeq ($(arch),i386)
|
||||
ifeq ($(shell isainfo -b),64)
|
||||
arch:=intel64
|
||||
else
|
||||
arch:=ia32
|
||||
endif
|
||||
endif
|
||||
export arch
|
||||
# For non-IA systems running Sun OS, 'arch' will contain whatever is printed by uname -p.
|
||||
# In particular, for SPARC architecture it will contain "sparc".
|
||||
endif
|
||||
|
||||
ifndef runtime
|
||||
gcc_version:=$(shell gcc -dumpfullversion -dumpversion)
|
||||
os_version:=$(shell uname -r)
|
||||
os_kernel_version:=$(shell uname -r | sed -e 's/-.*$$//')
|
||||
export runtime:=cc$(gcc_version)_kernel$(os_kernel_version)
|
||||
endif
|
||||
|
||||
ifeq ($(arch),sparc)
|
||||
native_compiler := gcc
|
||||
export compiler ?= gcc
|
||||
else
|
||||
native_compiler := suncc
|
||||
export compiler ?= suncc
|
||||
endif
|
||||
# debugger ?= gdb
|
||||
|
||||
CMD=$(SHELL) -c
|
||||
CWD=$(shell pwd)
|
||||
RM?=rm -f
|
||||
RD?=rmdir
|
||||
MD?=mkdir -p
|
||||
NUL= /dev/null
|
||||
SLASH=/
|
||||
MAKE_VERSIONS=bash $(tbb_root)/build/version_info_sunos.sh $(VERSION_FLAGS) >version_string.ver
|
||||
MAKE_TBBVARS=bash $(tbb_root)/build/generate_tbbvars.sh
|
||||
|
||||
ifdef LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH := .:$(LD_LIBRARY_PATH)
|
||||
else
|
||||
export LD_LIBRARY_PATH := .
|
||||
endif
|
||||
|
||||
####### Build settings ########################################################
|
||||
|
||||
OBJ = o
|
||||
DLL = so
|
||||
LIBEXT=so
|
||||
|
||||
TBB.LST =
|
||||
TBB.DEF =
|
||||
TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
|
||||
TBB.LIB = $(TBB.DLL)
|
||||
LINK_TBB.LIB = $(TBB.LIB)
|
||||
|
||||
MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOC.LIB = $(MALLOC.DLL)
|
||||
LINK_MALLOC.LIB = $(MALLOC.LIB)
|
||||
|
||||
MALLOCPROXY.DLL = libtbbmalloc_proxy$(DEBUG_SUFFIX).$(DLL)
|
||||
|
||||
TEST_LAUNCHER=sh $(tbb_root)/build/test_launcher.sh $(largs)
|
|
@ -0,0 +1,88 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
COMPILE_ONLY = -c -xMMD -errtags
|
||||
PREPROC_ONLY = -E -xMMD
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -KPIC
|
||||
DYLIB_KEY = -G
|
||||
LIBDL = -ldl
|
||||
# WARNING_AS_ERROR_KEY = -errwarn=%all
|
||||
WARNING_AS_ERROR_KEY = Warning as error
|
||||
# Supported Solaris Studio* 12.2 and above, remove ',inlasmpnu' in the line below to build by compiler prior Solaris Studio* 12.2
|
||||
WARNING_SUPPRESS = -erroff=unassigned,attrskipunsup,badargtype2w,badbinaryopw,wbadasg,wvarhidemem,inlasmpnu
|
||||
tbb_strict=0
|
||||
|
||||
CPLUS = CC
|
||||
CONLY = cc
|
||||
|
||||
OPENMP_FLAG = -xopenmp
|
||||
LIB_LINK_FLAGS = -G -R . -M$(tbb_root)/build/suncc.map.pause
|
||||
LINK_FLAGS += -M$(tbb_root)/build/suncc.map.pause
|
||||
LIBS = -lpthread -lrt -R .
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
#TODO: the $(stdlib) instead of hard-wiring STLPort
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = -mt -xO2 -g -library=stlport4 -DUSE_PTHREAD $(WARNING_SUPPRESS)
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -mt -DTBB_USE_DEBUG -g -library=stlport4 -DUSE_PTHREAD $(WARNING_SUPPRESS)
|
||||
endif
|
||||
|
||||
ASM=
|
||||
ASM_FLAGS=
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
CPLUS_FLAGS += -m64
|
||||
ASM_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
CPLUS_FLAGS += -m32
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
# TODO: verify whether -m64 implies V9 on relevant Sun Studio versions
|
||||
# (those that handle gcc assembler syntax)
|
||||
ifeq (sparc,$(arch))
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
export TBB_CUSTOM_VARS_SH=export CXXFLAGS="-I$${TBBROOT}/include -library=stlport4 $(CXXFLAGS) -M$${TBBROOT}/build/suncc.map.pause"
|
||||
export TBB_CUSTOM_VARS_CSH=setenv CXXFLAGS "-I$${TBBROOT}/include -library=stlport4 $(CXXFLAGS) -M$${TBBROOT}/build/suncc.map.pause"
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASSEMBLY_SOURCE=$(arch)-fbe
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
M_INCLUDES = $(INCLUDES) -I$(MALLOC_ROOT) -I$(MALLOC_SOURCE_ROOT)
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS)
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,126 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
SDL_FLAGS = -fPIE -fPIC -fstack-protector -Wformat -Wformat-security
|
||||
TEST_WARNING_KEY = -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -Wextra
|
||||
|
||||
WARNING_SUPPRESS = -Wno-parentheses -Wno-non-virtual-dtor
|
||||
DYLIB_KEY = -shared
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBDL = -ldl
|
||||
|
||||
CPLUS = $(TARGET_CXX)
|
||||
CONLY = $(TARGET_CC)
|
||||
|
||||
# -soname is necessary for proper linkage to TBB prebuilt libraries when building application with Android SDK
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY) -z relro -z now
|
||||
|
||||
# pie is necessary for test executables to work and might be removed if newer NDK will add it implicitly
|
||||
PIE_FLAG = -pie
|
||||
ifeq ($(APP_PIE), false)
|
||||
PIE_FLAG=
|
||||
endif
|
||||
|
||||
LINK_FLAGS = -Wl,-rpath-link=. -rdynamic
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
SDL_FLAGS += -D_FORTIFY_SOURCE=2
|
||||
CPLUS_FLAGS = -O2
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -g -O0 $(DEFINE_KEY)TBB_USE_DEBUG
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)USE_PTHREAD $(DEFINE_KEY)_GLIBCXX_HAVE_FENV_H
|
||||
|
||||
ifneq (,$(findstring $(arch),ia32 intel64))
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)DO_ITT_NOTIFY
|
||||
endif
|
||||
|
||||
ifeq (0, $(dynamic_load))
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)__TBB_DYNAMIC_LOAD_ENABLED=0
|
||||
endif
|
||||
|
||||
# Paths to the NDK prebuilt tools and libraries
|
||||
ifeq (,$(findstring $(ndk_version), $(foreach v, 7 8 9 10 11 12 13 14 15,r$(v) r$(v)b r$(v)c r$(v)d r$(v)e)))
|
||||
# Since Android* NDK r16 another sysroot and isystem paths have to be specified
|
||||
CPLUS_FLAGS += --sysroot=$(NDK_ROOT)/sysroot -isystem $(NDK_ROOT)/sysroot/usr/include/$(TRIPLE)
|
||||
# Android* version flag required since r16
|
||||
CPLUS_FLAGS += -D__ANDROID_API__=$(API_LEVEL)
|
||||
else
|
||||
CPLUS_FLAGS += --sysroot=$(SYSROOT)
|
||||
endif
|
||||
|
||||
# Library sysroot flag
|
||||
LIB_LINK_FLAGS += --sysroot=$(SYSROOT)
|
||||
# Flag for test executables
|
||||
LINK_FLAGS += --sysroot=$(SYSROOT)
|
||||
|
||||
LIBS = -L$(CPLUS_LIB_PATH) -lc++_shared
|
||||
ifeq (,$(findstring $(ndk_version),$(foreach v, 7 8 9 10 11,r$(v) r$(v)b r$(v)c r$(v)d r$(v)e)))
|
||||
LIBS += -lc++abi
|
||||
ifeq (arm,$(arch))
|
||||
LIBS += -lunwind
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (arm,$(arch))
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)__TBB_64BIT_ATOMICS=0
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += $(TARGET_CFLAGS)
|
||||
LIB_LINK_FLAGS += $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -L$(CPLUS_LIB_PATH)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
TBB_ASM.OBJ=
|
||||
MALLOC_ASM.OBJ=
|
||||
|
||||
ASM = $(tbb_tool_prefix)as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += --64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
ASM_FLAGS += --32
|
||||
endif
|
||||
ifeq ($(cfg),debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,113 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
TEST_WARNING_KEY = -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -Wextra
|
||||
|
||||
WARNING_SUPPRESS = -Wno-parentheses -Wno-non-virtual-dtor
|
||||
DYLIB_KEY = -shared
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBDL = -ldl
|
||||
|
||||
CPLUS = $(tbb_tool_prefix)g++
|
||||
CONLY = $(tbb_tool_prefix)gcc
|
||||
|
||||
# -soname is necessary for proper linkage to TBB prebuilt libraries when building application with Android SDK
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
||||
|
||||
# pie is necessary for test executables to work and might be removed if newer NDK will add it implicitly
|
||||
PIE_FLAG = -pie
|
||||
ifeq ($(APP_PIE), false)
|
||||
PIE_FLAG=
|
||||
endif
|
||||
|
||||
LINK_FLAGS = -Wl,-rpath-link=. -rdynamic
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = -O2
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -g -O0 $(DEFINE_KEY)TBB_USE_DEBUG
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)USE_PTHREAD $(DEFINE_KEY)_GLIBCXX_HAVE_FENV_H
|
||||
|
||||
ifneq (,$(findstring $(arch),ia32 intel64))
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)DO_ITT_NOTIFY
|
||||
endif
|
||||
|
||||
ifeq (0, $(dynamic_load))
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)__TBB_DYNAMIC_LOAD_ENABLED=0
|
||||
endif
|
||||
|
||||
|
||||
# Paths to the NDK prebuilt tools and libraries
|
||||
CPLUS_FLAGS += --sysroot=$(SYSROOT)
|
||||
LIB_LINK_FLAGS += --sysroot=$(SYSROOT)
|
||||
LIBS = -L$(CPLUS_LIB_PATH) -lgnustl_shared
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
# TODO: Determine best setting of -march and add to CPLUS_FLAGS
|
||||
CPLUS_FLAGS += -m32
|
||||
LIB_LINK_FLAGS += -m32
|
||||
else ifeq (intel64,$(arch))
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
else ifeq (arm,$(arch))
|
||||
CPLUS_FLAGS += -march=armv7-a $(DEFINE_KEY)TBB_USE_GCC_BUILTINS=1 $(DEFINE_KEY)__TBB_64BIT_ATOMICS=0
|
||||
else ifeq (arm64,$(arch))
|
||||
CPLUS_FLAGS += -march=armv8-a
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
TBB_ASM.OBJ=
|
||||
MALLOC_ASM.OBJ=
|
||||
|
||||
ASM = $(tbb_tool_prefix)as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += --64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
ASM_FLAGS += --32
|
||||
endif
|
||||
ifeq ($(cfg),debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,116 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY =
|
||||
TEST_WARNING_KEY = -Wshadow -Woverloaded-virtual -Wextra
|
||||
|
||||
WARNING_SUPPRESS = -Wno-parentheses -Wno-non-virtual-dtor
|
||||
DYLIB_KEY = -shared
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBDL = -ldl
|
||||
|
||||
CPLUS = icpc
|
||||
CONLY = icc
|
||||
|
||||
# -soname is necessary for proper linkage to TBB prebuilt libraries when building application with Android SDK
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
||||
|
||||
# pie is necessary for test executables to work and might be removed if newer NDK will add it implicitly
|
||||
PIE_FLAG = -pie
|
||||
ifeq ($(APP_PIE), false)
|
||||
PIE_FLAG=
|
||||
endif
|
||||
|
||||
LINK_FLAGS = -Wl,-rpath-link=. -rdynamic
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = -O2
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -g -O0 $(DEFINE_KEY)TBB_USE_DEBUG
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)USE_PTHREAD $(DEFINE_KEY)_GLIBCXX_HAVE_FENV_H
|
||||
|
||||
ifneq (,$(findstring $(arch),ia32 intel64))
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)DO_ITT_NOTIFY
|
||||
endif
|
||||
|
||||
ifeq (0, $(dynamic_load))
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)__TBB_DYNAMIC_LOAD_ENABLED=0
|
||||
endif
|
||||
|
||||
|
||||
# Paths to the NDK prebuilt tools and libraries
|
||||
CPLUS_FLAGS += --sysroot=$(SYSROOT)
|
||||
LIB_LINK_FLAGS += --sysroot=$(SYSROOT)
|
||||
# the -static-intel flag is to remove the need to copy Intel-specific libs to the device.
|
||||
LIBS = -L$(CPLUS_LIB_PATH) -lgnustl_shared -static-intel
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
# TODO: Determine best setting of -march and add to CPLUS_FLAGS
|
||||
CPLUS_FLAGS += -m32 -march=pentium4 -falign-stack=maintain-16-byte
|
||||
LIB_LINK_FLAGS += -m32
|
||||
else
|
||||
ifeq (intel64,$(arch))
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (arm,$(findstring arm,$(arch)))
|
||||
$(error "Unsupported architecture $(arch) for icc compiler")
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
TBB_ASM.OBJ=
|
||||
MALLOC_ASM.OBJ=
|
||||
|
||||
ASM = $(tbb_tool_prefix)as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += --64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
ASM_FLAGS += --32
|
||||
endif
|
||||
ifeq ($(cfg),debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,59 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
#
|
||||
# Extra gmake command-line parameters for use with Android:
|
||||
#
|
||||
# dlopen_workaround: Some OS versions need workaround for dlopen to avoid recursive calls.
|
||||
#
|
||||
|
||||
####### Detections and Commands ###############################################
|
||||
|
||||
ifeq (android,$(findstring android,$(tbb_os)))
|
||||
$(error TBB only supports cross-compilation for Android. Specify "target=android" instead.)
|
||||
endif
|
||||
|
||||
ifndef BUILDING_PHASE
|
||||
ifneq ("command line","$(origin arch)")
|
||||
ifeq (icc,$(compiler))
|
||||
export COMPILER_VERSION := ICC: $(shell icc -V </dev/null 2>&1 | grep 'Version')
|
||||
ifneq (,$(findstring running on IA-32, $(COMPILER_VERSION)))
|
||||
export arch:=ia32
|
||||
else ifneq (,$(findstring running on Intel(R) 64, $(COMPILER_VERSION)))
|
||||
export arch:=intel64
|
||||
else
|
||||
$(error "No support for Android in $(COMPILER_VERSION)")
|
||||
endif
|
||||
|
||||
else
|
||||
ifdef ANDROID_SERIAL
|
||||
uname_m:=$(shell adb shell uname -m)
|
||||
ifeq (i686,$(uname_m))
|
||||
export arch:=ia32
|
||||
else
|
||||
export arch:=$(uname_m)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ("$(arch)","")
|
||||
$(error "No target architecture specified and \'ANDROID_SERIAL\' environment variable specifying target device not set")
|
||||
endif
|
||||
|
||||
# Android platform only supported from TBB 4.1 forward
|
||||
NO_LEGACY_TESTS = 1
|
||||
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
####### Detections and Commands ###############################################
|
||||
|
||||
# Must set def_prefix according to target architecture detected above
|
||||
ifeq (ia32,$(arch))
|
||||
def_prefix = lin32
|
||||
endif
|
||||
ifeq (arm,$(findstring arm,$(arch)))
|
||||
def_prefix = lin32
|
||||
endif
|
||||
ifeq (64,$(findstring 64,$(arch)))
|
||||
def_prefix = lin64
|
||||
endif
|
||||
|
||||
ifdef ndk_version
|
||||
$(warning "NDK version $(ndk_version)")
|
||||
else
|
||||
$(warning "NDK version not set in environment, using \'unknown\' instead.")
|
||||
ndk_version:=unknown
|
||||
endif
|
||||
|
||||
export runtime:=$(target)_NDK$(ndk_version)_version_$(target_os_version)
|
||||
|
||||
AR = $(tbb_tool_prefix)ar
|
||||
MAKE_VERSIONS=sh $(tbb_root)/build/version_info_android.sh $(VERSION_FLAGS) >version_string.ver
|
||||
|
||||
####### Build settings ########################################################
|
||||
|
||||
# No SONAME_SUFFIX for Android allowed in library names
|
||||
TBB.LST = $(tbb_root)/src/tbb/$(def_prefix)-tbb-export.lst
|
||||
TBB.DEF = $(TBB.LST:.lst=.def)
|
||||
TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
|
||||
TBB.LIB = $(TBB.DLL)
|
||||
TBB_NO_VERSION.DLL=
|
||||
LINK_TBB.LIB = $(TBB.LIB)
|
||||
|
||||
MALLOC.DEF = $(MALLOC_ROOT)/$(def_prefix)-tbbmalloc-export.def
|
||||
MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOC.LIB = $(MALLOC.DLL)
|
||||
MALLOC_NO_VERSION.DLL=
|
||||
LINK_MALLOC.LIB = $(MALLOC.LIB)
|
||||
|
||||
MALLOCPROXY.DEF = $(MALLOC_ROOT)/$(def_prefix)-proxy-export.def
|
||||
MALLOCPROXY.DLL = libtbbmalloc_proxy$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOCPROXY_NO_VERSION.DLL=
|
||||
MALLOCPROXY.LIB = $(MALLOCPROXY.DLL)
|
||||
LINK_MALLOCPROXY.LIB = $(MALLOCPROXY.LIB)
|
||||
|
||||
TEST_LAUNCHER=
|
||||
run_cmd ?= -sh $(tbb_root)/build/android.linux.launcher.sh $(largs)
|
|
@ -0,0 +1,144 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Usage:
|
||||
# android.linux.launcher.sh [-v] [-q] [-s] [-r <repeats>] [-u] [-l <library>] <executable> <arg1> <arg2> <argN>
|
||||
# where: -v enables verbose output
|
||||
# where: -q enables quiet mode
|
||||
# where: -s runs the test in stress mode (until non-zero exit code or ctrl-c pressed)
|
||||
# where: -r <repeats> specifies number of times to repeat execution
|
||||
# where: -u is ignored on Android
|
||||
# where: -l <library> specifies the library name to be assigned to LD_PRELOAD
|
||||
#
|
||||
# Libs and executable necessary for testing should be present in the current directory before running.
|
||||
# ANDROID_SERIAL must be set to the connected Android target device name for file transfer and test runs.
|
||||
# ANDROID_TEST_DIRECTORY may be set to the directory used for testing on the Android target device; otherwise,
|
||||
# the default directory used is "/data/local/tmp/$(basename $PWD)".
|
||||
# Note: Do not remove the redirections to '/dev/null' in the script, otherwise the nightly test system will fail.
|
||||
|
||||
do_cleanup() #
|
||||
{ #
|
||||
adb pull $targetdir/events.txt events.txt > /dev/null 2>&1 #
|
||||
# Remove target directory on the device
|
||||
adb shell "rm -r ${targetdir}; mkdir -p ${targetdir}" > /dev/null 2>&1 #
|
||||
} #
|
||||
do_trap_cleanup() #
|
||||
{ #
|
||||
do_cleanup #
|
||||
exit -1 #
|
||||
} #
|
||||
while getopts "qvsr:ul:" flag #
|
||||
do case $flag in #
|
||||
s ) # Stress testing mode
|
||||
echo Doing stress testing. Press Ctrl-C to terminate
|
||||
run_env='stressed() { while $*; do :; done; }; ' #
|
||||
run_prefix="stressed $run_prefix" ;; #
|
||||
r ) # Repeats test n times
|
||||
run_env="repeated() { for i in $(seq -s ' ' 1 $OPTARG) ; do echo \$i of $OPTARG:; \$*; done; }; " #
|
||||
run_prefix="repeated $run_prefix" ;; #
|
||||
l ) # Additional library
|
||||
ldpreload="$OPTARG " ;; #
|
||||
u ) # Stack limit
|
||||
;; #
|
||||
q ) # Quiet mode, removes 'done' but prepends any other output by test name
|
||||
OUTPUT='2>&1 | sed -e "s/done//;/^[[:space:]]*$/d;s!^!$exename: !"' ;; #
|
||||
v ) # Verbose mode
|
||||
SUPPRESS='' #
|
||||
verbose=1 ;; #
|
||||
esac done #
|
||||
shift `expr $OPTIND - 1` #
|
||||
[ -z "$OUTPUT" ] && OUTPUT='| sed -e "s/\\r$//"' #
|
||||
[ $verbose ] || SUPPRESS='>/dev/null' #
|
||||
# Collect the executable name
|
||||
exename=$(basename $1) #
|
||||
shift #
|
||||
# Prepare the target directory on the device
|
||||
currentdir=$(basename $PWD) #
|
||||
targetdir=${ANDROID_TEST_DIRECTORY:-/data/local/tmp/$currentdir} #
|
||||
do_cleanup #
|
||||
trap do_trap_cleanup INT # if someone hits control-c, cleanup the device
|
||||
# Collect the list of files to transfer to the target device, starting with executable itself.
|
||||
fnamelist="$exename" #
|
||||
# Add the C++ standard library from the NDK, which is required for all tests on Android.
|
||||
if [ ! -z "${LIB_STL_ANDROID}" ]; then #
|
||||
fnamelist="$fnamelist ${LIB_STL_ANDROID}" #
|
||||
else #
|
||||
fnamelist="$fnamelist libc++_shared.so" #
|
||||
fi #
|
||||
# Find the TBB libraries and add them to the list.
|
||||
# Add TBB libraries from the current directory that contains libtbb* files
|
||||
files="$(ls libtbb* 2> /dev/null)" #
|
||||
[ -z "$files" ] || fnamelist="$fnamelist $files" #
|
||||
# Add any libraries built for specific tests.
|
||||
exeroot=${exename%\.*} #
|
||||
files="$(ls ${exeroot}*.so ${exeroot}*.so.* 2> /dev/null)" #
|
||||
[ -z "$files" ] || fnamelist="$fnamelist $files" #
|
||||
# TODO: Add extra libraries from the Intel(R) Compiler for certain tests
|
||||
# found=$(echo $exename | egrep 'test_malloc_atexit\|test_malloc_lib_unload' 2> /dev/null)
|
||||
# if [ ! -z $found ] ; then
|
||||
# fnamelist="$fnamelist ${compiler_path_lib}/libimf.so \
|
||||
# ${compiler_path_lib}/libsvml.so \
|
||||
# ${compiler_path_lib}/libintlc.so.5"
|
||||
# fi
|
||||
|
||||
# Transfer collected executable and library files to the target device.
|
||||
transfers_ok=1 #
|
||||
for fullname in $fnamelist; do { #
|
||||
if [ -r $fullname ]; then { #
|
||||
# Transfer the executable and libraries to top-level target directory
|
||||
[ $verbose ] && echo -n "Pushing $fullname: " #
|
||||
eval "adb push $fullname ${targetdir}/$(basename $fullname) $SUPPRESS 2>&1" #
|
||||
}; else { #
|
||||
echo "Error: required file ${currentdir}/${fullname} for test $exename not available for transfer." #
|
||||
transfers_ok=0 #
|
||||
}; fi #
|
||||
}; done #
|
||||
if [ "${transfers_ok}" = "0" ]; then { #
|
||||
do_cleanup #
|
||||
exit -1 #
|
||||
}; fi #
|
||||
# Transfer input files used by example codes by scanning the executable argument list.
|
||||
for fullname in "$@"; do { #
|
||||
if [ -r $fullname ]; then { #
|
||||
directory=$(dirname $fullname) #
|
||||
filename=$(basename $fullname) #
|
||||
# strip leading "." from fullname if present
|
||||
if [ "$directory" = "\." ]; then { #
|
||||
directory="" #
|
||||
fullname=$filename #
|
||||
}; fi #
|
||||
# Create the target directory to hold input file if necessary
|
||||
if [ ! -z $directory ]; then { #
|
||||
eval "adb shell 'mkdir $directory' $SUPPRESS 2>&1" #
|
||||
}; fi #
|
||||
# Transfer the input file to corresponding directory on target device
|
||||
[ $verbose ] && echo -n "Pushing $fullname: " #
|
||||
eval "adb push $fullname ${targetdir}/$fullname $SUPPRESS 2>&1" #
|
||||
}; fi #
|
||||
}; done #
|
||||
# Set LD_PRELOAD if necessary
|
||||
[ -z "$ldpreload" ] || run_prefix="LD_PRELOAD='$ldpreload' $run_prefix" #
|
||||
[ $verbose ] && echo Running $run_prefix ./$exename $* #
|
||||
run_env="$run_env cd $targetdir; export LD_LIBRARY_PATH=." #
|
||||
[ -z "$VIRTUAL_MACHINE" ] || run_env="$run_env; export VIRTUAL_MACHINE=$VIRTUAL_MACHINE" #
|
||||
# The return_code file is the best way found to return the status of the test execution when using adb shell.
|
||||
eval 'adb shell "$run_env; $run_prefix ./$exename $* || echo -n \$? >error_code"' "${OUTPUT}" #
|
||||
# Capture the return code string and remove the trailing \r from the return_code file contents
|
||||
err=`adb shell "cat $targetdir/error_code 2>/dev/null"` #
|
||||
[ -z $err ] || echo $exename: exited with error $err #
|
||||
do_cleanup #
|
||||
# Return the exit code of the test.
|
||||
exit $err #
|
|
@ -0,0 +1,72 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
####### Detections and Commands ###############################################
|
||||
|
||||
# Must set def_prefix according to target architecture detected above
|
||||
ifeq (ia32,$(arch))
|
||||
def_prefix = lin32
|
||||
endif
|
||||
ifeq (arm,$(findstring arm,$(arch)))
|
||||
def_prefix = lin32
|
||||
endif
|
||||
ifeq (64,$(findstring 64,$(arch)))
|
||||
def_prefix = lin64
|
||||
endif
|
||||
|
||||
ifdef ndk_version
|
||||
$(warning "NDK version $(ndk_version)")
|
||||
else
|
||||
$(warning "NDK version not set in environment, using \'unknown\' instead.")
|
||||
ndk_version:=unknown
|
||||
endif
|
||||
|
||||
export runtime:=$(target)_NDK$(ndk_version)_version_$(target_os_version)
|
||||
|
||||
AR = $(tbb_tool_prefix)ar
|
||||
MAKE_VERSIONS=sh $(tbb_root)/build/version_info_android.sh $(VERSION_FLAGS) >version_string.ver
|
||||
|
||||
####### Build settings ########################################################
|
||||
|
||||
# No SONAME_SUFFIX for Android allowed in library names
|
||||
TBB.LST = $(tbb_root)/src/tbb/$(def_prefix)-tbb-export.lst
|
||||
TBB.DEF = $(TBB.LST:.lst=.def)
|
||||
TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
|
||||
TBB.LIB = $(TBB.DLL)
|
||||
TBB_NO_VERSION.DLL=
|
||||
LINK_TBB.LIB = $(TBB.LIB)
|
||||
|
||||
MALLOC.DEF = $(MALLOC_ROOT)/$(def_prefix)-tbbmalloc-export.def
|
||||
MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOC.LIB = $(MALLOC.DLL)
|
||||
MALLOC_NO_VERSION.DLL=
|
||||
LINK_MALLOC.LIB = $(MALLOC.LIB)
|
||||
|
||||
MALLOCPROXY.DEF = $(MALLOC_ROOT)/$(def_prefix)-proxy-export.def
|
||||
MALLOCPROXY.DLL = libtbbmalloc_proxy$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOCPROXY_NO_VERSION.DLL=
|
||||
MALLOCPROXY.LIB = $(MALLOCPROXY.DLL)
|
||||
LINK_MALLOCPROXY.LIB = $(MALLOCPROXY.LIB)
|
||||
|
||||
TBB.RES =
|
||||
MALLOC.RES =
|
||||
RML.RES =
|
||||
TBB.MANIFEST =
|
||||
MALLOC.MANIFEST =
|
||||
RML.MANIFEST =
|
||||
OBJ = o
|
||||
DLL = so
|
||||
|
||||
TEST_LAUNCHER=
|
||||
run_cmd ?= -sh $(tbb_root)/build/android.linux.launcher.sh $(largs)
|
|
@ -0,0 +1,74 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
####### Detections and Commands ###############################################
|
||||
|
||||
# Must set def_prefix according to target architecture detected above
|
||||
ifeq (ia32,$(arch))
|
||||
def_prefix = lin32
|
||||
endif
|
||||
ifeq (arm,$(findstring arm,$(arch)))
|
||||
def_prefix = lin32
|
||||
endif
|
||||
ifeq (64,$(findstring 64,$(arch)))
|
||||
def_prefix = lin64
|
||||
endif
|
||||
|
||||
ifdef ndk_version
|
||||
$(warning "NDK version $(ndk_version)")
|
||||
else
|
||||
$(warning "NDK version not set in environment, using \'unknown\' instead.")
|
||||
ndk_version:=unknown
|
||||
endif
|
||||
|
||||
export runtime:=$(target)_NDK$(ndk_version)_version_$(target_os_version)
|
||||
|
||||
AR = $(tbb_tool_prefix)ar
|
||||
MAKE_VERSIONS = cmd /C cscript /nologo /E:jscript $(subst \,/,$(tbb_root))/build/version_info_windows.js $(CONLY) $(arch) $(subst \,/,"$(VERSION_FLAGS)") > version_string.ver
|
||||
|
||||
####### Build settings ########################################################
|
||||
|
||||
# No SONAME_SUFFIX for Android allowed in library names
|
||||
TBB.LST = $(tbb_root)/src/tbb/$(def_prefix)-tbb-export.lst
|
||||
TBB.DEF = $(TBB.LST:.lst=.def)
|
||||
TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
|
||||
TBB.LIB = $(TBB.DLL)
|
||||
TBB_NO_VERSION.DLL=
|
||||
LINK_TBB.LIB = $(TBB.LIB)
|
||||
|
||||
MALLOC.DEF = $(MALLOC_ROOT)/$(def_prefix)-tbbmalloc-export.def
|
||||
MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOC.LIB = $(MALLOC.DLL)
|
||||
MALLOC_NO_VERSION.DLL=
|
||||
LINK_MALLOC.LIB = $(MALLOC.LIB)
|
||||
|
||||
MALLOCPROXY.DEF = $(MALLOC_ROOT)/$(def_prefix)-proxy-export.def
|
||||
MALLOCPROXY.DLL = libtbbmalloc_proxy$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOCPROXY_NO_VERSION.DLL=
|
||||
MALLOCPROXY.LIB = $(MALLOCPROXY.DLL)
|
||||
|
||||
TBB.RES =
|
||||
MALLOC.RES =
|
||||
RML.RES =
|
||||
TBB.MANIFEST =
|
||||
MALLOC.MANIFEST =
|
||||
RML.MANIFEST =
|
||||
OBJ = o
|
||||
DLL = so
|
||||
|
||||
TEST_LAUNCHER=
|
||||
run_cmd ?= -sh $(tbb_root)/build/android.linux.launcher.sh $(largs)
|
||||
export UNIXMODE = 1
|
||||
# Clang for Android* uses the INCLUDE variable (instead of CPATH)
|
||||
export USE_INCLUDE_ENV = 1
|
|
@ -0,0 +1,72 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Defines settings for building the TBB run-time as a static library.
|
||||
# Use these only on platforms where dynamic linking is impractical.
|
||||
#
|
||||
# IF YOU USE TBB AS A STATIC LIBRARY, YOU MUST GUARANTEE THAT ONLY ONE COPY OF
|
||||
# THE TBB RUN-TIME IS LINKED INTO AN APPLICATION! LINKING IN MULTIPLE COPIES
|
||||
# OF THE TBB RUN-TIME, DIRECTLY OR INDIRECTLY, MAY CAUSE PROGRAM FAILURE!
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Note that ITT_NOTIFY allows to selectively remove the definition of
|
||||
# DO_ITT_NOTIFY without sabotaging deferred expansion of CPLUS_FLAGS.
|
||||
# TODO: currently only in linux.{gcc,xl}.inc
|
||||
|
||||
# Note that -pthread with xl gives "1501-210 (W) command option t contains an incorrect subargument";
|
||||
# multithreading is instead achieved by using the _r affix in the compiler name.
|
||||
# TODO: is -lpthread still relevant/needed with XL and _r affix?
|
||||
|
||||
# Note that usage of dynamic (shared) libraries is disabled
|
||||
# (via -D__TBB_DYNAMIC_LOAD_ENABLED=0 and LIBDL emptied) primarily for performance.
|
||||
|
||||
# OS specific settings =>
|
||||
LIB_LINK_CMD = ar rcs
|
||||
LIB_LINK_FLAGS =
|
||||
LIB_LINK_LIBS =
|
||||
LIB_OUTPUT_KEY =
|
||||
DYLIB_KEY =
|
||||
ifeq ($(tbb_os),linux)
|
||||
ifeq ($(compiler),clang)
|
||||
LIBS = -pthread -lrt
|
||||
endif
|
||||
ifeq ($(compiler),gcc)
|
||||
LIBS = -pthread -lrt
|
||||
endif
|
||||
ifeq ($(compiler),xl)
|
||||
LIBS = -lpthread -lrt
|
||||
endif
|
||||
LINK_FLAGS =
|
||||
endif
|
||||
override CXXFLAGS += -D__TBB_DYNAMIC_LOAD_ENABLED=0 -D__TBB_SOURCE_DIRECTLY_INCLUDED=1
|
||||
ITT_NOTIFY =
|
||||
DLL = a
|
||||
LIBEXT = a
|
||||
LIBPREF = lib
|
||||
LIBDL =
|
||||
# <= OS specific settings
|
||||
|
||||
TBB.DLL = $(LIBPREF)tbb$(DEBUG_SUFFIX).$(LIBEXT)
|
||||
LINK_TBB.LIB = $(TBB.DLL)
|
||||
TBB.LST =
|
||||
TBB.DEF =
|
||||
TBB_NO_VERSION.DLL =
|
||||
|
||||
MALLOC.DLL = $(LIBPREF)tbbmalloc$(DEBUG_SUFFIX).$(LIBEXT)
|
||||
LINK_MALLOC.LIB = $(MALLOC.DLL)
|
||||
MALLOC.DEF =
|
||||
MALLOC_NO_VERSION.DLL =
|
||||
MALLOCPROXY.DLL =
|
||||
MALLOCPROXY.DEF =
|
|
@ -0,0 +1,204 @@
|
|||
#!/usr/bin/env python
|
||||
#
|
||||
# Copyright (c) 2017-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Provides unified tool for preparing TBB for packaging
|
||||
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import shutil
|
||||
import platform
|
||||
import argparse
|
||||
from glob import glob
|
||||
from collections import OrderedDict
|
||||
|
||||
jp = os.path.join
|
||||
is_win = (platform.system() == 'Windows')
|
||||
is_lin = (platform.system() == 'Linux')
|
||||
is_mac = (platform.system() == 'Darwin')
|
||||
|
||||
default_prefix = os.getenv('PREFIX', 'install_prefix')
|
||||
if is_win:
|
||||
default_prefix = jp(default_prefix, 'Library') # conda-specific by default on Windows
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--tbbroot', default='.', help='Take Intel TBB from here')
|
||||
parser.add_argument('--prefix', default=default_prefix, help='Prefix')
|
||||
parser.add_argument('--prebuilt', default=[], action='append', help='Directories to find prebuilt files')
|
||||
parser.add_argument('--no-rebuild', default=False, action='store_true', help='do not rebuild')
|
||||
parser.add_argument('--install', default=False, action='store_true', help='install all')
|
||||
parser.add_argument('--install-libs', default=False, action='store_true', help='install libs')
|
||||
parser.add_argument('--install-devel', default=False, action='store_true', help='install devel')
|
||||
parser.add_argument('--install-docs', default=False, action='store_true', help='install docs')
|
||||
parser.add_argument('--install-python', default=False, action='store_true', help='install python module')
|
||||
parser.add_argument('--make-tool', default='make', help='Use different make command instead')
|
||||
parser.add_argument('--copy-tool', default=None, help='Use this command for copying ($ tool file dest-dir)')
|
||||
parser.add_argument('--build-args', default="", help='specify extra build args')
|
||||
parser.add_argument('--build-prefix', default='local', help='build dir prefix')
|
||||
parser.add_argument('--cmake-dir', help='directory to install CMake configuration files. Default: <prefix>/lib/cmake/tbb')
|
||||
if is_win:
|
||||
parser.add_argument('--msbuild', default=False, action='store_true', help='Use msbuild')
|
||||
parser.add_argument('--vs', default="2012", help='select VS version for build')
|
||||
parser.add_argument('--vs-platform', default="x64", help='select VS platform for build')
|
||||
parser.add_argument('ignore', nargs='?', help="workaround conda-build issue #2512")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.install:
|
||||
args.install_libs = True
|
||||
args.install_devel = True
|
||||
args.install_docs = True
|
||||
args.install_python= True
|
||||
|
||||
def custom_cp(src, dst):
|
||||
assert os.system(' '.join([args.copy_tool, src, dst])) == 0
|
||||
|
||||
if args.copy_tool:
|
||||
install_cp = custom_cp # e.g. to use install -p -D -m 755 on Linux
|
||||
else:
|
||||
install_cp = shutil.copy
|
||||
|
||||
bin_dir = jp(args.prefix, "bin")
|
||||
lib_dir = jp(args.prefix, "lib")
|
||||
inc_dir = jp(args.prefix, 'include')
|
||||
doc_dir = jp(args.prefix, 'share', 'doc', 'tbb')
|
||||
cmake_dir = jp(args.prefix, "lib", "cmake", "tbb") if args.cmake_dir is None else args.cmake_dir
|
||||
|
||||
if is_win:
|
||||
os.environ["OS"] = "Windows_NT" # make sure TBB will interpret it correctly
|
||||
libext = '.dll'
|
||||
libpref = ''
|
||||
dll_dir = bin_dir
|
||||
else:
|
||||
libext = '.dylib' if is_mac else '.so.2'
|
||||
libpref = 'lib'
|
||||
dll_dir = lib_dir
|
||||
|
||||
tbb_names = ["tbb", "tbbmalloc", "tbbmalloc_proxy"]
|
||||
|
||||
##############################################################
|
||||
|
||||
def system(arg):
|
||||
print('$ ', arg)
|
||||
return os.system(arg)
|
||||
|
||||
def run_make(arg):
|
||||
if system('%s -j %s'% (args.make_tool, arg)) != 0:
|
||||
print("\nBummer. Running serial build in order to recover the log and have a chance to fix the build")
|
||||
assert system('%s %s'% (args.make_tool, arg)) == 0
|
||||
|
||||
os.chdir(args.tbbroot)
|
||||
if args.prebuilt:
|
||||
release_dirs = sum([glob(d) for d in args.prebuilt], [])
|
||||
print("Using pre-built files from ", release_dirs)
|
||||
else:
|
||||
if is_win and args.msbuild:
|
||||
preview_release_dir = release_dir = jp(args.tbbroot, 'build', 'vs'+args.vs, args.vs_platform, 'Release')
|
||||
if not args.no_rebuild or not os.path.isdir(release_dir):
|
||||
assert os.system('msbuild /m /p:Platform=%s /p:Configuration=Release %s build/vs%s/makefile.sln'% \
|
||||
(args.vs_platform, args.build_args, args.vs)) == 0
|
||||
preview_debug_dir = debug_dir = jp(args.tbbroot, 'build', 'vs'+args.vs, args.vs_platform, 'Debug')
|
||||
if not args.no_rebuild or not os.path.isdir(debug_dir):
|
||||
assert os.system('msbuild /m /p:Platform=%s /p:Configuration=Debug %s build/vs%s/makefile.sln'% \
|
||||
(args.vs_platform, args.build_args, args.vs)) == 0
|
||||
else:
|
||||
release_dir = jp(args.tbbroot, 'build', args.build_prefix+'_release')
|
||||
debug_dir = jp(args.tbbroot, 'build', args.build_prefix+'_debug')
|
||||
if not args.no_rebuild or not (os.path.isdir(release_dir) and os.path.isdir(debug_dir)):
|
||||
run_make('tbb_build_prefix=%s %s'% (args.build_prefix, args.build_args))
|
||||
preview_release_dir = jp(args.tbbroot, 'build', args.build_prefix+'_preview_release')
|
||||
preview_debug_dir = jp(args.tbbroot, 'build', args.build_prefix+'_preview_debug')
|
||||
if not args.no_rebuild or not (os.path.isdir(preview_release_dir) and os.path.isdir(preview_debug_dir)):
|
||||
run_make('tbb_build_prefix=%s_preview %s tbb_cpf=1 tbb'% (args.build_prefix, args.build_args))
|
||||
release_dirs = [release_dir, debug_dir, preview_release_dir, preview_debug_dir]
|
||||
|
||||
filemap = OrderedDict()
|
||||
def append_files(names, dst, paths=release_dirs):
|
||||
global filemap
|
||||
files = sum([glob(jp(d, f)) for d in paths for f in names], [])
|
||||
filemap.update(dict(zip(files, [dst]*len(files))))
|
||||
|
||||
|
||||
if args.install_libs:
|
||||
append_files([libpref+f+libext for f in tbb_names], dll_dir)
|
||||
|
||||
if args.install_devel:
|
||||
dll_files = [libpref+f+'_debug'+libext for f in tbb_names] # adding debug libraries
|
||||
if not is_win or not args.msbuild:
|
||||
dll_files += [libpref+"tbb_preview"+libext, libpref+"tbb_preview_debug"+libext]
|
||||
if is_win:
|
||||
dll_files += ['tbb*.pdb'] # copying debug info
|
||||
if is_lin:
|
||||
dll_files += ['libtbb*.so'] # copying linker scripts
|
||||
# symlinks .so -> .so.2 should not be created instead
|
||||
# since linking with -ltbb when using links can result in
|
||||
# incorrect dependence upon unversioned .so files
|
||||
append_files(dll_files, dll_dir)
|
||||
if is_win:
|
||||
append_files(['*.lib', '*.def'], lib_dir) # copying linker libs and defs
|
||||
for rootdir, dirnames, filenames in os.walk(jp(args.tbbroot,'include')):
|
||||
files = [f for f in filenames if not '.html' in f]
|
||||
append_files(files, jp(inc_dir, rootdir.split('include')[1][1:]), paths=(rootdir,))
|
||||
|
||||
# Preparing CMake configuration files
|
||||
cmake_build_dir = jp(args.tbbroot, 'build', args.build_prefix+'_release', 'cmake_configs')
|
||||
assert system('cmake -DINSTALL_DIR=%s -DSYSTEM_NAME=%s -DTBB_VERSION_FILE=%s -DINC_REL_PATH=%s -DLIB_REL_PATH=%s -DBIN_REL_PATH=%s -P %s' % \
|
||||
(cmake_build_dir,
|
||||
platform.system(),
|
||||
jp(args.tbbroot, 'include', 'tbb', 'tbb_stddef.h'),
|
||||
os.path.relpath(inc_dir, cmake_dir),
|
||||
os.path.relpath(lib_dir, cmake_dir),
|
||||
os.path.relpath(bin_dir, cmake_dir),
|
||||
jp(args.tbbroot, 'cmake', 'tbb_config_installer.cmake'))) == 0
|
||||
append_files(['TBBConfig.cmake', 'TBBConfigVersion.cmake'], cmake_dir, paths=[cmake_build_dir])
|
||||
|
||||
if args.install_python: # RML part
|
||||
irml_dir = jp(args.tbbroot, 'build', args.build_prefix+'_release')
|
||||
run_make('-C src tbb_build_prefix=%s %s python_rml'% (args.build_prefix, args.build_args))
|
||||
if is_lin:
|
||||
append_files(['libirml.so.1'], dll_dir, paths=[irml_dir])
|
||||
|
||||
if args.install_docs:
|
||||
files = [
|
||||
'CHANGES',
|
||||
'LICENSE',
|
||||
'README',
|
||||
'README.md',
|
||||
'Release_Notes.txt',
|
||||
]
|
||||
append_files(files, doc_dir, paths=release_dirs+[jp(args.tbbroot, d) for d in ('.', 'doc')])
|
||||
|
||||
for f in filemap.keys():
|
||||
assert os.path.exists(f)
|
||||
assert os.path.isfile(f)
|
||||
|
||||
if filemap:
|
||||
print("Copying to prefix =", args.prefix)
|
||||
for f, dest in filemap.items():
|
||||
if not os.path.isdir(dest):
|
||||
os.makedirs(dest)
|
||||
print("+ %s to $prefix%s"%(f,dest.replace(args.prefix, '')))
|
||||
install_cp(f, dest)
|
||||
|
||||
if args.install_python: # Python part
|
||||
paths = [os.path.abspath(d) for d in [args.prefix, inc_dir, irml_dir, lib_dir]+release_dirs]
|
||||
os.environ["TBBROOT"] = paths[0]
|
||||
# all the paths must be relative to python/ directory or be absolute
|
||||
assert system('python python/setup.py build -b%s build_ext -I%s -L%s install -f'% \
|
||||
(paths[2], paths[1], ':'.join(paths[2:]))) == 0
|
||||
|
||||
print("done")
|
|
@ -0,0 +1,7 @@
|
|||
src/tbb
|
||||
src/tbbmalloc
|
||||
include/tbb
|
||||
src/rml/server
|
||||
src/rml/client
|
||||
src/rml/include
|
||||
source/malloc
|
|
@ -0,0 +1,170 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
ifndef tbb_os
|
||||
|
||||
# Windows sets environment variable OS; for other systems, ask uname
|
||||
ifeq ($(OS),)
|
||||
OS:=$(shell uname)
|
||||
ifeq ($(OS),)
|
||||
$(error "Cannot detect operating system")
|
||||
endif
|
||||
export tbb_os=$(OS)
|
||||
endif
|
||||
|
||||
ifeq ($(OS), Windows_NT)
|
||||
export tbb_os=windows
|
||||
endif
|
||||
ifeq ($(OS), Linux)
|
||||
export tbb_os=linux
|
||||
endif
|
||||
ifeq ($(OS), Darwin)
|
||||
export tbb_os=macos
|
||||
endif
|
||||
|
||||
endif # !tbb_os
|
||||
|
||||
ifeq (1,$(tbb_cpf))
|
||||
export CPF_SUFFIX ?=_preview
|
||||
endif
|
||||
|
||||
ifeq (0,$(exceptions))
|
||||
# Inverse the value, for simplicity of use
|
||||
export no_exceptions=1
|
||||
endif
|
||||
|
||||
ifdef cpp0x
|
||||
$(warning "Warning: deprecated cpp0x=$(cpp0x) is used, stdver must be used instead. Building in stdver=c++0x mode.")
|
||||
export stdver?=c++0x
|
||||
override cpp0x=
|
||||
endif
|
||||
|
||||
# Define C & C++ compilers according to platform defaults or CXX & CC environment variables
|
||||
ifneq (,$(findstring environment, $(origin CXX)))
|
||||
CPLUS = $(CXX)
|
||||
endif
|
||||
ifneq (,$(findstring environment, $(origin CC)))
|
||||
CONLY = $(CC)
|
||||
endif
|
||||
|
||||
ifneq (,$(stdver))
|
||||
ifeq (,$(findstring ++, $(stdver)))
|
||||
$(warning "Warning: unexpected stdver=$(stdver) is used.")
|
||||
endif
|
||||
CXX_STD_FLAGS=-std=$(stdver)
|
||||
endif
|
||||
|
||||
# The requested option is added unconditionally.
|
||||
# If it is not supported, a compiler warning or error is expected.
|
||||
# Note that CXX_STD_FLAGS can be changed in <os>.<compiler>.inc.
|
||||
CXX_ONLY_FLAGS+=$(CXX_STD_FLAGS)
|
||||
|
||||
ifeq (,$(wildcard $(tbb_root)/build/$(tbb_os).inc))
|
||||
$(error "$(tbb_os)" is not supported. Add build/$(tbb_os).inc file with os-specific settings )
|
||||
endif
|
||||
|
||||
# detect arch and runtime versions, provide common host-specific definitions
|
||||
include $(tbb_root)/build/$(tbb_os).inc
|
||||
|
||||
ifeq ($(arch),)
|
||||
$(error Architecture not detected)
|
||||
endif
|
||||
ifeq ($(runtime),)
|
||||
$(error Runtime version not detected)
|
||||
endif
|
||||
|
||||
# process target-dependent compilation and testing configurations
|
||||
ifdef target
|
||||
# optionally process target-dependent options for compilation and testing
|
||||
ifneq (,$(wildcard $(tbb_root)/build/$(target).inc))
|
||||
include $(tbb_root)/build/$(target).inc
|
||||
endif
|
||||
|
||||
# optionally process host-dependent environment for target-dependent compilation and testing
|
||||
ifneq (,$(wildcard $(tbb_root)/build/$(target).$(tbb_os).inc))
|
||||
include $(tbb_root)/build/$(target).$(tbb_os).inc
|
||||
endif
|
||||
|
||||
# insure at least one target-dependent configuration file was found for compilation and testing
|
||||
ifeq (,$(wildcard $(tbb_root)/build/$(target).inc)$(wildcard $(tbb_root)/build/$(target).$(tbb_os).inc))
|
||||
$(error "$(target)" is not supported. Add build/$(target).inc or build/$(target).$(tbb_os).inc file)
|
||||
endif
|
||||
endif #target
|
||||
|
||||
# Support for running debug tests to release library and vice versa
|
||||
flip_cfg=$(subst _flipcfg,_release,$(subst _release,_debug,$(subst _debug,_flipcfg,$(1))))
|
||||
cross_cfg = $(if $(crosstest),$(call flip_cfg,$(1)),$(1))
|
||||
# Setting default configuration to release
|
||||
cfg?=release
|
||||
|
||||
compiler_name=$(notdir $(compiler))
|
||||
ifdef BUILDING_PHASE
|
||||
ifndef target
|
||||
target:=$(tbb_os)
|
||||
endif
|
||||
# process host/target compiler-dependent build configuration
|
||||
ifeq (,$(wildcard $(tbb_root)/build/$(target).$(compiler_name).inc))
|
||||
$(error "$(compiler_name)" is not supported on $(target). Add build/$(target).$(compiler_name).inc file with compiler-specific settings. )
|
||||
endif
|
||||
include $(tbb_root)/build/$(target).$(compiler_name).inc
|
||||
endif
|
||||
|
||||
ifneq ($(BUILDING_PHASE),1)
|
||||
# definitions for top-level Makefiles
|
||||
origin_build_dir:=$(origin tbb_build_dir)
|
||||
tbb_build_dir?=$(tbb_root)$(SLASH)build
|
||||
export tbb_build_prefix?=$(tbb_os)_$(arch)_$(compiler_name)_$(runtime)$(CPF_SUFFIX)
|
||||
work_dir=$(tbb_build_dir)$(SLASH)$(tbb_build_prefix)
|
||||
endif # BUILDING_PHASE != 1
|
||||
|
||||
ifdef offload
|
||||
extra_inc=$(offload).offload.inc
|
||||
endif
|
||||
ifdef extra_inc
|
||||
ifneq (,$(wildcard $(tbb_root)/build/$(extra_inc)))
|
||||
include $(tbb_root)/build/$(extra_inc)
|
||||
else
|
||||
$(error specified build file: "build/$(extra_inc)" is not found. )
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef BUILDING_PHASE
|
||||
work_dir:=$(work_dir)
|
||||
# assign new value for tbb_root if path is not absolute (the filter keeps only /* paths)
|
||||
ifeq ($(filter /% $(SLASH)%, $(subst :, ,$(tbb_root)) ),)
|
||||
full_tbb_root:=$(CURDIR)/$(tbb_root)
|
||||
ifeq ($(origin_build_dir),undefined)
|
||||
#relative path are needed here as a workaround to support whitespaces in path
|
||||
override tbb_root:=../..
|
||||
else
|
||||
override tbb_root:=$(full_tbb_root)
|
||||
endif
|
||||
export tbb_root
|
||||
endif
|
||||
endif # !BUILDING_PHASE
|
||||
|
||||
.DELETE_ON_ERROR: # Make will delete target if error occurred when building it.
|
||||
|
||||
# MAKEOVERRIDES contains the command line variable definitions. Resetting it to
|
||||
# empty allows propagating all exported overridden variables to nested makes.
|
||||
# NOTEs:
|
||||
# 1. All variable set in command line are propagated to nested makes.
|
||||
# 2. All variables declared with the "export" keyword are propagated to
|
||||
# nested makes.
|
||||
# 3. "override" allows changing variables set in command line. But it doesn't
|
||||
# propagate new values to nested makes. For propagation, the "export" keyword
|
||||
# should be used.
|
||||
# 4. gmake v3.80 doesn't support exporting of target-specific variables using
|
||||
# the "export" keyword
|
||||
MAKEOVERRIDES =
|
|
@ -0,0 +1,169 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
|
||||
ifeq ($(tbb_strict),1)
|
||||
ifeq ($(WARNING_AS_ERROR_KEY),)
|
||||
$(error WARNING_AS_ERROR_KEY is empty)
|
||||
endif
|
||||
# Do not remove line below!
|
||||
WARNING_KEY += $(WARNING_AS_ERROR_KEY)
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring s,$(MAKEFLAGS)))
|
||||
override largs+=-q
|
||||
endif
|
||||
ifneq (,$(repeat))
|
||||
override largs+=-r $(repeat)
|
||||
endif
|
||||
ifneq (,$(largs)$(run_prefix))
|
||||
override run_cmd:=$(run_cmd) $(TEST_LAUNCHER)
|
||||
TEST_LAUNCHER=
|
||||
ifeq (,$(strip $(run_cmd)))
|
||||
$(warning Test launcher is not defined for the platform, ignoring launcher arguments)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef TEST_EXT
|
||||
TEST_EXT = exe
|
||||
endif
|
||||
|
||||
INCLUDES += $(INCLUDE_KEY)$(tbb_root)/src $(INCLUDE_KEY)$(tbb_root)/src/rml/include $(INCLUDE_KEY)$(tbb_root)/include
|
||||
|
||||
CPLUS_FLAGS += $(WARNING_KEY) $(CXXFLAGS)
|
||||
|
||||
# Suppress warnings about usage of deprecated content
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)TBB_SUPPRESS_DEPRECATED_MESSAGES=1
|
||||
|
||||
ifeq (1,$(tbb_cpf))
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)__TBB_CPF_BUILD=1
|
||||
endif
|
||||
ifeq (0,$(exceptions))
|
||||
CPLUS_FLAGS += $(DEFINE_KEY)TBB_USE_EXCEPTIONS=0
|
||||
endif
|
||||
LINK_FLAGS += $(LDFLAGS)
|
||||
LIB_LINK_FLAGS += $(LDFLAGS)
|
||||
|
||||
LIB_LINK_CMD ?= $(CPLUS) $(PIC_KEY)
|
||||
ifeq ($(origin LIB_OUTPUT_KEY), undefined)
|
||||
LIB_OUTPUT_KEY = $(OUTPUT_KEY)
|
||||
endif
|
||||
ifeq ($(origin LIB_LINK_LIBS), undefined)
|
||||
LIB_LINK_LIBS = $(LIBDL) $(LIBS)
|
||||
endif
|
||||
|
||||
# some platforms do not provide separate C-only compiler
|
||||
CONLY ?= $(CPLUS)
|
||||
|
||||
# The most generic rules
|
||||
#$(1) - is the target pattern
|
||||
define make-cxx-obj
|
||||
$1: %.cpp
|
||||
$$(CPLUS) $$(OUTPUTOBJ_KEY)$$@ $$(COMPILE_ONLY) $$(CPLUS_FLAGS) $$(CXX_ONLY_FLAGS) $$(CXX_WARN_SUPPRESS) $$(INCLUDES) $$<
|
||||
endef
|
||||
|
||||
TEST_AFFIXES_OBJS=$(addsuffix .$(OBJ),$(addprefix %_,$(TEST_SUFFIXES)) $(addsuffix _%,$(TEST_PREFIXES)))
|
||||
|
||||
# Make will not process the same recipe for each test pattern (since the dependency on the same %.cpp)
|
||||
# thus the separated recipes should be provided
|
||||
$(foreach t,%.$(OBJ) $(TEST_AFFIXES_OBJS),$(eval $(call make-cxx-obj,$(t))))
|
||||
|
||||
.PRECIOUS: %.$(OBJ) %.$(TEST_EXT) %.res $(TEST_AFFIXES_OBJS)
|
||||
|
||||
# Rules for generating a test DLL
|
||||
%_dll.$(OBJ): %.cpp
|
||||
$(CPLUS) $(COMPILE_ONLY) $(OUTPUTOBJ_KEY)$@ $(CPLUS_FLAGS) $(PIC_KEY) $(DEFINE_KEY)_USRDLL $(INCLUDES) $<
|
||||
|
||||
#$(1) - is the binary name
|
||||
#$(2) - is the input obj files and libraries
|
||||
define make-test-binary
|
||||
$(CPLUS) $(OUTPUT_KEY)$(strip $1) $(CPLUS_FLAGS) $(2) $(LIBS) $(LINK_FLAGS)
|
||||
endef
|
||||
|
||||
# LINK_FILES the list of options to link test specific files (libraries and object files)
|
||||
LINK_FILES+=$(TEST_LIBS)
|
||||
# Rule for generating executable test
|
||||
%.$(TEST_EXT): %.$(OBJ) $(TEST_LIBS) $(TEST_PREREQUISITE)
|
||||
$(call make-test-binary,$@,$< $(LINK_FILES) $(PIE_FLAG))
|
||||
|
||||
# Rules for generating a test DLL
|
||||
%_dll.$(DLL): LINK_FLAGS += $(PIC_KEY) $(DYLIB_KEY)
|
||||
%_dll.$(DLL): TEST_LIBS := $(subst %_dll.$(DLL),,$(TEST_LIBS))
|
||||
%_dll.$(DLL): %_dll.$(OBJ)
|
||||
$(call make-test-binary,$@,$< $(LINK_FILES))
|
||||
.PRECIOUS: %_dll.$(OBJ) %_dll.$(DLL)
|
||||
|
||||
%.$(OBJ): %.c
|
||||
$(CONLY) $(COMPILE_ONLY) $(OUTPUTOBJ_KEY)$@ $(C_FLAGS) $(INCLUDES) $<
|
||||
|
||||
%.$(OBJ): %.asm
|
||||
$(ASM) $(ASM_FLAGS) $<
|
||||
|
||||
%.$(OBJ): %.s
|
||||
cpp <$< | grep -v '^#' >$*.tmp
|
||||
$(ASM) $(ASM_FLAGS) -o $@ $*.tmp
|
||||
|
||||
# Rule for generating .E file if needed for visual inspection
|
||||
# Note that ICL treats an argument after PREPROC_ONLY as a file to open,
|
||||
# so all uses of PREPROC_ONLY should be immediately followed by a file name
|
||||
%.E: %.cpp
|
||||
$(CPLUS) $(CPLUS_FLAGS) $(CXX_ONLY_FLAGS) $(INCLUDES) $(PREPROC_ONLY) $< >$@
|
||||
|
||||
# TODO Rule for generating .asm file if needed for visual inspection
|
||||
%.asm: %.cpp
|
||||
$(CPLUS) /c /FAs /Fa $(CPLUS_FLAGS) $(CXX_ONLY_FLAGS) $(INCLUDES) $<
|
||||
|
||||
# TODO Rule for generating .s file if needed for visual inspection
|
||||
%.s: %.cpp
|
||||
$(CPLUS) -S $(CPLUS_FLAGS) $(CXX_ONLY_FLAGS) $(INCLUDES) $<
|
||||
|
||||
# Customizations
|
||||
$(KNOWN_WARNINGS): %.$(OBJ): %.cpp
|
||||
$(CPLUS) $(COMPILE_ONLY) $(subst $(WARNING_KEY),,$(CPLUS_FLAGS)) $(CXX_ONLY_FLAGS) $(CXX_WARN_SUPPRESS) $(INCLUDES) $<
|
||||
|
||||
tbb_misc.$(OBJ): version_string.ver
|
||||
tbb_misc.$(OBJ): INCLUDES+=$(INCLUDE_KEY).
|
||||
|
||||
tbb_misc.E: tbb_misc.cpp version_string.ver
|
||||
$(CPLUS) $(CPLUS_FLAGS) $(CXX_ONLY_FLAGS) $(INCLUDE_KEY). $(INCLUDES) $(PREPROC_ONLY) $< >$@
|
||||
|
||||
%.res: %.rc version_string.ver $(TBB.MANIFEST)
|
||||
rc /Fo$@ $(INCLUDES) $(filter /D%,$(CPLUS_FLAGS)) $<
|
||||
|
||||
# TODO: add $(LIB_LINK_LIBS) $(LIB_LINK_FLAGS) (in a separate line?) and remove useless $(INCLUDES)
|
||||
VERSION_FLAGS=$(CPLUS) $(CPLUS_FLAGS) $(CXX_ONLY_FLAGS) $(INCLUDES)
|
||||
|
||||
ifneq (,$(TBB.MANIFEST))
|
||||
$(TBB.MANIFEST):
|
||||
cmd /C "echo #include ^<stdio.h^> >tbbmanifest.c"
|
||||
cmd /C "echo int main(){return 0;} >>tbbmanifest.c"
|
||||
cl /nologo $(C_FLAGS) tbbmanifest.c
|
||||
|
||||
version_string.ver: $(TBB.MANIFEST)
|
||||
$(MAKE_VERSIONS)
|
||||
cmd /C "echo #define TBB_MANIFEST 1 >> version_string.ver"
|
||||
# TODO: fix parallel build by writing to a temporary file and rename it when complete
|
||||
else
|
||||
# TODO: make version strings directly representative for all the libraries
|
||||
version_string.ver:
|
||||
$(MAKE_VERSIONS)
|
||||
endif
|
||||
|
||||
test_% debug_%: test_%.$(TEST_EXT) $(TEST_PREREQUISITE)
|
||||
$(run_cmd) ./$< $(args)
|
||||
ifneq (,$(codecov))
|
||||
profmerge
|
||||
codecov $(if $(findstring -,$(codecov)),$(codecov),) -demang -comp $(tbb_root)/build/codecov.txt
|
||||
endif
|
||||
|
|
@ -0,0 +1,203 @@
|
|||
// Copyright (c) 2005-2020 Intel Corporation
|
||||
//
|
||||
// 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.
|
||||
|
||||
function readAllFromFile(fname) {
|
||||
var fso = new ActiveXObject("Scripting.FileSystemObject");
|
||||
var file = null;
|
||||
try {
|
||||
file = fso.OpenTextFile(fname, 1, 0);
|
||||
return (file.readAll());
|
||||
} finally {
|
||||
// Close the file in the finally section to guarantee that it will be closed in any case
|
||||
// (if the exception is thrown or not).
|
||||
file.Close();
|
||||
}
|
||||
}
|
||||
|
||||
function doWork() {
|
||||
var WshShell = WScript.CreateObject("WScript.Shell");
|
||||
|
||||
var tmpExec = WshShell.Run("cmd /c echo int main(){return 0;} >detect.c", 0, true);
|
||||
|
||||
// The next block deals with GCC (MinGW)
|
||||
if (WScript.Arguments.Count() > 1) {
|
||||
var compilerPath = WScript.Arguments(1);
|
||||
// The RegExp matches everything up to and including the last slash (it uses a greedy approach.)
|
||||
var compilerName = compilerPath.replace(/^.*[\/\\]/, "");
|
||||
if (compilerName.match(/gcc/i) != null) {
|
||||
if (WScript.Arguments(0) == "/arch") {
|
||||
// Get predefined macros
|
||||
tmpExec = WshShell.Run("cmd /C " + compilerPath + " -dM -E detect.c > detect.map", 0, true);
|
||||
var defs = readAllFromFile("detect.map");
|
||||
//detect target architecture
|
||||
var intel64 = /x86_64|amd64/mgi;
|
||||
var ia32 = /i386/mgi;
|
||||
if (defs.match(intel64)) {
|
||||
WScript.Echo("intel64");
|
||||
} else if (defs.match(ia32)) {
|
||||
WScript.Echo("ia32");
|
||||
} else {
|
||||
WScript.Echo("unknown");
|
||||
}
|
||||
} else {
|
||||
tmpExec = WshShell.Exec(compilerPath + " -dumpfullversion -dumpversion");
|
||||
var gccVersion = tmpExec.StdOut.ReadLine();
|
||||
if (WScript.Arguments(0) == "/runtime") {
|
||||
WScript.Echo("mingw" + gccVersion);
|
||||
}
|
||||
else if (WScript.Arguments(0) == "/minversion") {
|
||||
for (var i = 0; i < 3; i++) {
|
||||
v1 = parseInt(gccVersion.split('.')[i]);
|
||||
v2 = parseInt(WScript.Arguments(2).split('.')[i]);
|
||||
|
||||
if (v1 > v2) {
|
||||
break;
|
||||
} else if (v1 < v2) {
|
||||
WScript.Echo("fail");
|
||||
return;
|
||||
}
|
||||
}
|
||||
WScript.Echo("ok");
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//Compile binary
|
||||
tmpExec = WshShell.Exec("cl /MD detect.c /link /MAP");
|
||||
while (tmpExec.Status == 0) {
|
||||
WScript.Sleep(100);
|
||||
}
|
||||
//compiler banner that includes version and target arch was printed to stderr
|
||||
var clVersion = tmpExec.StdErr.ReadAll();
|
||||
|
||||
if (WScript.Arguments(0) == "/arch") {
|
||||
//detect target architecture
|
||||
var intel64 = /AMD64|EM64T|x64/mgi;
|
||||
var ia32 = /[80|\s]x86/mgi;
|
||||
var arm = /ARM/mgi;
|
||||
if (clVersion.match(intel64)) {
|
||||
WScript.Echo("intel64");
|
||||
} else if (clVersion.match(ia32)) {
|
||||
WScript.Echo("ia32");
|
||||
} else if (clVersion.match(arm)) {
|
||||
WScript.Echo("armv7");
|
||||
} else {
|
||||
WScript.Echo("unknown");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (WScript.Arguments(0) == "/runtime") {
|
||||
//read map-file
|
||||
var mapContext = readAllFromFile("detect.map");
|
||||
//detect runtime
|
||||
var vc71 = /MSVCR71\.DLL/mgi;
|
||||
var vc80 = /MSVCR80\.DLL/mgi;
|
||||
var vc90 = /MSVCR90\.DLL/mgi;
|
||||
var vc100 = /MSVCR100\.DLL/mgi;
|
||||
var vc110 = /MSVCR110\.DLL/mgi;
|
||||
var vc120 = /MSVCR120\.DLL/mgi;
|
||||
var vc140 = /VCRUNTIME140\.DLL/mgi;
|
||||
var psdk = /MSVCRT\.DLL/mgi;
|
||||
if (mapContext.match(vc71)) {
|
||||
WScript.Echo("vc7.1");
|
||||
} else if (mapContext.match(vc80)) {
|
||||
WScript.Echo("vc8");
|
||||
} else if (mapContext.match(vc90)) {
|
||||
WScript.Echo("vc9");
|
||||
} else if (mapContext.match(vc100)) {
|
||||
WScript.Echo("vc10");
|
||||
} else if (mapContext.match(vc110)) {
|
||||
WScript.Echo("vc11");
|
||||
} else if (mapContext.match(vc120)) {
|
||||
WScript.Echo("vc12");
|
||||
} else if (mapContext.match(vc140)) {
|
||||
if (WshShell.ExpandEnvironmentStrings("%VisualStudioVersion%") == "15.0")
|
||||
WScript.Echo("vc14.1");
|
||||
else if (WshShell.ExpandEnvironmentStrings("%VisualStudioVersion%") == "16.0")
|
||||
WScript.Echo("vc14.2");
|
||||
else
|
||||
WScript.Echo("vc14");
|
||||
} else {
|
||||
WScript.Echo("unknown");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (WScript.Arguments(0) == "/minversion") {
|
||||
var compilerVersion;
|
||||
var compilerUpdate;
|
||||
if (WScript.Arguments(1) == "cl") {
|
||||
compilerVersion = clVersion.match(/Compiler Version ([0-9.]+)\s/mi)[1];
|
||||
// compilerVersion is in xx.xx.xxxxx.xx format, i.e. a string.
|
||||
// It will compare well with major.minor versions where major has two digits,
|
||||
// which is sufficient as the versions of interest start from 13 (for VC7).
|
||||
} else if (WScript.Arguments(1) == "icl") {
|
||||
// Get predefined ICL macros
|
||||
tmpExec = WshShell.Run("cmd /C icl /QdM /E detect.c > detect.map", 0, true);
|
||||
var defs = readAllFromFile("detect.map");
|
||||
// In #define __INTEL_COMPILER XXYY, XX is the major ICL version, YY is minor
|
||||
compilerVersion = defs.match(/__INTEL_COMPILER[ \t]*([0-9]+).*$/mi)[1] / 100;
|
||||
compilerUpdate = defs.match(/__INTEL_COMPILER_UPDATE[ \t]*([0-9]+).*$/mi)[1];
|
||||
// compiler version is a number; it compares well with another major.minor
|
||||
// version number, where major has one, two, and perhaps more digits (9.1, 11, etc).
|
||||
}
|
||||
var requestedVersion = WScript.Arguments(2);
|
||||
var requestedUpdate = 0;
|
||||
if (WScript.Arguments.Count() > 3)
|
||||
requestedUpdate = WScript.Arguments(3);
|
||||
if (compilerVersion < requestedVersion) {
|
||||
WScript.Echo("fail");
|
||||
} else if (compilerVersion == requestedVersion && compilerUpdate < requestedUpdate) {
|
||||
WScript.Echo("fail");
|
||||
} else {
|
||||
WScript.Echo("ok");
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function doClean() {
|
||||
var fso = new ActiveXObject("Scripting.FileSystemObject");
|
||||
// delete intermediate files
|
||||
if (fso.FileExists("detect.c"))
|
||||
fso.DeleteFile("detect.c", false);
|
||||
if (fso.FileExists("detect.obj"))
|
||||
fso.DeleteFile("detect.obj", false);
|
||||
if (fso.FileExists("detect.map"))
|
||||
fso.DeleteFile("detect.map", false);
|
||||
if (fso.FileExists("detect.exe"))
|
||||
fso.DeleteFile("detect.exe", false);
|
||||
if (fso.FileExists("detect.exe.manifest"))
|
||||
fso.DeleteFile("detect.exe.manifest", false);
|
||||
}
|
||||
|
||||
if (WScript.Arguments.Count() > 0) {
|
||||
|
||||
try {
|
||||
doWork();
|
||||
} catch (error) {
|
||||
WScript.Echo("unknown");
|
||||
}
|
||||
doClean();
|
||||
|
||||
} else {
|
||||
WScript.Echo("Supported options:\n"
|
||||
+ "\t/arch [compiler]\n"
|
||||
+ "\t/runtime [compiler]\n"
|
||||
+ "\t/minversion compiler version");
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
@echo off
|
||||
REM
|
||||
REM Copyright (c) 2005-2020 Intel Corporation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
REM
|
||||
setlocal
|
||||
for %%D in ("%tbb_root%") do set actual_root=%%~fD
|
||||
set fslash_root=%actual_root:\=/%
|
||||
set bin_dir=%CD%
|
||||
set fslash_bin_dir=%bin_dir:\=/%
|
||||
set _INCLUDE=INCLUDE& set _LIB=LIB
|
||||
if not x%UNIXMODE%==x set _INCLUDE=CPATH& set _LIB=LIBRARY_PATH
|
||||
if not x%USE_INCLUDE_ENV%==x set _INCLUDE=INCLUDE
|
||||
|
||||
echo Generating local tbbvars.bat
|
||||
echo @echo off>tbbvars.bat
|
||||
echo SET TBBROOT=%actual_root%>>tbbvars.bat
|
||||
echo SET TBB_ARCH_PLATFORM=%arch%\%runtime%>>tbbvars.bat
|
||||
echo SET TBB_TARGET_ARCH=%arch%>>tbbvars.bat
|
||||
echo SET %_INCLUDE%=%%TBBROOT%%\include;%%%_INCLUDE%%%>>tbbvars.bat
|
||||
echo SET %_LIB%=%bin_dir%;%%%_LIB%%%>>tbbvars.bat
|
||||
echo SET PATH=%bin_dir%;%%PATH%%>>tbbvars.bat
|
||||
if not x%UNIXMODE%==x echo SET LD_LIBRARY_PATH=%bin_dir%;%%LD_LIBRARY_PATH%%>>tbbvars.bat
|
||||
|
||||
echo Generating local tbbvars.sh
|
||||
echo #!/bin/sh>tbbvars.sh
|
||||
echo export TBBROOT="%fslash_root%">>tbbvars.sh
|
||||
echo export TBB_ARCH_PLATFORM="%arch%\%runtime%">>tbbvars.sh
|
||||
echo export TBB_TARGET_ARCH="%arch%">>tbbvars.sh
|
||||
echo export %_INCLUDE%="${TBBROOT}/include;$%_INCLUDE%">>tbbvars.sh
|
||||
echo export %_LIB%="%fslash_bin_dir%;$%_LIB%">>tbbvars.sh
|
||||
echo export PATH="%fslash_bin_dir%;$PATH">>tbbvars.sh
|
||||
if not x%UNIXMODE%==x echo export LD_LIBRARY_PATH="%fslash_bin_dir%;$LD_LIBRARY_PATH">>tbbvars.sh
|
||||
|
||||
echo Generating local tbbvars.csh
|
||||
echo #!/bin/csh>tbbvars.csh
|
||||
echo setenv TBBROOT "%actual_root%">>tbbvars.csh
|
||||
echo setenv TBB_ARCH_PLATFORM "%arch%\%runtime%">>tbbvars.csh
|
||||
echo setenv TBB_TARGET_ARCH "%arch%">>tbbvars.csh
|
||||
echo setenv %_INCLUDE% "${TBBROOT}\include;$%_INCLUDE%">>tbbvars.csh
|
||||
echo setenv %_LIB% "%bin_dir%;$%_LIB%">>tbbvars.csh
|
||||
echo setenv PATH "%bin_dir%;$PATH">>tbbvars.csh
|
||||
if not x%UNIXMODE%==x echo setenv LD_LIBRARY_PATH "%bin_dir%;$LD_LIBRARY_PATH">>tbbvars.csh
|
||||
|
||||
if not x%LIB_STL_ANDROID%==x (
|
||||
REM Workaround for copying Android* specific stl shared library to work folder
|
||||
copy /Y "%LIB_STL_ANDROID:/=\%" .
|
||||
)
|
||||
|
||||
endlocal
|
||||
exit
|
|
@ -0,0 +1,67 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Script used to generate tbbvars.[c]sh scripts
|
||||
bin_dir="$PWD" #
|
||||
cd "$tbb_root" # keep this comments here
|
||||
tbb_root="$PWD" # to make it unsensible
|
||||
cd "$bin_dir" # to EOL encoding
|
||||
cat >./tbbvars.sh <<EOF
|
||||
#!/bin/bash
|
||||
export TBBROOT="${tbb_root}" #
|
||||
tbb_bin="${bin_dir}" #
|
||||
if [ -z "\$CPATH" ]; then #
|
||||
export CPATH="\${TBBROOT}/include" #
|
||||
else #
|
||||
export CPATH="\${TBBROOT}/include:\$CPATH" #
|
||||
fi #
|
||||
if [ -z "\$${2}LIBRARY_PATH" ]; then #
|
||||
export ${2}LIBRARY_PATH="\${tbb_bin}" #
|
||||
else #
|
||||
export ${2}LIBRARY_PATH="\${tbb_bin}:\$${2}LIBRARY_PATH" #
|
||||
fi #
|
||||
if [ -z "\$${1}LD_LIBRARY_PATH" ]; then #
|
||||
export ${1}LD_LIBRARY_PATH="\${tbb_bin}" #
|
||||
else #
|
||||
export ${1}LD_LIBRARY_PATH="\${tbb_bin}:\$${1}LD_LIBRARY_PATH" #
|
||||
fi #
|
||||
${TBB_CUSTOM_VARS_SH} #
|
||||
EOF
|
||||
cat >./tbbvars.csh <<EOF
|
||||
#!/bin/csh
|
||||
setenv TBBROOT "${tbb_root}" #
|
||||
setenv tbb_bin "${bin_dir}" #
|
||||
if (! \$?CPATH) then #
|
||||
setenv CPATH "\${TBBROOT}/include" #
|
||||
else #
|
||||
setenv CPATH "\${TBBROOT}/include:\$CPATH" #
|
||||
endif #
|
||||
if (! \$?${2}LIBRARY_PATH) then #
|
||||
setenv ${2}LIBRARY_PATH "\${tbb_bin}" #
|
||||
else #
|
||||
setenv ${2}LIBRARY_PATH "\${tbb_bin}:\$${2}LIBRARY_PATH" #
|
||||
endif #
|
||||
if (! \$?${1}LD_LIBRARY_PATH) then #
|
||||
setenv ${1}LD_LIBRARY_PATH "\${tbb_bin}" #
|
||||
else #
|
||||
setenv ${1}LD_LIBRARY_PATH "\${tbb_bin}:\$${1}LD_LIBRARY_PATH" #
|
||||
endif #
|
||||
${TBB_CUSTOM_VARS_CSH} #
|
||||
EOF
|
||||
# Workaround for copying Android* specific stl shared library to "."
|
||||
if [ ! -z "${LIB_STL_ANDROID}" ]; then #
|
||||
cp ${LIB_STL_ANDROID} . #
|
||||
fi #
|
|
@ -0,0 +1,242 @@
|
|||
<HTML>
|
||||
<BODY>
|
||||
|
||||
<H2>Overview</H2>
|
||||
This directory contains the internal Makefile infrastructure for Intel® Threading Building Blocks (Intel® TBB).
|
||||
|
||||
<P>
|
||||
See below for how to <A HREF="#build">build</A> Intel TBB and how to <A HREF="#port">port</A> Intel TBB
|
||||
to a new platform, operating system or architecture.
|
||||
</P>
|
||||
|
||||
<H2>Files</H2>
|
||||
The files here are not intended to be used directly. See below for usage.
|
||||
<DL>
|
||||
<DT><A HREF="Makefile.tbb">Makefile.tbb</A>
|
||||
<DD>Main Makefile to build the Intel TBB library.
|
||||
Invoked via 'make tbb' from <A HREF="../Makefile">top-level Makefile</A>.
|
||||
<DT><A HREF="Makefile.tbbmalloc">Makefile.tbbmalloc</A>
|
||||
<DD>Main Makefile to build the Intel TBB scalable memory allocator library as well as its tests.
|
||||
Invoked via 'make tbbmalloc' from <A HREF="../Makefile">top-level Makefile</A>.
|
||||
<DT><A HREF="Makefile.test">Makefile.test</A>
|
||||
<DD>Main Makefile to build and run the tests for the Intel TBB library.
|
||||
Invoked via 'make test' from <A HREF="../Makefile">top-level Makefile</A>.
|
||||
<DT><A HREF="common.inc">common.inc</A>
|
||||
<DD>Main common included Makefile that includes OS-specific and compiler-specific Makefiles.
|
||||
<DT><os>.inc
|
||||
<DD>OS-specific Makefile for a particular <os>.
|
||||
<DT><os>.<compiler>.inc
|
||||
<DD>Compiler-specific Makefile for a particular <os> / <compiler> combination.
|
||||
<DT>*.sh
|
||||
<DD>Infrastructure utilities for Linux* OS, macOS*, and UNIX*-related operating systems.
|
||||
<DT>*.js, *.bat
|
||||
<DD>Infrastructure utilities for Windows* OS.
|
||||
</DL>
|
||||
|
||||
<A NAME="build"><H2>To Build</H2></A>
|
||||
<P>
|
||||
To port Intel TBB to a new platform, operating system or architecture, see the <A HREF="#port">porting directions</A> below.
|
||||
</P>
|
||||
|
||||
<H3>Software prerequisites:</H3>
|
||||
<OL>
|
||||
<LI>C++ compiler for the platform, operating system and architecture of interest.
|
||||
Either the native compiler for your system, or, optionally, the appropriate Intel® C++ Compiler, may be used.
|
||||
<LI>GNU make utility. On Windows OS, if a UNIX* emulator is used to run GNU make,
|
||||
it should be able to run Windows OS utilities and commands. On Linux OS, macOS, etc.,
|
||||
shell commands issued by GNU make should execute in a Bourne or BASH compatible shell.
|
||||
In the following examples, replace <TT>make</TT> with the correct GNU make command for
|
||||
your system (for example, <TT>gmake</TT>). GNU make version 3.80 and more recent are supported.
|
||||
</OL>
|
||||
|
||||
<P>
|
||||
Intel TBB libraries can be built by performing the following steps.
|
||||
On systems that support only one ABI (e.g., 32-bit), these steps build the libraries for that ABI.
|
||||
On systems that support both 64-bit and 32-bit libraries, these steps build the 64-bit libraries
|
||||
(Linux OS, macOS, and related systems) or whichever ABI is selected in the development environment (Windows OS).
|
||||
</P>
|
||||
<OL>
|
||||
<LI>Change to the <A HREF="../index.html">top-level directory</A> of the installed software.
|
||||
<LI>If using the Intel® C++ Compiler, make sure the appropriate compiler is available in your PATH
|
||||
(e.g., by sourcing the appropriate iccvars script for the compiler to be used).
|
||||
<LI>Invoke GNU make using no arguments, for example, <TT>make</TT>.
|
||||
</OL>
|
||||
|
||||
<P>
|
||||
To build Intel TBB libraries for other than the default ABI (e.g., to build 32-bit libraries on Linux OS, macOS,
|
||||
or related systems that support both 64-bit and 32-bit libraries), perform the following steps:
|
||||
</P>
|
||||
<OL>
|
||||
<LI>Change to the <A HREF="../index.html">top-level directory</A> of the installed software.
|
||||
<LI>If using the Intel® C++ Compiler, make sure the appropriate compiler is available in your PATH
|
||||
(e.g., by sourcing the appropriate iccvars script for the compiler to be used).
|
||||
<LI>Explicitly specify the architecture when invoking GNU make, e.g. <TT>make arch=ia32</TT>.
|
||||
</OL>
|
||||
|
||||
<P>The default make target will build the release and debug versions of the Intel TBB library.</P>
|
||||
<P>Other targets are available in the top-level Makefile. You might find the following targets useful:
|
||||
<UL>
|
||||
<LI><TT>make test</TT> will build and run Intel TBB <A HREF="../src/test">unit-tests</A>;
|
||||
<LI><TT>make examples</TT> will build and run Intel TBB <A HREF="../examples/index.html">examples</A>. Available in the open-source version only.
|
||||
For the commercial version, you can download Intel TBB Samples at the <a href="https://software.intel.com/en-us/product-code-samples?topic=20828">Intel® Software Product Samples and Tutorials</a> website;
|
||||
<LI><TT>make all</TT> will do all of the above. Available in the open-source version only.
|
||||
</UL>
|
||||
See also the list of other targets below.
|
||||
</P>
|
||||
|
||||
<P>
|
||||
By default, the libraries will be built in sub-directories within the build/ directory.
|
||||
The sub-directories are named according to the operating system, architecture, compiler and software environment used
|
||||
(the sub-directory names also distinguish release vs. debug libraries). On Linux OS, the software environment comprises
|
||||
the GCC, libc and kernel version used. On macOS, the software environment comprises the GCC and OS version used.
|
||||
On Windows OS, the software environment comprises the Microsoft* Visual Studio* version used.
|
||||
See below for how to change the default build directory.
|
||||
</P>
|
||||
|
||||
<P>
|
||||
To perform different build and/or test operations, use the following steps.
|
||||
</P>
|
||||
<OL>
|
||||
<LI>Change to the <A HREF="../index.html">top-level directory</A> of the installed software.
|
||||
<LI>If using the Intel® C++ Compiler, make sure the appropriate compiler is available in your PATH
|
||||
(e.g., by sourcing the appropriate iccvars script for the compiler to be used).
|
||||
<LI>Invoke GNU make by using one or more of the following commands.
|
||||
<DL>
|
||||
<DT><TT>make</TT>
|
||||
<DD>Default build. Equivalent to <TT>make tbb tbbmalloc</TT>.
|
||||
<DT><TT>make all</TT>
|
||||
<DD>Equivalent to <TT>make tbb tbbmalloc test examples</TT>. Available in the open-source version only.
|
||||
<DT><TT>cd src;make release</TT>
|
||||
<DD>Build and test release libraries only.
|
||||
<DT><TT>cd src;make debug</TT>
|
||||
<DD>Build and test debug libraries only.
|
||||
<DT><TT>make tbb</TT>
|
||||
<DD>Make Intel TBB release and debug libraries.
|
||||
<DT><TT>make tbbmalloc</TT>
|
||||
<DD>Make Intel TBB scalable memory allocator libraries.
|
||||
<DT><TT>make test</TT>
|
||||
<DD>Compile and run unit-tests
|
||||
<DT><TT>make examples</TT>
|
||||
<DD>Build libraries and run all examples, like doing <TT>make debug clean release</TT> from <A HREF="../examples/Makefile">the general example Makefile</A>.
|
||||
Available in the open-source version only.
|
||||
<DT><TT>make python</TT>
|
||||
<DD>Build, install, and test Python* API for Intel TBB. See <A HREF="../python/index.html">details here</A>.
|
||||
<DT><TT>make compiler=<B>{</B>icl, icc, gcc, clang<B>}</B> <B>[</B>(above options or targets)<B>]</B></TT>
|
||||
<DD>Build and run as above, but use specified compilers instead of default, native compilers
|
||||
<ol>
|
||||
<li><tt><b> {</b>icl, icc<b>}</b> </tt> - to use Intel® compilers (<tt>icl</tt> on Windows OS, <tt>icc</tt> on Linux OS or macOS). </li>
|
||||
<li><tt>gcc</tt> - to use g++ (e.g. MinGW on Windows OS)</li>
|
||||
<li><tt>clang</tt> - to use Clang compiler</li>
|
||||
</ol>
|
||||
<DT><TT>make compiler=clang stdlib=libc++ <B>[</B>(above options or targets)<B>]</B></TT>
|
||||
<DD>Build and run as above, but use <TT>libc++</TT> as a standard c++ library for clang.
|
||||
<DT><TT>make stdver=<B>{</B>c++11, c++14, ...<B>}</B> <B>[</B>(above options or targets)<B>]</B></TT>
|
||||
<DD>Build and run as above, but additionally specify the version of the C++ standard or dialect to be used by
|
||||
the compiler. The specified value of <TT>stdver</TT> will be used as a parameter to the appropriate
|
||||
compiler option (such as <TT>-std</TT>); the behavior in case of unsupported value is compiler-specific.
|
||||
<DT><TT>make target_app=<B>{</B>win8ui, uwp, uwd<B>}</B> [target_mode=store] <B>[</B>(above options or targets)<B>]</B></TT>
|
||||
<DD>Build and run as above, but use API that is compliant with Universal Windows* applications. Use <TT>win8ui</TT> option, if you want to use Intel TBB in Windows* 8 Universal application, <TT>uwp</TT> in case of Windows* 10 Universal Windows application and <TT>uwd</TT> for the usage inside Universal Windows* driver.
|
||||
<TT>target_mode=store</TT> is used to produce binaries that are compliant with Windows Store* application container. In later case they won't work with Intel TBB unit tests but work only with Windows Store* applications.
|
||||
<DT><TT>ndk-build target=android <B>[</B>(above options or targets)<B>]</B></TT>
|
||||
<DD>Build and run as above, but build libraries for Android* OS by Android NDK that should be installed. Makefiles were tested with revision 8.
|
||||
<DT><TT>make arch=<B>{</B>ia32, intel64, ia64<B>}</B> <B>[</B>(above options or targets)<B>]</B></TT>
|
||||
<DD>Build and run as above, but build libraries for the selected ABI.
|
||||
Might be useful for cross-compilation; ensure proper environment is set before running this command.
|
||||
<DT><TT>make tbb_root=<B>{</B>(Intel TBB directory)<B>}</B> <B>[</B>(above options or targets)<B>]</B></TT>
|
||||
<DD>Build and run as above; for use when invoking <TT>make</TT> from a directory other than the <A HREF="../index.html">top-level directory</A>.
|
||||
<DT><TT>make tbb_build_dir=<B>{</B>(build directory)<B>}</B> <B>[</B>(above options or targets)<B>]</B></TT>
|
||||
<DD>Build and run as above, but place the built libraries in the specified directory, rather than in the default sub-directory within the build/ directory. This command might have troubles with the build in case the sources installed to the directory with spaces in the path.
|
||||
<DT><TT>make tbb_build_prefix=<B>{</B>(build sub-directory)<B>}</B> <B>[</B>(above options or targets)<B>]</B></TT>
|
||||
<DD>Build and run as above, but place the built libraries in the specified sub-directory within the build/ directory, rather than using the default sub-directory name.
|
||||
<DT><TT>make tbb_cpf=1 <B>[</B>(above options or targets)<B>]</B></TT>
|
||||
<DD>Build and run as above, but build and use libraries with the Community Preview Features enabled, rather than the default libraries.
|
||||
<DT><TT>make <B>[</B>(above options)<B>]</B> clean</TT>
|
||||
<DD>Remove any executables or intermediate files produced by the above commands.
|
||||
Includes build directories, object files, libraries and test executables.
|
||||
</DL>
|
||||
</OL>
|
||||
|
||||
<A NAME="port"><H2>To Port</H2></A>
|
||||
<P>
|
||||
This section provides information on how to port Intel TBB to a new platform, operating system or architecture.
|
||||
A subset or a superset of these steps may be required for porting to a given platform.
|
||||
</P>
|
||||
|
||||
<H4>To port the Intel TBB source code:</H4>
|
||||
<OL>
|
||||
<LI>If porting to a new architecture, create a file that describes the architecture-specific details for that architecture.
|
||||
<UL>
|
||||
<LI>Create a <os>_<architecture>.h file in the <A HREF="../include/tbb/machine">include/tbb/machine</A> directory
|
||||
that describes these details.
|
||||
<UL>
|
||||
<LI>The <os>_<architecture>.h is named after the operating system and architecture as recognized by
|
||||
<A HREF="../include/tbb/tbb_machine.h">include/tbb/tbb_machine.h</A> and the Makefile infrastructure.
|
||||
<LI>This file defines the implementations of synchronization operations, and also the
|
||||
scheduler yield function, for the operating system and architecture.
|
||||
<LI>Several examples of <os>_<architecture>.h files can be found in the
|
||||
<A HREF="../include/tbb/machine">include/tbb/machine</A> directory.
|
||||
<UL>
|
||||
<LI>A minimal implementation defines the 4-byte and 8-byte compare-and-swap operations,
|
||||
and the scheduler yield function. See <A HREF="../include/tbb/machine/mac_ppc.h">include/tbb/machine/mac_ppc.h</A>
|
||||
for an example of a minimal implementation.
|
||||
<LI>More complex implementation examples can also be found in the
|
||||
<A HREF="../include/tbb/machine">include/tbb/machine</A> directory
|
||||
that implement all the individual variants of synchronization operations that Intel TBB uses.
|
||||
Such implementations are more verbose but may achieve better performance on a given architecture.
|
||||
<LI>In a given implementation, any synchronization operation that is not defined is implemented, by default,
|
||||
in terms of 4-byte or 8-byte compare-and-swap. More operations can thus be added incrementally to increase
|
||||
the performance of an implementation.
|
||||
<LI>In most cases, synchronization operations are implemented as inline assembly code; examples also exist,
|
||||
(e.g., for Intel® Itanium® processors) that use out-of-line assembly code in *.s or *.asm files
|
||||
(see the assembly code sub-directories in the <A HREF="../src/tbb">src/tbb</A> directory).
|
||||
</UL>
|
||||
</UL>
|
||||
<LI>Modify <A HREF="../include/tbb/tbb_machine.h">include/tbb/tbb_machine.h</A>, if needed, to invoke the appropriate
|
||||
<os>_<architecture>.h file in the <A HREF="../include/tbb/machine">include/tbb/machine</A> directory.
|
||||
</UL>
|
||||
<LI>Add an implementation of DetectNumberOfWorkers() in <A HREF="../src/tbb/tbb_misc.h">src/tbb/tbb_misc.h</A>,
|
||||
that returns the number of cores found on the system in case it is not supported by the current implementation.
|
||||
This is used to determine the default number of threads for the Intel TBB task scheduler.
|
||||
<LI>Either properly define FillDynamicLinks for use in
|
||||
<A HREF="../src/tbb/cache_aligned_allocator.cpp">src/tbb/cache_aligned_allocator.cpp</A>,
|
||||
or hardcode the allocator to be used.
|
||||
<LI>Additional types might be required in the union defined in
|
||||
<A HREF="../include/tbb/aligned_space.h">include/tbb/aligned_space.h</A>
|
||||
to ensure proper alignment on your platform.
|
||||
<LI>Changes may be required in <A HREF="../include/tbb/tick_count.h">include/tbb/tick_count.h</A>
|
||||
for systems that do not provide gettimeofday.
|
||||
</OL>
|
||||
|
||||
<H4>To port the Makefile infrastructure:</H4>
|
||||
Modify the appropriate files in the Makefile infrastructure to add a new platform, operating system or architecture as needed.
|
||||
See the Makefile infrastructure files for examples.
|
||||
<OL>
|
||||
<LI>The <A HREF="../Makefile">top-level Makefile</A> includes <A HREF="common.inc">common.inc</A> to determine the operating system.
|
||||
<UL>
|
||||
<LI>To add a new operating system, add the appropriate test to <A HREF="common.inc">common.inc</A>, and create the needed <os>.inc and <os>.<compiler>.inc files (see below).
|
||||
</UL>
|
||||
<LI>The <os>.inc file makes OS-specific settings for a particular operating systems.
|
||||
<UL>
|
||||
<LI>For example, <A HREF="linux.inc">linux.inc</A> makes settings specific to Linux operating systems.
|
||||
<LI>This file performs OS-dependent tests to determine the specific platform and/or architecture, and sets other platform-dependent values.
|
||||
<LI>Add a new <os>.inc file for each new operating system added.
|
||||
</UL>
|
||||
<LI>The <os>.<compiler>.inc file makes compiler-specific settings for a particular
|
||||
<os> / <compiler> combination.
|
||||
<UL>
|
||||
<LI>For example, <A HREF="linux.gcc.inc">linux.gcc.inc</A> makes specific settings for using GCC on Linux OS, and <A HREF="linux.icc.inc">linux.icc.inc</A> makes specific settings for using the Intel® C++ compiler on Linux OS.
|
||||
<LI>This file sets particular compiler, assembler and linker options required when using a particular <os> / <compiler> combination.
|
||||
<LI>Add a new <os>.<compiler>.inc file for each new <os> / <compiler> combination added.
|
||||
</UL>
|
||||
</OL>
|
||||
|
||||
<HR>
|
||||
<A HREF="../index.html">Up to parent directory</A>
|
||||
<P></P>
|
||||
Copyright © 2005-2020 Intel Corporation. All Rights Reserved.
|
||||
<P></P>
|
||||
Intel, the Intel logo and Itanium are trademarks of Intel Corporation or its subsidiaries in the U.S. and/or other countries.
|
||||
<p></p>
|
||||
* Other names and brands may be claimed as the property of others.
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
include $(tbb_root)/build/macos.clang.inc
|
|
@ -0,0 +1,34 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
ifneq ($(arch),$(filter $(arch),ia32 intel64 armv7 armv7s arm64))
|
||||
$(error $(arch) is unknown architecture. Known arhitechtures are ia32 intel64 armv7 armv7s arm64)
|
||||
endif
|
||||
|
||||
# If target is ios but arch is ia32/intel64 then build for 32/64 simulator!
|
||||
ifeq (,$(SDKROOT))
|
||||
ifeq ($(arch),$(filter $(arch),ia32 intel64))
|
||||
export SDKROOT:=$(shell xcodebuild -sdk -version | grep -o -E '/.*SDKs/iPhoneSimulator.*' 2>/dev/null)
|
||||
else
|
||||
export SDKROOT:=$(shell xcodebuild -sdk -version | grep -o -E '/.*SDKs/iPhoneOS.*' 2>/dev/null)
|
||||
endif
|
||||
endif
|
||||
ifeq (,$(SDKROOT))
|
||||
$(error iOS* SDK not found)
|
||||
endif
|
||||
|
||||
ios_version:=$(shell echo $(SDKROOT) | sed -e "s/.*[a-z,A-Z]\(.*\).sdk/\1/")
|
||||
runtime:=cc$(clang_version)_ios$(ios_version)
|
||||
|
||||
IPHONEOS_DEPLOYMENT_TARGET ?= 8.0
|
|
@ -0,0 +1,115 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
CPLUS ?= clang++
|
||||
CONLY ?= clang
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall -Wextra
|
||||
TEST_WARNING_KEY = -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor
|
||||
WARNING_SUPPRESS = -Wno-parentheses -Wno-non-virtual-dtor -Wno-dangling-else
|
||||
DYLIB_KEY = -shared
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBDL = -ldl
|
||||
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
||||
LIBS += -lrt
|
||||
LINK_FLAGS = -Wl,-rpath-link=. -rdynamic
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
# -g is set intentionally in the release mode. It should not affect performance.
|
||||
CPLUS_FLAGS = -O2 -g
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG -O0 -g
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += $(ITT_NOTIFY) -DUSE_PTHREAD -pthread
|
||||
LIB_LINK_FLAGS += -pthread
|
||||
|
||||
ifneq (,$(stdlib))
|
||||
CPLUS_FLAGS += -stdlib=$(stdlib)
|
||||
LIB_LINK_FLAGS += -stdlib=$(stdlib)
|
||||
endif
|
||||
|
||||
ifneq (,$(gcc_version))
|
||||
# TODO: do not assume that GCC minor and patchlevel versions are always single-digit.
|
||||
CPLUS_FLAGS += -DTBB_USE_GLIBCXX_VERSION=$(subst .,0,$(gcc_version))
|
||||
endif
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
MALLOC_ASM.OBJ=
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m32 -march=pentium4
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (ppc64,$(arch))
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ppc32,$(arch))
|
||||
CPLUS_FLAGS += -m32
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (bg,$(arch))
|
||||
CPLUS = bgclang++
|
||||
CONLY = bgclang
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASM = as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += --64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
ASM_FLAGS += --32
|
||||
endif
|
||||
ifeq ($(cfg),debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,156 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
CPLUS ?= g++
|
||||
CONLY ?= gcc
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
TEST_WARNING_KEY = -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor
|
||||
|
||||
WARNING_SUPPRESS = -Wno-parentheses
|
||||
DYLIB_KEY = -shared
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBDL = -ldl
|
||||
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
||||
LIBS += -lrt
|
||||
LINK_FLAGS = -Wl,-rpath-link=. -rdynamic
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
# gcc 4.2 and higher support OpenMP
|
||||
ifneq (,$(shell $(CONLY) -dumpfullversion -dumpversion | egrep "^(4\.[2-9]|[5-9]|1[0-9])"))
|
||||
OPENMP_FLAG = -fopenmp
|
||||
endif
|
||||
|
||||
# gcc 4.8 and later support RTM intrinsics, but require command line switch to enable them
|
||||
ifneq (,$(shell $(CONLY) -dumpfullversion -dumpversion | egrep "^(4\.[8-9]|[5-9]|1[0-9])"))
|
||||
RTM_KEY = -mrtm
|
||||
endif
|
||||
|
||||
# gcc 4.0 and later have -Wextra that is used by some our customers.
|
||||
ifneq (,$(shell $(CONLY) -dumpfullversion -dumpversion | egrep "^([4-9]|1[0-9])"))
|
||||
WARNING_KEY += -Wextra
|
||||
endif
|
||||
|
||||
# gcc 5.0 and later have -Wsuggest-override and -Wno-sized-deallocation options
|
||||
ifneq (,$(shell $(CONLY) -dumpfullversion -dumpversion | egrep "^([5-9]|1[0-9])"))
|
||||
# enable -Wsuggest-override via a pre-included header in order to limit to C++11 and above
|
||||
INCLUDE_TEST_HEADERS = -include $(tbb_root)/src/test/harness_preload.h
|
||||
WARNING_SUPPRESS += -Wno-sized-deallocation
|
||||
endif
|
||||
|
||||
# gcc 6.0 and later have -flifetime-dse option that controls
|
||||
# elimination of stores done outside the object lifetime
|
||||
ifneq (,$(shell $(CONLY) -dumpfullversion -dumpversion | egrep "^([6-9]|1[0-9])"))
|
||||
# keep pre-contruction stores for zero initialization
|
||||
DSE_KEY = -flifetime-dse=1
|
||||
endif
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
# -g is set intentionally in the release mode. It should not affect performance.
|
||||
CPLUS_FLAGS = -O2 -g
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG -O0 -g
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += $(ITT_NOTIFY) -DUSE_PTHREAD -pthread
|
||||
LIB_LINK_FLAGS += -pthread
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
MALLOC_ASM.OBJ=
|
||||
|
||||
ifeq (ia64,$(arch))
|
||||
# Position-independent code (PIC) is a must on IA-64 architecture, even for regular (not shared) executables
|
||||
CPLUS_FLAGS += $(PIC_KEY)
|
||||
endif
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m64 $(RTM_KEY)
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m32 -march=pentium4 $(RTM_KEY)
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (ppc64,$(arch))
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ppc32,$(arch))
|
||||
CPLUS_FLAGS += -m32
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (bg,$(arch))
|
||||
CPLUS = $(firstword $(notdir $(shell which powerpc{64,32,}-bg{z..a}-linux-g++ 2>/dev/null)))
|
||||
CONLY = $(firstword $(notdir $(shell which powerpc{64,32,}-bg{z..a}-linux-gcc 2>/dev/null)))
|
||||
endif
|
||||
|
||||
# for some gcc versions on Solaris, -m64 may imply V9, but perhaps not everywhere (TODO: verify)
|
||||
ifeq (sparc,$(arch))
|
||||
CPLUS_FLAGS += -mcpu=v9 -m64
|
||||
LIB_LINK_FLAGS += -mcpu=v9 -m64
|
||||
endif
|
||||
|
||||
# automatically generate "IT" instructions when compiling for Thumb ISA
|
||||
ifeq (armv7,$(arch))
|
||||
CPLUS_FLAGS += -Wa,-mimplicit-it=thumb
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASM = as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += --64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
ASM_FLAGS += --32
|
||||
endif
|
||||
ifeq ($(cfg),debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
ifeq (ia64,$(arch))
|
||||
ASM_FLAGS += -xexplicit
|
||||
TBB_ASM.OBJ += atomic_support.o lock_byte.o log2.o pause.o ia64_misc.o
|
||||
MALLOC_ASM.OBJ += atomic_support.o lock_byte.o pause.o log2.o
|
||||
endif
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,119 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
CPLUS ?= icpc
|
||||
CONLY ?= icc
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -w1
|
||||
DYLIB_KEY = -shared
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
NOINTRINSIC_KEY = -fno-builtin
|
||||
LIBDL = -ldl
|
||||
ifneq (,$(shell icc -dumpversion | egrep "1[2-9]\."))
|
||||
SDL_FLAGS = -fstack-protector -Wformat -Wformat-security
|
||||
endif
|
||||
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
ifeq (release,$(cfg))
|
||||
SDL_FLAGS += -D_FORTIFY_SOURCE=2
|
||||
# -g is set intentionally in the release mode. It should not affect performance.
|
||||
CPLUS_FLAGS = -O2 -g -qno-opt-report-embed
|
||||
else
|
||||
CPLUS_FLAGS = -O0 -g -DTBB_USE_DEBUG
|
||||
endif
|
||||
|
||||
LIB_LINK_FLAGS = -shared -static-intel -Wl,-soname=$(BUILDING_LIBRARY) -z relro -z now
|
||||
LIBS += -lrt
|
||||
LINK_FLAGS = -rdynamic
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
CPLUS_FLAGS += $(ITT_NOTIFY) -DUSE_PTHREAD -pthread
|
||||
LIB_LINK_FLAGS += -pthread
|
||||
|
||||
ifneq (,$(shell icc -dumpversion | egrep "^1[6-9]\."))
|
||||
OPENMP_FLAG = -qopenmp
|
||||
else
|
||||
OPENMP_FLAG = -openmp
|
||||
endif
|
||||
|
||||
# ICC 12.0 and higher provide Intel(R) Cilk(TM) Plus
|
||||
ifneq (,$(shell icc -dumpversion | egrep "^1[2-9]\."))
|
||||
CILK_AVAILABLE = yes
|
||||
endif
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
MALLOC_ASM.OBJ=
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
CPLUS_FLAGS += -m32 -falign-stack=maintain-16-byte
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (ia64,$(arch))
|
||||
ITT_NOTIFY =
|
||||
# Position-independent code (PIC) is a must on IA-64 architecture, even for regular (not shared) executables
|
||||
# strict-ansi does not work with <signal.h> on RHEL 4 AS
|
||||
CPLUS_FLAGS += $(PIC_KEY) $(if $(findstring cc3.,$(runtime)),-ansi,-strict-ansi)
|
||||
else
|
||||
# For ICC 16 and older, in std=c++14 mode -strict-ansi does not work with GNU C++ library headers
|
||||
# egrep returns 0 or 1, compare it in concatenation
|
||||
CPLUS_FLAGS += $(if $(findstring c++14_1,$(stdver)_$(shell icc -dumpversion| egrep -c "^1[1-6]\.")),-ansi,-strict-ansi)
|
||||
endif
|
||||
|
||||
ifneq (,$(codecov))
|
||||
# no tool support for code coverage, need profile data generation
|
||||
ITT_NOTIFY = -prof-gen=srcpos
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASM = as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += --64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
ASM_FLAGS += --32
|
||||
endif
|
||||
ifeq ($(cfg),debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
ifeq (ia64,$(arch))
|
||||
ASM_FLAGS += -xexplicit
|
||||
TBB_ASM.OBJ += atomic_support.o lock_byte.o log2.o pause.o ia64_misc.o
|
||||
MALLOC_ASM.OBJ += atomic_support.o lock_byte.o pause.o log2.o
|
||||
endif
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
|
@ -0,0 +1,137 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
####### Detections and Commands ###############################################
|
||||
|
||||
ifeq (icc,$(compiler))
|
||||
export COMPILER_VERSION := ICC: $(shell icc -V </dev/null 2>&1 | grep 'Version')
|
||||
ifneq (,$(findstring running on IA-32, $(COMPILER_VERSION)))
|
||||
export arch:=ia32
|
||||
else
|
||||
ifneq (,$(findstring running on Intel(R) 64, $(COMPILER_VERSION)))
|
||||
export arch:=intel64
|
||||
else
|
||||
ifneq (,$(findstring IA-64, $(COMPILER_VERSION)))
|
||||
export arch:=ia64
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ifeq (,$(arch))
|
||||
$(warning "Unknown Intel compiler")
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef arch
|
||||
uname_m:=$(shell uname -m)
|
||||
ifeq ($(uname_m),i686)
|
||||
export arch:=ia32
|
||||
endif
|
||||
ifeq ($(uname_m),ia64)
|
||||
export arch:=ia64
|
||||
endif
|
||||
ifeq ($(uname_m),x86_64)
|
||||
export arch:=intel64
|
||||
endif
|
||||
ifeq ($(uname_m),sparc64)
|
||||
export arch:=sparc
|
||||
endif
|
||||
ifeq ($(uname_m),armv7l)
|
||||
export arch:=armv7
|
||||
endif
|
||||
ifndef arch
|
||||
export arch:=$(uname_m)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef runtime
|
||||
export gcc_version:=$(shell gcc -dumpfullversion -dumpversion)
|
||||
os_version:=$(shell uname -r)
|
||||
os_kernel_version:=$(shell uname -r | sed -e 's/-.*$$//')
|
||||
export os_glibc_version_full:=$(shell getconf GNU_LIBC_VERSION | grep glibc | sed -e 's/^glibc //')
|
||||
os_glibc_version:=$(shell echo "$(os_glibc_version_full)" | sed -e '2,$$d' -e 's/-.*$$//')
|
||||
export runtime:=cc$(gcc_version)_libc$(os_glibc_version)_kernel$(os_kernel_version)
|
||||
endif
|
||||
|
||||
native_compiler := gcc
|
||||
export compiler ?= gcc
|
||||
debugger ?= gdb
|
||||
|
||||
CMD=sh -c
|
||||
CWD=$(shell pwd)
|
||||
CP=cp
|
||||
RM?=rm -f
|
||||
RD?=rmdir
|
||||
MD?=mkdir -p
|
||||
NUL= /dev/null
|
||||
SLASH=/
|
||||
MAKE_VERSIONS=sh $(tbb_root)/build/version_info_linux.sh $(VERSION_FLAGS) >version_string.ver
|
||||
MAKE_TBBVARS=sh $(tbb_root)/build/generate_tbbvars.sh
|
||||
|
||||
ifdef LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH := .:$(LD_LIBRARY_PATH)
|
||||
else
|
||||
export LD_LIBRARY_PATH := .
|
||||
endif
|
||||
|
||||
####### Build settings ########################################################
|
||||
|
||||
OBJ = o
|
||||
DLL = so
|
||||
MALLOC_DLL?=$(DLL)
|
||||
LIBEXT = so
|
||||
SONAME_SUFFIX =$(shell grep TBB_COMPATIBLE_INTERFACE_VERSION $(tbb_root)/include/tbb/tbb_stddef.h | egrep -o [0-9.]+)
|
||||
|
||||
ifeq ($(arch),ia64)
|
||||
def_prefix = lin64ipf
|
||||
endif
|
||||
ifneq (,$(findstring $(arch),sparc s390x))
|
||||
def_prefix = lin64
|
||||
endif
|
||||
ifeq ($(arch),armv7)
|
||||
def_prefix = lin32
|
||||
endif
|
||||
ifeq (,$(def_prefix))
|
||||
ifeq (64,$(findstring 64,$(arch)))
|
||||
def_prefix = lin64
|
||||
else
|
||||
def_prefix = lin32
|
||||
endif
|
||||
endif
|
||||
TBB.LST = $(tbb_root)/src/tbb/$(def_prefix)-tbb-export.lst
|
||||
TBB.DEF = $(TBB.LST:.lst=.def)
|
||||
|
||||
TBB.DLL = $(TBB_NO_VERSION.DLL).$(SONAME_SUFFIX)
|
||||
TBB.LIB = $(TBB.DLL)
|
||||
TBB_NO_VERSION.DLL=libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
|
||||
LINK_TBB.LIB = $(TBB_NO_VERSION.DLL)
|
||||
|
||||
MALLOC_NO_VERSION.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(MALLOC_DLL)
|
||||
MALLOC.DEF = $(MALLOC_ROOT)/$(def_prefix)-tbbmalloc-export.def
|
||||
MALLOC.DLL = $(MALLOC_NO_VERSION.DLL).$(SONAME_SUFFIX)
|
||||
MALLOC.LIB = $(MALLOC_NO_VERSION.DLL)
|
||||
LINK_MALLOC.LIB = $(MALLOC_NO_VERSION.DLL)
|
||||
|
||||
MALLOCPROXY_NO_VERSION.DLL = libtbbmalloc_proxy$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOCPROXY.DEF = $(MALLOC_ROOT)/$(def_prefix)-proxy-export.def
|
||||
MALLOCPROXY.DLL = $(MALLOCPROXY_NO_VERSION.DLL).$(SONAME_SUFFIX)
|
||||
MALLOCPROXY.LIB = $(MALLOCPROXY_NO_VERSION.DLL)
|
||||
LINK_MALLOCPROXY.LIB = $(MALLOCPROXY.LIB)
|
||||
|
||||
RML_NO_VERSION.DLL = libirml$(DEBUG_SUFFIX).$(DLL)
|
||||
RML.DLL = $(RML_NO_VERSION.DLL).1
|
||||
RML.LIB = $(RML_NO_VERSION.DLL)
|
||||
|
||||
TEST_LAUNCHER=sh $(tbb_root)/build/test_launcher.sh $(largs)
|
||||
|
||||
OPENCL.LIB = -lOpenCL
|
|
@ -0,0 +1,89 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
CPLUS ?= pathCC
|
||||
CONLY ?= pathcc
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
TEST_WARNING_KEY = -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -Wextra
|
||||
|
||||
WARNING_SUPPRESS = -Wno-parentheses -Wno-non-virtual-dtor
|
||||
DYLIB_KEY = -shared
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBDL = -ldl
|
||||
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
||||
LIBS += -lstl -lpthread -lrt
|
||||
LINK_FLAGS = -Wl,-rpath-link=. -rdynamic
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
OPENMP_FLAG = -openmp
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD
|
||||
endif
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
MALLOC_ASM.OBJ=
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m32 -march=pentium4
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASM = as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += --64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
ASM_FLAGS += --32
|
||||
endif
|
||||
ifeq ($(cfg),debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,100 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
####### Detections and Commands ###############################################
|
||||
|
||||
CPLUS ?= xlc++_r
|
||||
CONLY ?= xlc_r
|
||||
COMPILE_ONLY = -c
|
||||
PREPROC_ONLY = -E -qsourcetype=c
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -qpic
|
||||
WARNING_AS_ERROR_KEY = -qhalt=w
|
||||
WARNING_KEY =
|
||||
TEST_WARNING_KEY =
|
||||
|
||||
WARNING_SUPPRESS =
|
||||
DYLIB_KEY = -qmkshrobj
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBDL = -ldl
|
||||
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
||||
LIBS = -lpthread -lrt
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = $(ITT_NOTIFY) -O2 -DUSE_PTHREAD
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD
|
||||
endif
|
||||
|
||||
# Adding directly to CPLUS_FLAGS instead of to WARNING_SUPPRESS because otherwise it would not be used in several tests (why not?).
|
||||
# Suppress warnings like:
|
||||
# - "1500-029: (W) WARNING: subprogram [...] could not be inlined into [...]."
|
||||
# - "1501-201: (W) Maximum number of common component diagnostics, 10 has been exceeded."
|
||||
# see http://www-01.ibm.com/support/docview.wss?uid=swg1LI72843
|
||||
# it seems that the internal compiler error that would ensue has now been avoided, making the condition harmless
|
||||
# - "1540-0198 (W) The omitted keyword "private" is assumed for base class "no_copy"."
|
||||
# - "1540-0822 (W) The name "__FUNCTION__" must not be defined as a macro."
|
||||
CPLUS_FLAGS += -qsuppress=1500-029:1501-201:1540-0198:1540-0822
|
||||
|
||||
ASM=
|
||||
ASM_FLAGS=
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -q64
|
||||
LIB_LINK_FLAGS += -q64
|
||||
endif
|
||||
|
||||
# TODO: equivalent for -march=pentium4 in CPLUS_FLAGS
|
||||
ifeq (ia32,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -q32 -qarch=pentium4
|
||||
LIB_LINK_FLAGS += -q32
|
||||
endif
|
||||
|
||||
ifeq (ppc64,$(arch))
|
||||
CPLUS_FLAGS += -q64
|
||||
LIB_LINK_FLAGS += -q64
|
||||
endif
|
||||
|
||||
ifeq (ppc32,$(arch))
|
||||
CPLUS_FLAGS += -q32
|
||||
LIB_LINK_FLAGS += -q32
|
||||
endif
|
||||
|
||||
ifeq (bg,$(arch))
|
||||
CPLUS = bgxlC_r
|
||||
CONLY = bgxlc_r
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Suppress innumerable warnings like "1540-1088 (W) The exception specification is being ignored."
|
||||
# Suppress warnings like "1540-1090 (I) The destructor of "lock" might not be called."
|
||||
# TODO: aren't these warnings an indication that -qnoeh might not be appropriate?
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -qnortti -qnoeh -qsuppress=1540-1088:1540-1090
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,136 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
CPLUS ?= clang++
|
||||
CONLY ?= clang
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
TEST_WARNING_KEY = -Wextra -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor
|
||||
WARNING_SUPPRESS = -Wno-non-virtual-dtor -Wno-dangling-else
|
||||
DYLIB_KEY = -dynamiclib
|
||||
EXPORT_KEY = -Wl,-exported_symbols_list,
|
||||
LIBDL = -ldl
|
||||
|
||||
LIBS = -lpthread
|
||||
LINK_FLAGS =
|
||||
LIB_LINK_FLAGS = -dynamiclib -install_name @rpath/$(BUILDING_LIBRARY)
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = -g -O2
|
||||
else
|
||||
CPLUS_FLAGS = -g -O0 -DTBB_USE_DEBUG
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += -DUSE_PTHREAD $(ITT_NOTIFY)
|
||||
|
||||
ifeq (1,$(tbb_cpf))
|
||||
# For correct ucontext.h structures layout
|
||||
CPLUS_FLAGS += -D_XOPEN_SOURCE
|
||||
endif
|
||||
|
||||
# For Clang, we add the option to support RTM intrinsics *iff* xtest is found in <immintrin.h>
|
||||
ifneq (,$(shell grep xtest `echo "\#include<immintrin.h>" | $(CONLY) -E -M - 2>&1 | grep immintrin.h` 2>/dev/null))
|
||||
RTM_KEY = -mrtm
|
||||
endif
|
||||
|
||||
ifneq (,$(stdlib))
|
||||
CPLUS_FLAGS += -stdlib=$(stdlib)
|
||||
LIB_LINK_FLAGS += -stdlib=$(stdlib)
|
||||
endif
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m64 $(RTM_KEY)
|
||||
LINK_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m32 $(RTM_KEY)
|
||||
LINK_FLAGS += -m32
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (ppc64,$(arch))
|
||||
CPLUS_FLAGS += -arch ppc64
|
||||
LINK_FLAGS += -arch ppc64
|
||||
LIB_LINK_FLAGS += -arch ppc64
|
||||
endif
|
||||
|
||||
ifeq (ppc32,$(arch))
|
||||
CPLUS_FLAGS += -arch ppc
|
||||
LINK_FLAGS += -arch ppc
|
||||
LIB_LINK_FLAGS += -arch ppc
|
||||
endif
|
||||
|
||||
ifeq ($(arch),$(filter $(arch),armv7 armv7s arm64))
|
||||
CPLUS_FLAGS += -arch $(arch)
|
||||
LINK_FLAGS += -arch $(arch)
|
||||
LIB_LINK_FLAGS += -arch $(arch)
|
||||
endif
|
||||
|
||||
ifdef SDKROOT
|
||||
CPLUS_FLAGS += -isysroot $(SDKROOT)
|
||||
LINK_FLAGS += -L$(SDKROOT)/usr/lib/system -L$(SDKROOT)/usr/lib/
|
||||
LIB_LINK_FLAGS += -L$(SDKROOT)/usr/lib/system -L$(SDKROOT)/usr/lib/
|
||||
endif
|
||||
|
||||
ifeq (ios,$(target))
|
||||
CPLUS_FLAGS += -miphoneos-version-min=$(IPHONEOS_DEPLOYMENT_TARGET)
|
||||
LINK_FLAGS += -miphoneos-version-min=$(IPHONEOS_DEPLOYMENT_TARGET)
|
||||
LIB_LINK_FLAGS += -miphoneos-version-min=$(IPHONEOS_DEPLOYMENT_TARGET)
|
||||
else
|
||||
CPLUS_FLAGS += -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
|
||||
LINK_FLAGS += -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
|
||||
LIB_LINK_FLAGS += -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
ASM = as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += -arch x86_64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
ASM_FLAGS += -arch i386
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
|
@ -0,0 +1,128 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
CPLUS ?= g++
|
||||
CONLY ?= gcc
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
TEST_WARNING_KEY = -Wextra -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor
|
||||
WARNING_SUPPRESS = -Wno-non-virtual-dtor
|
||||
DYLIB_KEY = -dynamiclib
|
||||
EXPORT_KEY = -Wl,-exported_symbols_list,
|
||||
LIBDL = -ldl
|
||||
|
||||
LIBS = -lpthread
|
||||
LINK_FLAGS =
|
||||
LIB_LINK_FLAGS = -dynamiclib -install_name @rpath/$(BUILDING_LIBRARY)
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
# gcc 4.8 and later support RTM intrinsics, but require command line switch to enable them
|
||||
ifneq (,$(shell $(CONLY) -dumpfullversion -dumpversion | egrep "^(4\.[8-9]|[5-9]|1[0-9])"))
|
||||
RTM_KEY = -mrtm
|
||||
endif
|
||||
|
||||
# gcc 5.0 and later have -Wsuggest-override option
|
||||
# enable it via a pre-included header in order to limit to C++11 and above
|
||||
ifneq (,$(shell $(CONLY) -dumpfullversion -dumpversion | egrep "^([5-9]|1[0-9])"))
|
||||
INCLUDE_TEST_HEADERS = -include $(tbb_root)/src/test/harness_preload.h
|
||||
endif
|
||||
|
||||
# gcc 6.0 and later have -flifetime-dse option that controls
|
||||
# elimination of stores done outside the object lifetime
|
||||
ifneq (,$(shell $(CONLY) -dumpfullversion -dumpversion | egrep "^([6-9]|1[0-9])"))
|
||||
# keep pre-contruction stores for zero initialization
|
||||
DSE_KEY = -flifetime-dse=1
|
||||
endif
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = -g -O2
|
||||
else
|
||||
CPLUS_FLAGS = -g -O0 -DTBB_USE_DEBUG
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += -DUSE_PTHREAD $(ITT_NOTIFY)
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m64
|
||||
LINK_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m32
|
||||
LINK_FLAGS += -m32
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (ppc64,$(arch))
|
||||
CPLUS_FLAGS += -arch ppc64
|
||||
LINK_FLAGS += -arch ppc64
|
||||
LIB_LINK_FLAGS += -arch ppc64
|
||||
endif
|
||||
|
||||
ifeq (ppc32,$(arch))
|
||||
CPLUS_FLAGS += -arch ppc
|
||||
LINK_FLAGS += -arch ppc
|
||||
LIB_LINK_FLAGS += -arch ppc
|
||||
endif
|
||||
|
||||
ifeq (armv7,$(arch))
|
||||
CPLUS_FLAGS += -arch armv7
|
||||
LINK_FLAGS += -arch armv7
|
||||
LIB_LINK_FLAGS += -arch armv7
|
||||
endif
|
||||
|
||||
ifdef SDKROOT
|
||||
CPLUS_FLAGS += -isysroot $(SDKROOT)
|
||||
LIB_LINK_FLAGS += -L$(SDKROOT)/usr/lib/system -L$(SDKROOT)/usr/lib/
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
ASM = as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += -arch x86_64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
ASM_FLAGS += -arch i386
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
|
@ -0,0 +1,107 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
CPLUS ?= icpc
|
||||
CONLY ?= icc
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -w1
|
||||
ifneq (,$(shell icc -dumpversion | egrep "1[2-9]\."))
|
||||
SDL_FLAGS = -fstack-protector -Wformat -Wformat-security
|
||||
endif
|
||||
|
||||
DYLIB_KEY = -dynamiclib
|
||||
EXPORT_KEY = -Wl,-exported_symbols_list,
|
||||
LIBDL = -ldl
|
||||
|
||||
LIBS = -lpthread
|
||||
LINK_FLAGS =
|
||||
LIB_LINK_FLAGS = -dynamiclib -static-intel -install_name @rpath/$(BUILDING_LIBRARY)
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
ifneq (,$(shell icc -dumpversion | egrep "^1[6-9]\."))
|
||||
OPENMP_FLAG = -qopenmp
|
||||
else
|
||||
OPENMP_FLAG = -openmp
|
||||
endif
|
||||
|
||||
# ICC 12.0 and higher provide Intel(R) Cilk(TM) Plus
|
||||
ifneq (,$(shell icc -dumpversion | egrep "^1[2-9]\."))
|
||||
CILK_AVAILABLE = yes
|
||||
endif
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
SDL_FLAGS += -D_FORTIFY_SOURCE=2
|
||||
CPLUS_FLAGS = -g -O2 -fno-omit-frame-pointer -qno-opt-report-embed
|
||||
else
|
||||
CPLUS_FLAGS = -g -O0 -DTBB_USE_DEBUG
|
||||
endif
|
||||
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -DUSE_PTHREAD $(ITT_NOTIFY)
|
||||
|
||||
ifeq (1,$(tbb_cpf))
|
||||
# For correct ucontext.h structures layout
|
||||
CPLUS_FLAGS += -D_XOPEN_SOURCE
|
||||
endif
|
||||
|
||||
ifneq (,$(codecov))
|
||||
CPLUS_FLAGS += -prof-gen=srcpos
|
||||
endif
|
||||
|
||||
# ICC 14.0 and higher support usage of libc++, clang standard library
|
||||
ifneq (,$(shell icc -dumpversion | egrep "^1[4-9]\."))
|
||||
ifneq (,$(stdlib))
|
||||
CPLUS_FLAGS += -stdlib=$(stdlib) -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
|
||||
LIB_LINK_FLAGS += -stdlib=$(stdlib) -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
|
||||
endif
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
ASM = as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += -arch x86_64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
CPLUS_FLAGS += -m32
|
||||
LINK_FLAGS += -m32
|
||||
LIB_LINK_FLAGS += -m32
|
||||
ASM_FLAGS += -arch i386
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,105 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
####### Detections and Commands ###############################################
|
||||
|
||||
ifeq (icc,$(compiler))
|
||||
export COMPILER_VERSION := ICC: $(shell icc -V </dev/null 2>&1 | grep 'Version')
|
||||
ifneq (,$(findstring running on IA-32, $(COMPILER_VERSION)))
|
||||
export arch:=ia32
|
||||
else
|
||||
ifneq (,$(findstring running on Intel(R) 64, $(COMPILER_VERSION)))
|
||||
export arch:=intel64
|
||||
endif
|
||||
endif
|
||||
ifeq (,$(arch))
|
||||
$(warning "Unknown Intel compiler")
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef arch
|
||||
ifeq ($(shell /usr/sbin/sysctl -n hw.machine),Power Macintosh)
|
||||
ifeq ($(shell /usr/sbin/sysctl -n hw.optional.64bitops),1)
|
||||
export arch:=ppc64
|
||||
else
|
||||
export arch:=ppc32
|
||||
endif
|
||||
else
|
||||
ifeq ($(shell /usr/sbin/sysctl -n hw.optional.x86_64 2>/dev/null),1)
|
||||
export arch:=intel64
|
||||
else
|
||||
export arch:=ia32
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef runtime
|
||||
clang_version:=$(shell clang --version | sed -n "1s/.*version \(.*[0-9]\) .*/\1/p")
|
||||
ifndef os_version
|
||||
os_version:=$(shell /usr/bin/sw_vers -productVersion)
|
||||
endif
|
||||
export runtime:=cc$(clang_version)_os$(os_version)
|
||||
endif
|
||||
|
||||
native_compiler := clang
|
||||
export compiler ?= clang
|
||||
debugger ?= lldb
|
||||
|
||||
export stdlib ?= libc++
|
||||
|
||||
CMD=$(SHELL) -c
|
||||
CWD=$(shell pwd)
|
||||
RM?=rm -f
|
||||
RD?=rmdir
|
||||
MD?=mkdir -p
|
||||
NUL= /dev/null
|
||||
SLASH=/
|
||||
MAKE_VERSIONS=sh $(tbb_root)/build/version_info_macos.sh $(VERSION_FLAGS) >version_string.ver
|
||||
MAKE_TBBVARS=sh $(tbb_root)/build/generate_tbbvars.sh DY
|
||||
|
||||
ifdef DYLD_LIBRARY_PATH
|
||||
export DYLD_LIBRARY_PATH := .:$(DYLD_LIBRARY_PATH)
|
||||
else
|
||||
export DYLD_LIBRARY_PATH := .
|
||||
endif
|
||||
|
||||
####### Build settings ########################################################
|
||||
|
||||
OBJ=o
|
||||
DLL=dylib
|
||||
MALLOC_DLL?=$(DLL)
|
||||
LIBEXT=dylib
|
||||
|
||||
def_prefix = $(if $(findstring 64,$(arch)),mac64,mac32)
|
||||
|
||||
TBB.LST = $(tbb_root)/src/tbb/$(def_prefix)-tbb-export.lst
|
||||
TBB.DEF = $(TBB.LST:.lst=.def)
|
||||
TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
|
||||
TBB.LIB = $(TBB.DLL)
|
||||
LINK_TBB.LIB = $(TBB.LIB)
|
||||
|
||||
MALLOC.DEF = $(MALLOC_ROOT)/$(def_prefix)-tbbmalloc-export.def
|
||||
MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(MALLOC_DLL)
|
||||
MALLOC.LIB = $(MALLOC.DLL)
|
||||
LINK_MALLOC.LIB = $(MALLOC.LIB)
|
||||
|
||||
MALLOCPROXY.DLL = libtbbmalloc_proxy$(DEBUG_SUFFIX).$(MALLOC_DLL)
|
||||
MALLOCPROXY.LIB = $(MALLOCPROXY.DLL)
|
||||
LINK_MALLOCPROXY.LIB = $(MALLOCPROXY.LIB)
|
||||
|
||||
TEST_LAUNCHER=sh $(tbb_root)/build/test_launcher.sh $(largs)
|
||||
|
||||
OPENCL.LIB = -framework OpenCL
|
||||
|
||||
MACOSX_DEPLOYMENT_TARGET ?= 10.11
|
|
@ -0,0 +1,75 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
CPLUS ?= icpc
|
||||
CONLY ?= icc
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -w1
|
||||
DYLIB_KEY = -shared -Wl,-soname=$@
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
NOINTRINSIC_KEY = -fno-builtin
|
||||
LIBDL = -ldl
|
||||
SDL_FLAGS = -fstack-protector -Wformat -Wformat-security
|
||||
|
||||
ifeq (release,$(cfg))
|
||||
SDL_FLAGS += -D_FORTIFY_SOURCE=2
|
||||
CPLUS_FLAGS = -O2 -g -DUSE_PTHREAD
|
||||
else
|
||||
CPLUS_FLAGS = -O0 -g -DUSE_PTHREAD -DTBB_USE_DEBUG
|
||||
endif
|
||||
|
||||
ifneq (,$(codecov))
|
||||
CPLUS_FLAGS += -prof-gen=srcpos
|
||||
endif
|
||||
|
||||
ifneq (,$(shell icc -dumpversion | egrep "^1[6-9]\."))
|
||||
OPENMP_FLAG = -qopenmp
|
||||
else
|
||||
OPENMP_FLAG = -openmp
|
||||
endif
|
||||
|
||||
LIB_LINK_FLAGS = -shared -static-intel -Wl,-soname=$(BUILDING_LIBRARY) -z relro -z now
|
||||
LIBS += -lpthread -lrt
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
CILK_AVAILABLE = yes
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
MALLOC_ASM.OBJ=
|
||||
|
||||
CPLUS_FLAGS += -DHARNESS_INCOMPLETE_SOURCES=1 -D__TBB_MIC_NATIVE -DTBB_USE_EXCEPTIONS=0 -qopt-streaming-stores never
|
||||
CPLUS += -mmic
|
||||
CONLY += -mmic
|
||||
LINK_FLAGS = -Wl,-rpath-link=. -rdynamic
|
||||
# Tell the icc to not link against libcilk*. Otherwise icc tries to link and emits a warning message.
|
||||
LIB_LINK_FLAGS += -no-intel-extensions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
ifeq ($(tbb_os),mic)
|
||||
$(error MIC supports only cross-compilation. Specify "target=mic" instead.)
|
||||
endif
|
||||
|
||||
ifneq ($(BUILDING_PHASE),1)
|
||||
# The same build prefix should be used in offload.inc
|
||||
ifeq (,$(tbb_build_prefix))
|
||||
tbb_build_prefix=mic_icc$(CPF_SUFFIX)
|
||||
endif
|
||||
# For examples
|
||||
mic_tbb_build_prefix=$(tbb_build_prefix)
|
||||
endif
|
||||
|
||||
MAKE_VERSIONS=sh $(tbb_root)/build/version_info_linux.sh $(VERSION_FLAGS) >version_string.ver
|
||||
MAKE_TBBVARS=sh $(tbb_root)/build/generate_tbbvars.sh MIC_ MIC_
|
||||
def_prefix=lin64
|
||||
|
||||
TEST_LAUNCHER=
|
||||
run_cmd ?= bash $(tbb_root)/build/mic.linux.launcher.sh $(largs)
|
||||
|
||||
# detects whether examples are being built.
|
||||
ifeq ($(BUILDING_PHASE),0)
|
||||
export UI = con
|
||||
export x64 = 64
|
||||
endif # examples
|
|
@ -0,0 +1,157 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Usage:
|
||||
# mic.linux.launcher.sh [-v] [-q] [-s] [-r <repeats>] [-u] [-l <library>] <executable> <arg1> <arg2> <argN>
|
||||
# where: -v enables verbose output
|
||||
# where: -q enables quiet mode
|
||||
# where: -s runs the test in stress mode (until non-zero exit code or ctrl-c pressed)
|
||||
# where: -r <repeats> specifies number of times to repeat execution
|
||||
# where: -u limits stack size
|
||||
# where: -l <library> specifies the library name to be assigned to LD_PRELOAD
|
||||
#
|
||||
# Libs and executable necessary for testing should be present in the current directory before running.
|
||||
# Note: Do not remove the redirections to '/dev/null' in the script, otherwise the nightly test system will fail.
|
||||
#
|
||||
trap 'echo Error at line $LINENO while executing "$BASH_COMMAND"' ERR #
|
||||
trap 'echo -e "\n*** Interrupted ***" && exit 1' SIGINT SIGQUIT #
|
||||
# Process the optional arguments if present
|
||||
while getopts "qvsr:ul:" flag #
|
||||
do case $flag in #
|
||||
s ) # Stress testing mode
|
||||
echo Doing stress testing. Press Ctrl-C to terminate
|
||||
run_env='stressed() { while $*; do :; done; };' #
|
||||
run_prefix="stressed $run_prefix" ;; #
|
||||
r ) # Repeats test n times
|
||||
run_env="repeated() { for i in \$(seq 1 $OPTARG); do echo \$i of $OPTARG:; \$*; done; };" #
|
||||
run_prefix="repeated $run_prefix" ;; #
|
||||
l ) # Additional library
|
||||
ldd_list+="$OPTARG " #
|
||||
run_prefix+=" LD_PRELOAD=$OPTARG" ;; #
|
||||
u ) # Set stack limit
|
||||
run_prefix="ulimit -s 10240; $run_prefix" ;; #
|
||||
q ) # Quiet mode, removes 'done' but prepends any other output by test name
|
||||
SUPPRESS='>/dev/null' #
|
||||
verbose=1 ;; # TODO: implement a better quiet mode
|
||||
v ) # Verbose mode
|
||||
verbose=1 ;; #
|
||||
esac done #
|
||||
shift `expr $OPTIND - 1` #
|
||||
[ $verbose ] || SUPPRESS='>/dev/null' #
|
||||
#
|
||||
# Collect the executable name
|
||||
fexename="$1" #
|
||||
exename=`basename $1` #
|
||||
shift #
|
||||
#
|
||||
: ${MICDEV:=mic0} #
|
||||
RSH="sudo ssh $MICDEV" #
|
||||
RCP="sudo scp" #
|
||||
currentdir=$PWD #
|
||||
#
|
||||
# Prepare the target directory on the device
|
||||
targetdir="`$RSH mktemp -d /tmp/tbbtestXXXXXX 2>/dev/null`" #
|
||||
# Prepare the temporary directory on the host
|
||||
hostdir="`mktemp -d /tmp/tbbtestXXXXXX 2>/dev/null`" #
|
||||
#
|
||||
function copy_files { #
|
||||
[ $verbose ] && echo Going to copy $* #
|
||||
eval "cp $* $hostdir/ $SUPPRESS 2>/dev/null || exit \$?" #
|
||||
eval "$RCP $hostdir/* $MICDEV:$targetdir/ $SUPPRESS 2>/dev/null || exit \$?" #
|
||||
eval "rm $hostdir/* $SUPPRESS 2>/dev/null || exit \$?" #
|
||||
} # copy files
|
||||
#
|
||||
function clean_all() { #
|
||||
eval "$RSH rm -fr $targetdir $SUPPRESS" ||: #
|
||||
eval "rm -fr $hostdir $SUPPRESS" ||: #
|
||||
} # clean all temporary files
|
||||
#
|
||||
function kill_interrupt() { #
|
||||
echo -e "\n*** Killing remote $exename ***" && $RSH "killall $exename" #
|
||||
clean_all #
|
||||
} # kill target process
|
||||
#
|
||||
trap 'clean_all' SIGINT SIGQUIT # trap keyboard interrupt (control-c)
|
||||
#
|
||||
# Transfer the test executable file and its auxiliary libraries (named as {test}_dll.so) to the target device.
|
||||
copy_files $fexename `ls ${exename%\.*}*.so 2>/dev/null ||:` #
|
||||
#
|
||||
# Collect all dependencies of the test and its auxiliary libraries to transfer them to the target device.
|
||||
ldd_list+="libtbbmalloc*.so* libirml*.so* `$RSH ldd $targetdir/\* | grep = | cut -d= -f1 2>/dev/null`" #
|
||||
fnamelist="" #
|
||||
#
|
||||
# Find the libraries and add them to the list.
|
||||
# For example, go through MIC_LD_LIBRARY_PATH and add TBB libraries from the first
|
||||
# directory that contains tbb files
|
||||
mic_dir_list=`echo .:$MIC_LD_LIBRARY_PATH | tr : " "` #
|
||||
[ $verbose ] && echo Searching libraries in $mic_dir_list
|
||||
for name in $ldd_list; do # adds the first matched name in specified dirs
|
||||
found="`find -L $mic_dir_list -name $name -a -readable -print -quit 2>/dev/null` "||: #
|
||||
[ $verbose ] && echo File $name: $found
|
||||
fnamelist+=$found
|
||||
done #
|
||||
#
|
||||
# Remove extra spaces.
|
||||
fnamelist=`echo $fnamelist` #
|
||||
# Transfer collected executable and library files to the target device.
|
||||
[ -n "$fnamelist" ] && copy_files $fnamelist
|
||||
#
|
||||
# Transfer input files used by example codes by scanning the executable argument list.
|
||||
argfiles= #
|
||||
args= #
|
||||
for arg in "$@"; do #
|
||||
if [ -r $arg ]; then #
|
||||
argfiles+="$arg " #
|
||||
args+="$(basename $arg) " #
|
||||
else #
|
||||
args+="$arg " #
|
||||
fi #
|
||||
done #
|
||||
[ -n "$argfiles" ] && copy_files $argfiles #
|
||||
#
|
||||
# Get the list of transferred files
|
||||
testfiles="`$RSH find $targetdir/ -type f | tr '\n' ' ' 2>/dev/null`" #
|
||||
#
|
||||
[ $verbose ] && echo Running $run_prefix ./$exename $args #
|
||||
# Run the test on the target device
|
||||
trap 'kill_interrupt' SIGINT SIGQUIT # trap keyboard interrupt (control-c)
|
||||
trap - ERR #
|
||||
run_env+="cd $targetdir; export LD_LIBRARY_PATH=.:\$LD_LIBRARY_PATH;" #
|
||||
$RSH "$run_env $run_prefix ./$exename $args" #
|
||||
#
|
||||
# Delete the test files and get the list of output files
|
||||
outfiles=`$RSH rm $testfiles 2>/dev/null; find $targetdir/ -type f 2>/dev/null` ||: #
|
||||
if [ -n "$outfiles" ]; then #
|
||||
for outfile in $outfiles; do #
|
||||
filename=$(basename $outfile) #
|
||||
subdir=$(dirname $outfile) #
|
||||
subdir="${subdir#$targetdir}" #
|
||||
[ -n $subdir ] subdir=$subdir/ #
|
||||
# Create directories on host
|
||||
[ ! -d "$hostdir/$subdir" ] && mkdir -p "$hostdir/$subdir" #
|
||||
[ ! -d "$currentdir/$subdir" ] && mkdir -p "$currentdir/$subdir" #
|
||||
# Copy the output file to the temporary directory on host
|
||||
eval "$RCP -r '$MICDEV:${outfile#}' '$hostdir/$subdir$filename' $SUPPRESS 2>&1 || exit \$?" #
|
||||
# Copy the output file from the temporary directory to the current directory
|
||||
eval "cp '$hostdir/$subdir$filename' '$currentdir/$subdir$filename' $SUPPRESS 2>&1 || exit \$?" #
|
||||
done #
|
||||
fi #
|
||||
#
|
||||
# Clean up temporary directories
|
||||
clean_all
|
||||
#
|
||||
# Return the exit code of the test.
|
||||
exit $? #
|
|
@ -0,0 +1,114 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
ifneq (mic,$(offload))
|
||||
$(error File mic.offload.inc should not be included directly. Use offload=mic instead.)
|
||||
endif
|
||||
ifneq (icc,$(compiler))
|
||||
$(error Only Intel(R) Compiler is supported for MIC offload compilation)
|
||||
endif
|
||||
|
||||
# The same build prefix should be used in mic.linux.inc
|
||||
mic_tbb_build_prefix=mic_icc$(CPF_SUFFIX)
|
||||
MIC_OFFLOAD_NATIVE_PATH?=../$(mic_tbb_build_prefix)_$(cfg)
|
||||
|
||||
ifdef BUILDING_PHASE
|
||||
ifeq ($(BUILDING_PHASE),1)
|
||||
# Tests
|
||||
export MIC_OFFLOAD_NATIVE_PATH
|
||||
LINK_TBB_NATIVE.LIB=$(MIC_OFFLOAD_NATIVE_PATH)/$(TBB.LIB)
|
||||
LINK_TBB.LIB=-qoffload-option,mic,ld,"$(LINK_TBB_NATIVE.LIB)" $(TBB.LIB)
|
||||
LINK_MALLOC_NATIVE.LIB=$(MIC_OFFLOAD_NATIVE_PATH)/$(MALLOC.DLL)
|
||||
LINK_MALLOC.LIB=-qoffload-option,mic,ld,"$(LINK_MALLOC_NATIVE.LIB)" $(MALLOC.LIB)
|
||||
LINK_MALLOCPROXY_NATIVE.LIB=$(MIC_OFFLOAD_NATIVE_PATH)/$(MALLOCPROXY.DLL)
|
||||
LINK_MALLOCPROXY.LIB=-qoffload-option,mic,ld,"$(LINK_MALLOCPROXY_NATIVE.LIB)" $(MALLOCPROXY.LIB)
|
||||
|
||||
# Export extensions for test_launcher
|
||||
export DLL
|
||||
export TEST_EXT=offload.exe
|
||||
OBJ=offload.o
|
||||
|
||||
# Do not use -Werror because it is too strict for the early offload compiler.
|
||||
# Need to set anything because WARNING_AS_ERROR_KEY should not be empty.
|
||||
# Treat #2426 as a warning. Print errors only.
|
||||
tbb_strict=0
|
||||
WARNING_AS_ERROR_KEY = Warning as error
|
||||
WARNING_KEY = -diag-warning 2426 -w0
|
||||
|
||||
CXX_MIC_STUFF = -qoffload-attribute-target=mic -D__TBB_MIC_OFFLOAD=1 -qoffload-option,mic,compiler,"-D__TBB_MIC_OFFLOAD=1 $(CXX_MIC_NATIVE_STUFF)"
|
||||
CXX_MIC_NATIVE_STUFF = -DHARNESS_INCOMPLETE_SOURCES=1 -D__TBB_MIC_NATIVE -DTBB_USE_EXCEPTIONS=0
|
||||
CPLUS_FLAGS += $(CXX_MIC_STUFF)
|
||||
|
||||
# Some tests require that an executable exports its symbols.
|
||||
LINK_FLAGS += -qoffload-option,mic,ld,"--export-dynamic"
|
||||
|
||||
# libcoi_device.so is needed for COIProcessProxyFlush used in Harness.
|
||||
LINK_FLAGS += -qoffload-option,mic,ld,"-lcoi_device"
|
||||
|
||||
# DSO-linking semantics forces linking libpthread and librt to a test.
|
||||
LINK_FLAGS += -qoffload-option,mic,ld,"-lpthread -lrt"
|
||||
|
||||
.PHONY: FORCE
|
||||
FORCE:
|
||||
|
||||
$(MIC_OFFLOAD_NATIVE_PATH)/%_dll.$(DLL): FORCE
|
||||
@$(MAKE) --no-print-directory -C "$(MIC_OFFLOAD_NATIVE_PATH)" target=mic offload= -f$(tbb_root)/build/Makefile.$(TESTFILE) $*_dll.$(DLL)
|
||||
%_dll.$(DLL): $(MIC_OFFLOAD_NATIVE_PATH)/%_dll.$(DLL) FORCE
|
||||
@$(MAKE) --no-print-directory offload= -f$(tbb_root)/build/Makefile.$(TESTFILE) $*_dll.$(DLL)
|
||||
|
||||
.PRECIOUS: $(MIC_OFFLOAD_NATIVE_PATH)/%_dll.$(DLL)
|
||||
|
||||
%.$(TEST_EXT): LINK_FILES+=-qoffload-option,mic,ld,"$(addprefix $(MIC_OFFLOAD_NATIVE_PATH)/,$(TEST_LIBS))"
|
||||
|
||||
TEST_LAUNCHER=sh $(tbb_root)/build/test_launcher.sh $(largs)
|
||||
|
||||
ifdef MIC_LD_LIBRARY_PATH
|
||||
export MIC_LD_LIBRARY_PATH := $(MIC_OFFLOAD_NATIVE_PATH):$(MIC_LD_LIBRARY_PATH)
|
||||
else
|
||||
export MIC_LD_LIBRARY_PATH := $(MIC_OFFLOAD_NATIVE_PATH)
|
||||
endif
|
||||
else
|
||||
# Examples
|
||||
export UI = con
|
||||
export x64 = 64
|
||||
endif
|
||||
else
|
||||
# Libraries
|
||||
LIB_TARGETS = tbb tbbmalloc
|
||||
addsuffixes = $(foreach suff,$(1),$(addsuffix $(suff),$(2)))
|
||||
|
||||
.PHONY: $(call addsuffixes, _debug _release _debug_mic _release_mic,$(LIB_TARGETS))
|
||||
|
||||
# The dependence on *_debug and *_release targets unifies the offload support
|
||||
# for top-level Makefile and src/Makefile
|
||||
$(LIB_TARGETS): %: %_release %_debug
|
||||
|
||||
# "override offload=" suppresses the "offload" variable value for nested makes
|
||||
$(LIB_TARGETS) $(call addsuffixes, _debug _release,$(LIB_TARGETS)): override offload=
|
||||
# Apply overriding for library builds
|
||||
export offload
|
||||
export tbb_build_prefix
|
||||
# Add the dependency on target libraries
|
||||
$(call addsuffixes, _debug _release,$(LIB_TARGETS)): %: %_mic
|
||||
|
||||
# tbb_build_prefix should be overridden since we want to restart make in "clear" environment
|
||||
$(call addsuffixes, _debug_mic _release_mic,$(LIB_TARGETS)): override tbb_build_prefix=
|
||||
$(call addsuffixes, _debug_mic _release_mic,$(LIB_TARGETS)): %_mic:
|
||||
@$(MAKE) --no-print-directory -C "$(full_tbb_root)/src" $* target=mic tbb_root=..
|
||||
|
||||
mic_clean: override tbb_build_prefix=
|
||||
mic_clean:
|
||||
@$(MAKE) --no-print-directory -C "$(full_tbb_root)/src" clean offload= target=mic tbb_root=..
|
||||
clean: mic_clean
|
||||
endif
|
|
@ -0,0 +1 @@
|
|||
hwcap_1 = OVERRIDE;
|
|
@ -0,0 +1,70 @@
|
|||
@echo off
|
||||
REM
|
||||
REM Copyright (c) 2005-2020 Intel Corporation
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
REM
|
||||
|
||||
set cmd_line=
|
||||
if DEFINED run_prefix set cmd_line=%run_prefix%
|
||||
:while
|
||||
if NOT "%1"=="" (
|
||||
REM Verbose mode
|
||||
if "%1"=="-v" (
|
||||
set verbose=yes
|
||||
GOTO continue
|
||||
)
|
||||
REM Silent mode of 'make' requires additional support for associating
|
||||
REM of test output with the test name. Verbose mode is the simplest way
|
||||
if "%1"=="-q" (
|
||||
set verbose=yes
|
||||
GOTO continue
|
||||
)
|
||||
REM Run in stress mode
|
||||
if "%1"=="-s" (
|
||||
echo Doing stress testing. Press Ctrl-C to terminate
|
||||
set stress=yes
|
||||
GOTO continue
|
||||
)
|
||||
REM Repeat execution specified number of times
|
||||
if "%1"=="-r" (
|
||||
set repeat=%2
|
||||
SHIFT
|
||||
GOTO continue
|
||||
)
|
||||
REM no LD_PRELOAD under Windows
|
||||
REM but run the test to check "#pragma comment" construction
|
||||
if "%1"=="-l" (
|
||||
REM The command line may specify -l with empty dll name,
|
||||
REM e.g. "test_launcher.bat -l app.exe". If the dll name is
|
||||
REM empty then %2 contains the application name and the SHIFT
|
||||
REM operation is not necessary.
|
||||
if exist "%3" SHIFT
|
||||
GOTO continue
|
||||
)
|
||||
REM no need to setup up stack size under Windows
|
||||
if "%1"=="-u" GOTO continue
|
||||
set cmd_line=%cmd_line% %1
|
||||
:continue
|
||||
SHIFT
|
||||
GOTO while
|
||||
)
|
||||
set cmd_line=%cmd_line:./=.\%
|
||||
if DEFINED verbose echo Running %cmd_line%
|
||||
if DEFINED stress set cmd_line=%cmd_line% ^& IF NOT ERRORLEVEL 1 GOTO stress
|
||||
:stress
|
||||
if DEFINED repeat (
|
||||
for /L %%i in (1,1,%repeat%) do echo %%i of %repeat%: & %cmd_line%
|
||||
) else (
|
||||
%cmd_line%
|
||||
)
|
|
@ -0,0 +1,90 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Usage:
|
||||
# test_launcher.sh [-v] [-q] [-s] [-r <repeats>] [-u] [-l <library>] <executable> <arg1> <arg2> <argN>
|
||||
# where: -v enables verbose output
|
||||
# where: -q enables quiet mode
|
||||
# where: -s runs the test in stress mode (until non-zero exit code or ctrl-c pressed)
|
||||
# where: -r <repeats> specifies number of times to repeat execution
|
||||
# where: -u limits stack size
|
||||
# where: -l <library> specifies the library name to be assigned to LD_PRELOAD
|
||||
|
||||
while getopts "qvsr:ul:" flag #
|
||||
do case $flag in #
|
||||
s ) # Stress testing mode
|
||||
run_prefix="stressed $run_prefix" ;; #
|
||||
r ) # Repeats test n times
|
||||
repeat=$OPTARG #
|
||||
run_prefix="repeated $run_prefix" ;; #
|
||||
l ) if [ `uname` = 'Linux' ] ; then #
|
||||
LD_PRELOAD=$OPTARG #
|
||||
elif [ `uname` = 'Darwin' ] ; then #
|
||||
DYLD_INSERT_LIBRARIES=$OPTARG #
|
||||
else #
|
||||
echo 'skip' #
|
||||
exit #
|
||||
fi ;; #
|
||||
u ) # Set stack limit
|
||||
ulimit -s 10240 ;; #
|
||||
q ) # Quiet mode, removes 'done' but prepends any other output by test name
|
||||
OUTPUT='2>&1 | sed -e "s/done//;/^[[:space:]]*$/d;s!^!$1: !"' ;; #
|
||||
v ) # Verbose mode
|
||||
verbose=1 ;; #
|
||||
esac done #
|
||||
shift `expr $OPTIND - 1` #
|
||||
if [ $MIC_OFFLOAD_NATIVE_PATH ] ; then #
|
||||
LIB_NAME=${1/%.$TEST_EXT/_dll.$DLL} #
|
||||
if [ -f "$MIC_OFFLOAD_NATIVE_PATH/$LIB_NAME" ]; then #
|
||||
[ -z "$MIC_CARD" ] && MIC_CARD=mic0 #
|
||||
TMPDIR_HOST=`mktemp -d /tmp/tbbtestXXXXXX` #
|
||||
TMPDIR_MIC=`sudo ssh $MIC_CARD mktemp -d /tmp/tbbtestXXXXXX` #
|
||||
sudo ssh $MIC_CARD "chmod +x $TMPDIR_MIC" #
|
||||
# Test specific library may depend on libtbbmalloc*
|
||||
cp "$MIC_OFFLOAD_NATIVE_PATH/$LIB_NAME" "$MIC_OFFLOAD_NATIVE_PATH"/libtbbmalloc* "$TMPDIR_HOST" >/dev/null 2>/dev/null #
|
||||
sudo scp "$TMPDIR_HOST"/* $MIC_CARD:"$TMPDIR_MIC" >/dev/null 2>/dev/null #
|
||||
|
||||
LD_LIBRARY_PATH=$TMPDIR_MIC:$LD_LIBRARY_PATH #
|
||||
export LD_LIBRARY_PATH #
|
||||
fi #
|
||||
fi #
|
||||
stressed() { echo Doing stress testing. Press Ctrl-C to terminate #
|
||||
while :; do $*; done;#
|
||||
} #
|
||||
repeated() { #
|
||||
i=0; while [ "$i" -lt $repeat ]; do i=`expr $i + 1`; echo $i of $repeat:; $*; done #
|
||||
} #
|
||||
# DYLD_LIBRARY_PATH can be purged on OS X 10.11, set it again
|
||||
if [ `uname` = 'Darwin' -a -z "$DYLD_LIBRARY_PATH" ] ; then #
|
||||
DYLD_LIBRARY_PATH=. #
|
||||
export DYLD_LIBRARY_PATH #
|
||||
fi #
|
||||
# Run the command line passed via parameters
|
||||
[ $verbose ] && echo Running $run_prefix $* #
|
||||
if [ -n "$LD_PRELOAD" ] ; then #
|
||||
export LD_PRELOAD #
|
||||
elif [ -n "$DYLD_INSERT_LIBRARIES" ] ; then #
|
||||
export DYLD_INSERT_LIBRARIES #
|
||||
fi #
|
||||
exec 4>&1 # extracting exit code of the first command in pipeline needs duplicated stdout
|
||||
# custom redirection needs eval, otherwise shell cannot parse it
|
||||
err=`eval '( $run_prefix $* || echo \$? >&3; )' ${OUTPUT} 3>&1 >&4` #
|
||||
[ -z "$err" ] || echo $1: exited with error $err #
|
||||
if [ $MIC_OFFLOAD_NATIVE_PATH ] ; then #
|
||||
sudo ssh $MIC_CARD rm -fr "$TMPDIR_MIC" >/dev/null 2>/dev/null #
|
||||
rm -fr "$TMPDIR_HOST" >/dev/null 2>/dev/null #
|
||||
fi #
|
||||
exit $err #
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Script used to generate version info string
|
||||
echo "#define __TBB_VERSION_STRINGS(N) \\"
|
||||
echo '#N": BUILD_HOST'"\t\t"`hostname -s`" ("`uname -m`")"'" ENDL \'
|
||||
# find OS name in *-release and issue* files by filtering blank lines and lsb-release content out
|
||||
echo '#N": BUILD_OS'"\t\t"`lsb_release -sd 2>/dev/null | grep -ih '[a-z] ' - /etc/*release /etc/issue 2>/dev/null | head -1 | sed -e 's/["\\\\]//g'`'" ENDL \'
|
||||
echo '#N": BUILD_KERNEL'"\t"`uname -srv`'" ENDL \'
|
||||
echo '#N": BUILD_GCC'"\t\t"`g++ --version </dev/null 2>&1 | grep 'g++'`'" ENDL \'
|
||||
[ -z "$COMPILER_VERSION" ] || echo '#N": BUILD_COMPILER'"\t"$COMPILER_VERSION'" ENDL \'
|
||||
echo '#N": BUILD_LIBC'"\t"`getconf GNU_LIBC_VERSION | grep glibc | sed -e 's/^glibc //'`'" ENDL \'
|
||||
echo '#N": BUILD_LD'"\t\t"`ld -v 2>&1 | grep 'version'`'" ENDL \'
|
||||
echo '#N": BUILD_TARGET'"\t$arch on $runtime"'" ENDL \'
|
||||
echo '#N": BUILD_COMMAND'"\t"$*'" ENDL \'
|
||||
echo ""
|
||||
echo "#define __TBB_DATETIME \""`date -u`"\""
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Script used to generate version info string
|
||||
echo "#define __TBB_VERSION_STRINGS(N) \\"
|
||||
echo '#N": BUILD_HOST'"\t\t"`hostname -s`" ("`uname -m`")"'" ENDL \'
|
||||
# find OS name in *-release and issue* files by filtering blank lines and lsb-release content out
|
||||
echo '#N": BUILD_OS'"\t\t"`lsb_release -sd 2>/dev/null | grep -ih '[a-z] ' - /etc/*release /etc/issue 2>/dev/null | head -1 | sed -e 's/["\\\\]//g'`'" ENDL \'
|
||||
echo '#N": BUILD_TARGET_CXX'"\t"`$TARGET_CXX --version | head -n1`'" ENDL \'
|
||||
[ -z "$COMPILER_VERSION" ] || echo '#N": BUILD_COMPILER'"\t"$COMPILER_VERSION'" ENDL \'
|
||||
[ -z "$ndk_version" ] || echo '#N": BUILD_NDK'"\t\t$ndk_version"'" ENDL \'
|
||||
echo '#N": BUILD_LD'"\t\t"`${tbb_tool_prefix}ld -v 2>&1 | grep 'ld'`'" ENDL \'
|
||||
echo '#N": BUILD_TARGET'"\t$arch on $runtime"'" ENDL \'
|
||||
echo '#N": BUILD_COMMAND'"\t"$*'" ENDL \'
|
||||
echo ""
|
||||
echo "#define __TBB_DATETIME \""`date -u`"\""
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Script used to generate version info string
|
||||
echo "#define __TBB_VERSION_STRINGS(N) \\"
|
||||
echo '#N": BUILD_HOST'"\t\t"`hostname -s`" ("`uname -m`")"'" ENDL \'
|
||||
# find OS name in *-release and issue* files by filtering blank lines and lsb-release content out
|
||||
echo '#N": BUILD_OS'"\t\t"`lsb_release -sd 2>/dev/null | grep -ih '[a-z] ' - /etc/*release /etc/issue 2>/dev/null | head -1 | sed -e 's/["\\\\]//g'`'" ENDL \'
|
||||
echo '#N": BUILD_KERNEL'"\t"`uname -srv`'" ENDL \'
|
||||
echo '#N": BUILD_GCC'"\t\t"`g++ --version </dev/null 2>&1 | grep 'g++'`'" ENDL \'
|
||||
[ -z "$COMPILER_VERSION" ] || echo '#N": BUILD_COMPILER'"\t"$COMPILER_VERSION'" ENDL \'
|
||||
echo '#N": BUILD_LIBC'"\t"`getconf GNU_LIBC_VERSION | grep glibc | sed -e 's/^glibc //'`'" ENDL \'
|
||||
echo '#N": BUILD_LD'"\t\t"`ld -v 2>&1 | grep 'version'`'" ENDL \'
|
||||
echo '#N": BUILD_TARGET'"\t$arch on $runtime"'" ENDL \'
|
||||
echo '#N": BUILD_COMMAND'"\t"$*'" ENDL \'
|
||||
echo ""
|
||||
echo "#define __TBB_DATETIME \""`date -u`"\""
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Script used to generate version info string
|
||||
echo "#define __TBB_VERSION_STRINGS(N) \\"
|
||||
echo '#N": BUILD_HOST'"\t\t"`hostname -s`" ("`arch`")"'" ENDL \'
|
||||
echo '#N": BUILD_OS'"\t\t"`sw_vers -productName`" version "`sw_vers -productVersion`'" ENDL \'
|
||||
echo '#N": BUILD_KERNEL'"\t"`uname -v`'" ENDL \'
|
||||
echo '#N": BUILD_CLANG'"\t"`clang --version | sed -n "1p"`'" ENDL \'
|
||||
echo '#N": BUILD_XCODE'"\t"`xcodebuild -version </dev/null 2>&1 | grep 'Xcode'`'" ENDL \'
|
||||
[ -z "$COMPILER_VERSION" ] || echo '#N": BUILD_COMPILER'"\t"$COMPILER_VERSION'" ENDL \'
|
||||
echo '#N": BUILD_TARGET'"\t$arch on $runtime"'" ENDL \'
|
||||
echo '#N": BUILD_COMMAND'"\t"$*'" ENDL \'
|
||||
echo ""
|
||||
echo "#define __TBB_DATETIME \""`date -u`"\""
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Script used to generate version info string
|
||||
echo "#define __TBB_VERSION_STRINGS(N) \\"
|
||||
echo '#N": BUILD_HOST'"\t"`hostname`" ("`arch`")"'" ENDL \'
|
||||
echo '#N": BUILD_OS'"\t\t"`uname`'" ENDL \'
|
||||
echo '#N": BUILD_KERNEL'"\t"`uname -srv`'" ENDL \'
|
||||
echo '#N": BUILD_SUNCC'"\t"`CC -V </dev/null 2>&1 | grep 'C++'`'" ENDL \'
|
||||
[ -z "$COMPILER_VERSION" ] || echo '#N": BUILD_COMPILER'"\t"$COMPILER_VERSION'" ENDL \'
|
||||
echo '#N": BUILD_TARGET'"\t$arch on $runtime"'" ENDL \'
|
||||
echo '#N": BUILD_COMMAND'"\t"$*'" ENDL \'
|
||||
echo ""
|
||||
echo "#define __TBB_DATETIME \""`date -u`"\""
|
|
@ -0,0 +1,91 @@
|
|||
// Copyright (c) 2005-2020 Intel Corporation
|
||||
//
|
||||
// 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.
|
||||
|
||||
var WshShell = WScript.CreateObject("WScript.Shell");
|
||||
|
||||
var tmpExec;
|
||||
|
||||
WScript.Echo("#define __TBB_VERSION_STRINGS(N) \\");
|
||||
|
||||
//Getting BUILD_HOST
|
||||
WScript.echo( "#N \": BUILD_HOST\\t\\t" +
|
||||
WshShell.ExpandEnvironmentStrings("%COMPUTERNAME%") +
|
||||
"\" ENDL \\" );
|
||||
|
||||
//Getting BUILD_OS
|
||||
tmpExec = WshShell.Exec("cmd /c ver");
|
||||
while ( tmpExec.Status == 0 ) {
|
||||
WScript.Sleep(100);
|
||||
}
|
||||
tmpExec.StdOut.ReadLine();
|
||||
|
||||
WScript.echo( "#N \": BUILD_OS\\t\\t" +
|
||||
tmpExec.StdOut.ReadLine() +
|
||||
"\" ENDL \\" );
|
||||
|
||||
if ( WScript.Arguments(0).toLowerCase().match("gcc") ) {
|
||||
tmpExec = WshShell.Exec(WScript.Arguments(0) + " --version");
|
||||
WScript.echo( "#N \": BUILD_GCC\\t\\t" +
|
||||
tmpExec.StdOut.ReadLine() +
|
||||
"\" ENDL \\" );
|
||||
|
||||
} else if ( WScript.Arguments(0).toLowerCase().match("clang") ) {
|
||||
tmpExec = WshShell.Exec(WScript.Arguments(0) + " --version");
|
||||
WScript.echo( "#N \": BUILD_CLANG\\t" +
|
||||
tmpExec.StdOut.ReadLine() +
|
||||
"\" ENDL \\" );
|
||||
|
||||
} else { // MS / Intel compilers
|
||||
//Getting BUILD_CL
|
||||
tmpExec = WshShell.Exec("cmd /c echo #define 0 0>empty.cpp");
|
||||
tmpExec = WshShell.Exec("cl -c empty.cpp ");
|
||||
while ( tmpExec.Status == 0 ) {
|
||||
WScript.Sleep(100);
|
||||
}
|
||||
var clVersion = tmpExec.StdErr.ReadLine();
|
||||
WScript.echo( "#N \": BUILD_CL\\t\\t" +
|
||||
clVersion +
|
||||
"\" ENDL \\" );
|
||||
|
||||
//Getting BUILD_COMPILER
|
||||
if ( WScript.Arguments(0).toLowerCase().match("icl") ) {
|
||||
tmpExec = WshShell.Exec("icl -c empty.cpp ");
|
||||
while ( tmpExec.Status == 0 ) {
|
||||
WScript.Sleep(100);
|
||||
}
|
||||
WScript.echo( "#N \": BUILD_COMPILER\\t" +
|
||||
tmpExec.StdErr.ReadLine() +
|
||||
"\" ENDL \\" );
|
||||
} else {
|
||||
WScript.echo( "#N \": BUILD_COMPILER\\t\\t" +
|
||||
clVersion +
|
||||
"\" ENDL \\" );
|
||||
}
|
||||
tmpExec = WshShell.Exec("cmd /c del /F /Q empty.obj empty.cpp");
|
||||
}
|
||||
|
||||
//Getting BUILD_TARGET
|
||||
WScript.echo( "#N \": BUILD_TARGET\\t" +
|
||||
WScript.Arguments(1) +
|
||||
"\" ENDL \\" );
|
||||
|
||||
//Getting BUILD_COMMAND
|
||||
WScript.echo( "#N \": BUILD_COMMAND\\t" + WScript.Arguments(2) + "\" ENDL" );
|
||||
|
||||
//Getting __TBB_DATETIME and __TBB_VERSION_YMD
|
||||
var date = new Date();
|
||||
WScript.echo( "#define __TBB_DATETIME \"" + date.toUTCString() + "\"" );
|
||||
WScript.echo( "#define __TBB_VERSION_YMD " + date.getUTCFullYear() + ", " +
|
||||
(date.getUTCMonth() > 8 ? (date.getUTCMonth()+1):("0"+(date.getUTCMonth()+1))) +
|
||||
(date.getUTCDate() > 9 ? date.getUTCDate():("0"+date.getUTCDate())) );
|
|
@ -0,0 +1,30 @@
|
|||
<HTML>
|
||||
<BODY>
|
||||
|
||||
<H2>Overview</H2>
|
||||
This directory contains the Visual Studio* 2013 solution to build Intel® Threading Building Blocks.
|
||||
|
||||
|
||||
<H2>Files</H2>
|
||||
<DL>
|
||||
<DT><A HREF="makefile.sln">makefile.sln</A>
|
||||
<DD>Solution file.</DD>
|
||||
<DT><A HREF="tbb.vcxproj">tbb.vcxproj</A>
|
||||
<DD>Library project file.</DD>
|
||||
<DT><A HREF="tbbmalloc.vcxproj">tbbmalloc.vcxproj</A>
|
||||
<DD>Scalable allocator library project file.</DD>
|
||||
<DT><A HREF="tbbmalloc_proxy.vcxproj">tbbmalloc_proxy.vcxproj</A>
|
||||
<DD>Standard allocator replacement project file. </DD>
|
||||
</DL>
|
||||
|
||||
<HR>
|
||||
<A HREF="../index.html">Up to parent directory</A>
|
||||
<P></P>
|
||||
Copyright © 2017-2020 Intel Corporation. All Rights Reserved.
|
||||
<P></P>
|
||||
Intel and the Intel logo are trademarks of Intel Corporation
|
||||
or its subsidiaries in the U.S. and/or other countries.
|
||||
<p></p>
|
||||
* Other names and brands may be claimed as the property of others.
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -0,0 +1,80 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.40629.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8898CE0B-0BFB-45AE-AA71-83735ED2510D}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
index.html = index.html
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tbb", "tbb.vcxproj", "{F62787DD-1327-448B-9818-030062BCFAA5}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tbbmalloc", "tbbmalloc.vcxproj", "{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tbbmalloc_proxy", "tbbmalloc_proxy.vcxproj", "{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Debug|x64 = Debug|x64
|
||||
Debug-MT|Win32 = Debug-MT|Win32
|
||||
Debug-MT|x64 = Debug-MT|x64
|
||||
Release|Win32 = Release|Win32
|
||||
Release|x64 = Release|x64
|
||||
Release-MT|Win32 = Release-MT|Win32
|
||||
Release-MT|x64 = Release-MT|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Debug|x64.Build.0 = Debug|x64
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Debug-MT|Win32.ActiveCfg = Debug-MT|Win32
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Debug-MT|Win32.Build.0 = Debug-MT|Win32
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Debug-MT|x64.ActiveCfg = Debug-MT|x64
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Debug-MT|x64.Build.0 = Debug-MT|x64
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Release|Win32.Build.0 = Release|Win32
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Release|x64.ActiveCfg = Release|x64
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Release|x64.Build.0 = Release|x64
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Release-MT|Win32.ActiveCfg = Release-MT|Win32
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Release-MT|Win32.Build.0 = Release-MT|Win32
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Release-MT|x64.ActiveCfg = Release-MT|x64
|
||||
{F62787DD-1327-448B-9818-030062BCFAA5}.Release-MT|x64.Build.0 = Release-MT|x64
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Debug|x64.Build.0 = Debug|x64
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Debug-MT|Win32.ActiveCfg = Debug-MT|Win32
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Debug-MT|Win32.Build.0 = Debug-MT|Win32
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Debug-MT|x64.ActiveCfg = Debug-MT|x64
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Debug-MT|x64.Build.0 = Debug-MT|x64
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Release|Win32.Build.0 = Release|Win32
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Release|x64.ActiveCfg = Release|x64
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Release|x64.Build.0 = Release|x64
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Release-MT|Win32.ActiveCfg = Release-MT|Win32
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Release-MT|Win32.Build.0 = Release-MT|Win32
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Release-MT|x64.ActiveCfg = Release-MT|x64
|
||||
{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}.Release-MT|x64.Build.0 = Release-MT|x64
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Debug|x64.Build.0 = Debug|x64
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Debug-MT|Win32.ActiveCfg = Debug-MT|Win32
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Debug-MT|Win32.Build.0 = Debug-MT|Win32
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Debug-MT|x64.ActiveCfg = Debug-MT|x64
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Debug-MT|x64.Build.0 = Debug-MT|x64
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Release|Win32.Build.0 = Release|Win32
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Release|x64.ActiveCfg = Release|x64
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Release|x64.Build.0 = Release|x64
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Release-MT|Win32.ActiveCfg = Release-MT|Win32
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Release-MT|Win32.Build.0 = Release-MT|Win32
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Release-MT|x64.ActiveCfg = Release-MT|x64
|
||||
{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}.Release-MT|x64.Build.0 = Release-MT|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,697 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug-MT|Win32">
|
||||
<Configuration>Debug-MT</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug-MT|x64">
|
||||
<Configuration>Debug-MT</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release-MT|Win32">
|
||||
<Configuration>Release-MT</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release-MT|x64">
|
||||
<Configuration>Release-MT</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{F62787DD-1327-448B-9818-030062BCFAA5}</ProjectGuid>
|
||||
<RootNamespace>tbb</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectName)_debug</TargetName>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(ProjectName)_debug</TargetName>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectName)_debug</TargetName>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(ProjectName)_debug</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MDd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBB_BUILD=1 /W4 /I../../src /I../../src/rml/include /I../../include</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbb.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbb_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MDd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBB_BUILD=1 /W4 /I../../src /I../../src/rml/include /I../../include</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ShowIncludes>false</ShowIncludes>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbb.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbb_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MD /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBB_BUILD=1 /W4 /I../../src /I../../src/rml/include /I../../include</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbb.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbb.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MD /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBB_BUILD=1 /W4 /I../../src /I../../src/rml/include /I../../include</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbb.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbb.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MTd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBB_BUILD=1 /W4 /I../../src /I../../src/rml/include /I../../include</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbb.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbb_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MTd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBB_BUILD=1 /W4 /I../../src /I../../src/rml/include /I../../include</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ShowIncludes>false</ShowIncludes>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbb.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbb_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MT /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBB_BUILD=1 /W4 /I../../src /I../../src/rml/include /I../../include</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbb.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbb.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MT /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBB_BUILD=1 /W4 /I../../src /I../../src/rml/include /I../../include</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbb.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbb.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<MASM Include="..\..\src\tbb\ia32-masm\atomic_support.asm">
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">/coff /Zi</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">true</ExcludedFromBuild>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/coff /Zi</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">/coff</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">true</ExcludedFromBuild>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/coff</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||
</MASM>
|
||||
<CustomBuild Include="..\..\src\tbb\intel64-masm\atomic_support.asm">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">building atomic_support.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DUSE_FRAME_POINTER /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/atomic_support.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">building atomic_support.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DUSE_FRAME_POINTER /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/atomic_support.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">building atomic_support.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/atomic_support.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">building atomic_support.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/atomic_support.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="..\..\src\tbb\intel64-masm\intel64_misc.asm">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">building intel64_misc.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DUSE_FRAME_POINTER /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/intel64_misc.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">building intel64_misc.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DUSE_FRAME_POINTER /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/intel64_misc.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">building intel64_misc.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/intel64_misc.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">building intel64_misc.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/intel64_misc.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
</CustomBuild>
|
||||
<MASM Include="..\..\src\tbb\ia32-masm\itsx.asm">
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">/coff /Zi</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">true</ExcludedFromBuild>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/coff /Zi</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">/coff</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">true</ExcludedFromBuild>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/coff</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||
</MASM>
|
||||
<CustomBuild Include="..\..\src\tbb\intel64-masm\itsx.asm">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">building itsx.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DUSE_FRAME_POINTER /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/itsx.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">building itsx.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DUSE_FRAME_POINTER /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/itsx.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">building itsx.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/itsx.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">building itsx.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/itsx.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
</CustomBuild>
|
||||
<MASM Include="..\..\src\tbb\ia32-masm\lock_byte.asm">
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">/coff /Zi</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">true</ExcludedFromBuild>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">/coff /Zi</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/coff /Zi</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">/coff /Zi</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">/coff</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">true</ExcludedFromBuild>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/coff</AdditionalOptions>
|
||||
<UseSafeExceptionHandlers Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</UseSafeExceptionHandlers>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||
</MASM>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="..\..\src\tbb\win32-tbb-export.def">
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">cl /nologo /TC /EP ../../src/tbb/win32-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 /I../../src /I../../include >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">cl /nologo /TC /EP ../../src/tbb/win32-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cl /nologo /TC /EP ../../src/tbb/win32-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 /I../../src /I../../include >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">cl /nologo /TC /EP ../../src/tbb/win32-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">cl /nologo /TC /EP ../../src/tbb/win32-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 /I../../src /I../../include >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">cl /nologo /TC /EP ../../src/tbb/win32-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">cl /nologo /TC /EP ../../src/tbb/win32-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 /I../../src /I../../include >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">cl /nologo /TC /EP ../../src/tbb/win32-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="..\..\src\tbb\win64-tbb-export.def">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">cl /nologo /TC /EP ../../src/tbb/win64-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">cl /nologo /TC /EP ../../src/tbb/win64-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 /I../../src /I../../include >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cl /nologo /TC /EP ../../src/tbb/win64-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">cl /nologo /TC /EP ../../src/tbb/win64-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 /I../../src /I../../include >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">cl /nologo /TC /EP ../../src/tbb/win64-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">cl /nologo /TC /EP ../../src/tbb/win64-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 /I../../src /I../../include >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">cl /nologo /TC /EP ../../src/tbb/win64-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">generating tbb.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">cl /nologo /TC /EP ../../src/tbb/win64-tbb-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBB_BUILD=1 /I../../src /I../../include >"$(IntDir)tbb.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)tbb.def;%(Outputs)</Outputs>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\src\tbb\concurrent_hash_map.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\concurrent_queue.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\concurrent_vector.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\dynamic_link.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\itt_notify.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\cache_aligned_allocator.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\pipeline.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\queuing_mutex.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\queuing_rw_mutex.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\reader_writer_lock.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\spin_rw_mutex.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\x86_rtm_rw_mutex.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\spin_mutex.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\critical_section.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\mutex.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\recursive_mutex.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\condition_variable.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\tbb_thread.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\concurrent_monitor.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\semaphore.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\private_server.cpp" />
|
||||
<ClCompile Include="..\..\src\rml\client\rml_tbb.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\tbb_misc.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\tbb_misc_ex.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\task.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\task_group_context.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\governor.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\market.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\arena.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\scheduler.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\observer_proxy.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\tbb_statistics.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\tbb_main.cpp" />
|
||||
<ClCompile Include="..\..\src\old\concurrent_vector_v2.cpp" />
|
||||
<ClCompile Include="..\..\src\old\concurrent_queue_v2.cpp" />
|
||||
<ClCompile Include="..\..\src\old\spin_rw_mutex_v2.cpp" />
|
||||
<ClCompile Include="..\..\src\old\task_v2.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\include\tbb\internal\_concurrent_queue_impl.h" />
|
||||
<ClInclude Include="..\..\include\tbb\_tbb_windef.h" />
|
||||
<ClInclude Include="..\..\include\tbb\aligned_space.h" />
|
||||
<ClInclude Include="..\..\include\tbb\atomic.h" />
|
||||
<ClInclude Include="..\..\include\tbb\blocked_range.h" />
|
||||
<ClInclude Include="..\..\include\tbb\blocked_range2d.h" />
|
||||
<ClInclude Include="..\..\include\tbb\blocked_range3d.h" />
|
||||
<ClInclude Include="..\..\include\tbb\blocked_rangeNd.h" />
|
||||
<ClInclude Include="..\..\include\tbb\cache_aligned_allocator.h" />
|
||||
<ClInclude Include="..\..\include\tbb\combinable.h" />
|
||||
<ClInclude Include="..\..\include\tbb\concurrent_hash_map.h" />
|
||||
<ClInclude Include="..\..\src\tbb\concurrent_monitor.h" />
|
||||
<ClInclude Include="..\..\include\tbb\concurrent_priority_queue.h" />
|
||||
<ClInclude Include="..\..\include\tbb\concurrent_queue.h" />
|
||||
<ClInclude Include="..\..\src\old\concurrent_queue_v2.h" />
|
||||
<ClInclude Include="..\..\include\tbb\concurrent_vector.h" />
|
||||
<ClInclude Include="..\..\src\old\concurrent_vector_v2.h" />
|
||||
<ClInclude Include="..\..\include\tbb\critical_section.h" />
|
||||
<ClInclude Include="..\..\src\tbb\dynamic_link.h" />
|
||||
<ClInclude Include="..\..\include\tbb\enumerable_thread_specific.h" />
|
||||
<ClInclude Include="..\..\src\tbb\gate.h" />
|
||||
<ClInclude Include="..\..\src\test\harness.h" />
|
||||
<ClInclude Include="..\..\src\test\harness_allocator.h" />
|
||||
<ClInclude Include="..\..\src\test\harness_assert.h" />
|
||||
<ClInclude Include="..\..\src\test\harness_bad_expr.h" />
|
||||
<ClInclude Include="..\..\src\test\harness_barrier.h" />
|
||||
<ClInclude Include="..\..\src\test\harness_concurrency_tracker.h" />
|
||||
<ClInclude Include="..\..\src\test\harness_cpu.h" />
|
||||
<ClInclude Include="..\..\src\test\harness_eh.h" />
|
||||
<ClInclude Include="..\..\src\test\harness_iterator.h" />
|
||||
<ClInclude Include="..\..\src\test\harness_m128.h" />
|
||||
<ClInclude Include="..\..\src\test\harness_memory.h" />
|
||||
<ClInclude Include="..\..\src\test\harness_report.h" />
|
||||
<ClInclude Include="..\..\include\tbb\machine\ibm_aix51.h" />
|
||||
<ClInclude Include="..\..\src\tbb\itt_notify.h" />
|
||||
<ClInclude Include="..\..\include\tbb\machine\linux_common.h" />
|
||||
<ClInclude Include="..\..\include\tbb\machine\linux_ia32.h" />
|
||||
<ClInclude Include="..\..\include\tbb\machine\linux_ia64.h" />
|
||||
<ClInclude Include="..\..\include\tbb\machine\linux_intel64.h" />
|
||||
<ClInclude Include="..\..\include\tbb\machine\mac_ppc.h" />
|
||||
<ClInclude Include="..\..\include\tbb\mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\null_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\null_rw_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_do.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_for.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_for_each.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_invoke.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_reduce.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_scan.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_sort.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_while.h" />
|
||||
<ClInclude Include="..\..\include\tbb\partitioner.h" />
|
||||
<ClInclude Include="..\..\include\tbb\pipeline.h" />
|
||||
<ClInclude Include="..\..\include\tbb\compat\ppl.h" />
|
||||
<ClInclude Include="..\..\include\tbb\queuing_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\queuing_rw_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\reader_writer_lock.h" />
|
||||
<ClInclude Include="..\..\include\tbb\recursive_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\scalable_allocator.h" />
|
||||
<ClInclude Include="..\..\src\tbb\semaphore.h" />
|
||||
<ClInclude Include="..\..\include\tbb\spin_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\spin_rw_mutex.h" />
|
||||
<ClInclude Include="..\..\src\old\spin_rw_mutex_v2.h" />
|
||||
<ClInclude Include="..\..\include\tbb\task.h" />
|
||||
<ClInclude Include="..\..\include\tbb\task_group.h" />
|
||||
<ClInclude Include="..\..\include\tbb\task_scheduler_init.h" />
|
||||
<ClInclude Include="..\..\include\tbb\task_scheduler_observer.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_allocator.h" />
|
||||
<ClInclude Include="..\..\src\tbb\tbb_assert_impl.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_config.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_exception.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_machine.h" />
|
||||
<ClInclude Include="..\..\src\tbb\tbb_misc.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_profiling.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_stddef.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_thread.h" />
|
||||
<ClInclude Include="..\..\src\tbb\tbb_version.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbbmalloc_proxy.h" />
|
||||
<ClInclude Include="..\..\src\test\test_allocator.h" />
|
||||
<ClInclude Include="..\..\src\test\test_allocator_STL.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tick_count.h" />
|
||||
<ClInclude Include="..\..\src\tbb\tls.h" />
|
||||
<ClInclude Include="..\..\include\tbb\machine\windows_ia32.h" />
|
||||
<ClInclude Include="..\..\include\tbb\machine\windows_intel64.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="..\..\src\tbb\tbb_resource.rc">
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -0,0 +1,559 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug-MT|Win32">
|
||||
<Configuration>Debug-MT</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug-MT|x64">
|
||||
<Configuration>Debug-MT</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release-MT|Win32">
|
||||
<Configuration>Release-MT</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release-MT|x64">
|
||||
<Configuration>Release-MT</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{B15F131E-328A-4D42-ADC2-9FF4CA6306D8}</ProjectGuid>
|
||||
<RootNamespace>tbbmalloc</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectName)_debug</TargetName>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(ProjectName)_debug</TargetName>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectName)_debug</TargetName>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(ProjectName)_debug</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MDd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc /I.</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbbmalloc.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MDd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc /I.</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ShowIncludes>false</ShowIncludes>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbbmalloc.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MD /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc /I.</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbbmalloc.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MD /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc /I.</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbbmalloc.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MTd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc /I.</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbbmalloc.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MTd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc /I.</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ShowIncludes>false</ShowIncludes>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbbmalloc.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MT /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc /I.</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbbmalloc.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MT /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc /I.</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DEF:"$(IntDir)tbbmalloc.def" %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="..\..\src\tbb\intel64-masm\atomic_support.asm">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">building atomic_support.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DUSE_FRAME_POINTER /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/atomic_support.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">building atomic_support.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DUSE_FRAME_POINTER /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/atomic_support.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">building atomic_support.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/atomic_support.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">building atomic_support.obj</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">ml64 /Fo"$(IntDir)%(FileName).obj" /DEM64T=1 /c /Zi ../../src/tbb/intel64-masm/atomic_support.asm</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(FileName).obj;%(Outputs)</Outputs>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="..\..\src\tbbmalloc\win32-tbbmalloc-export.def">
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">cl /nologo /TC /EP ../../src/tbbmalloc/win32-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">cl /nologo /TC /EP ../../src/tbbmalloc/win32-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cl /nologo /TC /EP ../../src/tbbmalloc/win32-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">cl /nologo /TC /EP ../../src/tbbmalloc/win32-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">cl /nologo /TC /EP ../../src/tbbmalloc/win32-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">cl /nologo /TC /EP ../../src/tbb/win32-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">cl /nologo /TC /EP ../../src/tbbmalloc/win32-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">cl /nologo /TC /EP ../../src/tbb/win32-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="..\..\src\tbbmalloc\win64-tbbmalloc-export.def">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">cl /nologo /TC /EP ../../src/tbb/win64-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">cl /nologo /TC /EP ../../src/tbbmalloc/win64-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cl /nologo /TC /EP ../../src/tbb/win64-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">cl /nologo /TC /EP ../../src/tbbmalloc/win64-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">cl /nologo /TC /EP ../../src/tbb/win64-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">cl /nologo /TC /EP ../../src/tbbmalloc/win64-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">cl /nologo /TC /EP ../../src/tbb/win64-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">generating tbbmalloc.def file</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">cl /nologo /TC /EP ../../src/tbbmalloc/win64-tbbmalloc-export.def /DTBB_USE_DEBUG /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 /D__TBBMALLOC_BUILD=1 >"$(IntDir)tbbmalloc.def"
|
||||
</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)tbbmalloc.def;%(Outputs)</Outputs>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\src\tbbmalloc\backend.cpp" />
|
||||
<ClCompile Include="..\..\src\tbbmalloc\large_objects.cpp" />
|
||||
<ClCompile Include="..\..\src\tbbmalloc\backref.cpp" />
|
||||
<ClCompile Include="..\..\src\tbbmalloc\tbbmalloc.cpp" />
|
||||
<ClCompile Include="..\..\src\tbb\itt_notify.cpp" />
|
||||
<ClCompile Include="..\..\src\tbbmalloc\frontend.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\include\tbb\internal\_concurrent_queue_impl.h" />
|
||||
<ClInclude Include="..\..\include\tbb\_tbb_windef.h" />
|
||||
<ClInclude Include="..\..\include\tbb\aligned_space.h" />
|
||||
<ClInclude Include="..\..\include\tbb\atomic.h" />
|
||||
<ClInclude Include="..\..\include\tbb\blocked_range.h" />
|
||||
<ClInclude Include="..\..\include\tbb\blocked_range2d.h" />
|
||||
<ClInclude Include="..\..\include\tbb\blocked_range3d.h" />
|
||||
<ClInclude Include="..\..\include\tbb\blocked_rangeNd.h" />
|
||||
<ClInclude Include="..\..\include\tbb\cache_aligned_allocator.h" />
|
||||
<ClInclude Include="..\..\include\tbb\combinable.h" />
|
||||
<ClInclude Include="..\..\include\tbb\concurrent_hash_map.h" />
|
||||
<ClInclude Include="..\..\include\tbb\concurrent_queue.h" />
|
||||
<ClInclude Include="..\..\include\tbb\concurrent_vector.h" />
|
||||
<ClInclude Include="..\..\include\tbb\critical_section.h" />
|
||||
<ClInclude Include="..\..\src\tbbmalloc\Customize.h" />
|
||||
<ClInclude Include="..\..\include\tbb\enumerable_thread_specific.h" />
|
||||
<ClInclude Include="..\..\src\tbbmalloc\LifoList.h" />
|
||||
<ClInclude Include="..\..\src\tbbmalloc\MapMemory.h" />
|
||||
<ClInclude Include="..\..\include\tbb\mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\null_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\null_rw_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_do.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_for.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_for_each.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_invoke.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_reduce.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_scan.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_sort.h" />
|
||||
<ClInclude Include="..\..\include\tbb\parallel_while.h" />
|
||||
<ClInclude Include="..\..\include\tbb\partitioner.h" />
|
||||
<ClInclude Include="..\..\include\tbb\pipeline.h" />
|
||||
<ClInclude Include="..\..\src\tbbmalloc\proxy.h" />
|
||||
<ClInclude Include="..\..\include\tbb\queuing_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\queuing_rw_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\recursive_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\scalable_allocator.h" />
|
||||
<ClInclude Include="..\..\include\tbb\spin_mutex.h" />
|
||||
<ClInclude Include="..\..\include\tbb\spin_rw_mutex.h" />
|
||||
<ClInclude Include="..\..\src\tbbmalloc\Statistics.h" />
|
||||
<ClInclude Include="..\..\include\tbb\task.h" />
|
||||
<ClInclude Include="..\..\include\tbb\task_group.h" />
|
||||
<ClInclude Include="..\..\include\tbb\task_scheduler_init.h" />
|
||||
<ClInclude Include="..\..\include\tbb\task_scheduler_observer.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_allocator.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_config.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_exception.h" />
|
||||
<ClInclude Include="..\..\src\tbbmalloc\tbb_function_replacement.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_machine.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_profiling.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_stddef.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_thread.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbb_version.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbbmalloc_proxy.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tick_count.h" />
|
||||
<ClInclude Include="..\..\src\tbbmalloc\TypeDefinitions.h" />
|
||||
<ClInclude Include="..\..\include\tbb\machine\windows_ia32.h" />
|
||||
<ClInclude Include="..\..\include\tbb\machine\windows_intel64.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="..\..\src\tbbmalloc\tbbmalloc.rc">
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="tbb.vcxproj">
|
||||
<Project>{f62787dd-1327-448b-9818-030062bcfaa5}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -0,0 +1,425 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug-MT|Win32">
|
||||
<Configuration>Debug-MT</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug-MT|x64">
|
||||
<Configuration>Debug-MT</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release-MT|Win32">
|
||||
<Configuration>Release-MT</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release-MT|x64">
|
||||
<Configuration>Release-MT</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{02F61511-D5B6-46E6-B4BB-DEAA96E6BCC7}</ProjectGuid>
|
||||
<RootNamespace>tbbmalloc_proxy</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectName)_debug</TargetName>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">$(ProjectName)_debug</TargetName>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectName)_debug</TargetName>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">$(ProjectName)_debug</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MDd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /W4 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_proxy_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MDd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /W4 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<ExceptionHandling>
|
||||
</ExceptionHandling>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ShowIncludes>false</ShowIncludes>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_proxy_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MD /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /W4 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>
|
||||
</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_proxy.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MD /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /W4 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>
|
||||
</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_proxy.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MTd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /W4 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_proxy_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MTd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /W4 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<ExceptionHandling>
|
||||
</ExceptionHandling>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ShowIncludes>false</ShowIncludes>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_proxy_debug.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MT /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /W4 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>
|
||||
</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_proxy.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions> /c /MT /O2 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 /D__TBB_LEGACY_MODE=1 /D__TBB_LIB_NAME=tbb.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /W4 /D__TBBMALLOC_BUILD=1 /I../../src /I../../src/rml/include /I../../include /I../../src/tbbmalloc /I../../src/tbbmalloc</AdditionalOptions>
|
||||
<AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>
|
||||
</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)tbbmalloc_proxy.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\src\tbbmalloc\tbb_function_replacement.h" />
|
||||
<ClInclude Include="..\..\include\tbb\tbbmalloc_proxy.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="..\..\src\tbbmalloc\tbbmalloc.rc">
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-MT|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-MT|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-MT|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">/I../../src /I../../include /DDO_ITT_NOTIFY /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0400 %(AdditionalOptions)</AdditionalOptions>
|
||||
</ResourceCompile>
|
||||
<ClCompile Include="..\..\src\tbbmalloc\proxy.cpp" />
|
||||
<ClCompile Include="..\..\src\tbbmalloc\tbb_function_replacement.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="tbbmalloc.vcxproj">
|
||||
<Project>{b15f131e-328a-4d42-adc2-9ff4ca6306d8}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -0,0 +1 @@
|
|||
#define __TBB_VERSION_STRINGS(N) "Empty"
|
|
@ -0,0 +1,162 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Define compiler-specific variables.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting compiler flags.
|
||||
#------------------------------------------------------------------------------
|
||||
CPLUS ?= cl /nologo
|
||||
LINK_FLAGS = /link /nologo
|
||||
LIB_LINK_FLAGS=/link /nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DYNAMICBASE /NXCOMPAT
|
||||
|
||||
ifneq (,$(stdver))
|
||||
CXX_STD_FLAGS = /std:$(stdver)
|
||||
endif
|
||||
|
||||
ifeq ($(arch), ia32)
|
||||
LIB_LINK_FLAGS += /SAFESEH
|
||||
endif
|
||||
|
||||
ifeq ($(runtime), vc_mt)
|
||||
MS_CRT_KEY = /MT$(if $(findstring debug,$(cfg)),d)
|
||||
else
|
||||
MS_CRT_KEY = /MD$(if $(findstring debug,$(cfg)),d)
|
||||
endif
|
||||
EH_FLAGS = $(if $(no_exceptions),/EHs-,/EHsc /GR)
|
||||
|
||||
# UWD binaries have to use static CRT linkage
|
||||
ifeq ($(target_app), uwd)
|
||||
MS_CRT_KEY = /MT$(if $(findstring debug,$(cfg)),d)
|
||||
endif
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = $(MS_CRT_KEY) /O2 /Zi $(EH_FLAGS) /Zc:forScope /Zc:wchar_t /D__TBB_LIB_NAME=$(TBB.LIB)
|
||||
ASM_FLAGS =
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = $(MS_CRT_KEY) /Od /Ob0 /Zi $(EH_FLAGS) /Zc:forScope /Zc:wchar_t /DTBB_USE_DEBUG /D__TBB_LIB_NAME=$(TBB.LIB)
|
||||
ASM_FLAGS = /DUSE_FRAME_POINTER
|
||||
endif
|
||||
|
||||
ZW_KEY = /ZW:nostdlib
|
||||
|
||||
# These flags are general for Windows* universal applications
|
||||
ifneq (,$(target_app))
|
||||
CPLUS_FLAGS += $(ZW_KEY) /D "_UNICODE" /D "UNICODE" /D "WINAPI_FAMILY=WINAPI_FAMILY_APP"
|
||||
endif
|
||||
|
||||
ifeq ($(target_app), win8ui)
|
||||
_WIN32_WINNT = 0x0602
|
||||
else ifneq (,$(filter $(target_app),uwp uwd))
|
||||
_WIN32_WINNT = 0x0A00
|
||||
LIB_LINK_FLAGS += /NODEFAULTLIB:kernel32.lib OneCore.lib
|
||||
else
|
||||
CPLUS_FLAGS += /DDO_ITT_NOTIFY
|
||||
endif
|
||||
ifeq ($(target_mode), store)
|
||||
# it is necessary to source vcvars with 'store' argument in production
|
||||
LIB_LINK_FLAGS += /APPCONTAINER
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += /GS
|
||||
|
||||
COMPILE_ONLY = /c
|
||||
PREPROC_ONLY = /TP /EP
|
||||
INCLUDE_KEY = /I
|
||||
DEFINE_KEY = /D
|
||||
OUTPUT_KEY = /Fe
|
||||
OUTPUTOBJ_KEY = /Fo
|
||||
WARNING_AS_ERROR_KEY = /WX
|
||||
WARNING_SUPPRESS = $(if $(no_exceptions),/wd4530 /wd4577)
|
||||
BIGOBJ_KEY = /bigobj
|
||||
|
||||
ifeq ($(runtime),vc7.1)
|
||||
WARNING_KEY = /W3
|
||||
else
|
||||
WARNING_KEY = /W4
|
||||
OPENMP_FLAG = /openmp
|
||||
endif
|
||||
|
||||
DYLIB_KEY = /DLL
|
||||
EXPORT_KEY = /DEF:
|
||||
NODEFAULTLIB_KEY = /Zl
|
||||
NOINTRINSIC_KEY = /Oi-
|
||||
|
||||
INCLUDE_TEST_HEADERS = /FI$(tbb_root)/src/test/harness_preload.h
|
||||
|
||||
ifeq ($(runtime),vc8)
|
||||
WARNING_KEY += /Wp64
|
||||
CPLUS_FLAGS += /D_USE_RTM_VERSION
|
||||
endif
|
||||
|
||||
# Since VS2012, VC++ provides /volatile option to control semantics of volatile variables.
|
||||
# We want to use strict ISO semantics in the library and tests
|
||||
ifeq (ok,$(call detect_js,/minversion cl 17))
|
||||
CPLUS_FLAGS += /volatile:iso
|
||||
endif
|
||||
|
||||
# Since VS2013, VC++ uses the same .pdb file for different sources so we need
|
||||
# to add /FS (Force Synchronous PDB Writes)
|
||||
ifeq (ok,$(call detect_js,/minversion cl 18))
|
||||
CPLUS_FLAGS += /FS
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE \
|
||||
/D_WIN32_WINNT=$(_WIN32_WINNT)
|
||||
C_FLAGS = $(subst $(ZW_KEY),,$(subst $(EH_FLAGS),,$(CPLUS_FLAGS)))
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting compiler flags.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASSEMBLY_SOURCE=$(arch)-masm
|
||||
ifeq (intel64,$(arch))
|
||||
ASM=ml64 /nologo
|
||||
ASM_FLAGS += /DEM64T=1 /c /Zi
|
||||
TBB_ASM.OBJ = atomic_support.obj intel64_misc.obj itsx.obj
|
||||
MALLOC_ASM.OBJ = atomic_support.obj
|
||||
else
|
||||
ifeq (armv7,$(arch))
|
||||
ASM=
|
||||
TBB_ASM.OBJ=
|
||||
else
|
||||
ASM=ml /nologo
|
||||
ASM_FLAGS += /c /coff /Zi /safeseh
|
||||
TBB_ASM.OBJ = atomic_support.obj lock_byte.obj itsx.obj
|
||||
endif
|
||||
endif
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS)
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of define compiler-specific variables.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,137 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Overriding settings from windows.inc
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
SLASH= $(strip \)
|
||||
OBJ = o
|
||||
LIBEXT = dll # MinGW allows linking with DLLs directly
|
||||
|
||||
TBB.RES =
|
||||
MALLOC.RES =
|
||||
RML.RES =
|
||||
TBB.MANIFEST =
|
||||
MALLOC.MANIFEST =
|
||||
RML.MANIFEST =
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
TBB.LST = $(tbb_root)/src/tbb/lin32-tbb-export.lst
|
||||
else
|
||||
TBB.LST = $(tbb_root)/src/tbb/win64-gcc-tbb-export.lst
|
||||
endif
|
||||
MALLOC.DEF = $(MALLOC_ROOT)/$(def_prefix)-gcc-tbbmalloc-export.def
|
||||
|
||||
LINK_TBB.LIB = $(TBB.LIB)
|
||||
# no TBB proxy for the configuration
|
||||
PROXY.LIB =
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of overridden settings
|
||||
#------------------------------------------------------------------------------
|
||||
# Compiler-specific variables
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
CPLUS ?= g++
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY =
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
TEST_WARNING_KEY = -Wextra -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -Wno-uninitialized
|
||||
WARNING_SUPPRESS = -Wno-parentheses -Wno-uninitialized -Wno-non-virtual-dtor
|
||||
DYLIB_KEY = -shared
|
||||
LIBDL =
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBS = -lpsapi
|
||||
BIGOBJ_KEY = -Wa,-mbig-obj
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of compiler-specific variables
|
||||
#------------------------------------------------------------------------------
|
||||
# Command lines
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
LINK_FLAGS = -Wl,--enable-auto-import
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY)
|
||||
|
||||
# gcc 4.8 and later support RTM intrinsics, but require command line switch to enable them
|
||||
ifeq (ok,$(call detect_js,/minversion gcc 4.8))
|
||||
RTM_KEY = -mrtm
|
||||
endif
|
||||
|
||||
# gcc 6.0 and later have -flifetime-dse option that controls
|
||||
# elimination of stores done outside the object lifetime
|
||||
ifeq (ok,$(call detect_js,/minversion gcc 6.0))
|
||||
# keep pre-contruction stores for zero initialization
|
||||
DSE_KEY = -flifetime-dse=1
|
||||
endif
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = -g -O2
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -g -O0 -DTBB_USE_DEBUG
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += -DUSE_WINTHREAD
|
||||
CPLUS_FLAGS += -D_WIN32_WINNT=$(_WIN32_WINNT)
|
||||
|
||||
# MinGW specific
|
||||
CPLUS_FLAGS += -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads
|
||||
|
||||
CONLY = gcc
|
||||
debugger = gdb
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
CPLUS_FLAGS += -m64 $(RTM_KEY)
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
CPLUS_FLAGS += -m32 -march=i686 $(RTM_KEY)
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
# For examples
|
||||
export UNIXMODE = 1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of command lines
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
ASM=
|
||||
ASM_FLAGS=
|
||||
TBB_ASM.OBJ=
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,184 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Define compiler-specific variables.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting default configuration to release.
|
||||
#------------------------------------------------------------------------------
|
||||
cfg ?= release
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting default configuration to release.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting compiler flags.
|
||||
#------------------------------------------------------------------------------
|
||||
CPLUS ?= icl /nologo $(VCCOMPAT_FLAG)
|
||||
LINK_FLAGS = /link /nologo
|
||||
LIB_LINK_FLAGS= /link /nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DYNAMICBASE /NXCOMPAT
|
||||
|
||||
ifeq ($(arch), ia32)
|
||||
LIB_LINK_FLAGS += /SAFESEH
|
||||
endif
|
||||
|
||||
ifneq (,$(stdver))
|
||||
CXX_STD_FLAGS = /Qstd=$(stdver)
|
||||
endif
|
||||
|
||||
# ICC 12.0 and higher provide Intel(R) Cilk(TM) Plus
|
||||
ifeq (ok,$(call detect_js,/minversion icl 12))
|
||||
CILK_AVAILABLE = yes
|
||||
endif
|
||||
|
||||
# ICC 17.0.4 and higher provide support for VS2017
|
||||
ifeq (ok,$(call detect_js,/minversion icl 17 4))
|
||||
VS2017_SUPPORT = yes
|
||||
endif
|
||||
|
||||
# ICC 19.0.4 and higher provide support for VS2019
|
||||
ifeq (ok,$(call detect_js,/minversion icl 19 4))
|
||||
VS2019_SUPPORT = yes
|
||||
endif
|
||||
|
||||
ifeq ($(runtime), vc_mt)
|
||||
MS_CRT_KEY = /MT$(if $(findstring debug,$(cfg)),d)
|
||||
else
|
||||
MS_CRT_KEY = /MD$(if $(findstring debug,$(cfg)),d)
|
||||
endif
|
||||
EH_FLAGS = $(if $(no_exceptions),/EHs-,/EHsc /GR)
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = $(MS_CRT_KEY) /O2 /Zi /Qopt-report-embed- $(EH_FLAGS) /Zc:forScope /Zc:wchar_t /D__TBB_LIB_NAME=$(TBB.LIB)
|
||||
ASM_FLAGS =
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = $(MS_CRT_KEY) /Od /Ob0 /Zi $(EH_FLAGS) /Zc:forScope /Zc:wchar_t /DTBB_USE_DEBUG /D__TBB_LIB_NAME=$(TBB.LIB)
|
||||
ASM_FLAGS = /DUSE_FRAME_POINTER
|
||||
endif
|
||||
CPLUS_FLAGS += /GS
|
||||
|
||||
COMPILE_ONLY = /c /QMMD
|
||||
# PREPROC_ONLY should really use /TP which applies to all files in the command line.
|
||||
# But with /TP, ICL does not preprocess *.def files.
|
||||
PREPROC_ONLY = /EP /Tp
|
||||
INCLUDE_KEY = /I
|
||||
DEFINE_KEY = /D
|
||||
OUTPUT_KEY = /Fe
|
||||
OUTPUTOBJ_KEY = /Fo
|
||||
WARNING_AS_ERROR_KEY = /WX
|
||||
WARNING_KEY = /W3
|
||||
WARNING_SUPPRESS = $(if $(no_exceptions),/wd583)
|
||||
DYLIB_KEY = /DLL
|
||||
EXPORT_KEY = /DEF:
|
||||
NODEFAULTLIB_KEY = /Zl
|
||||
NOINTRINSIC_KEY = /Oi-
|
||||
BIGOBJ_KEY = /bigobj
|
||||
INCLUDE_TEST_HEADERS = /FI$(tbb_root)/src/test/harness_preload.h
|
||||
|
||||
|
||||
ifneq (,$(codecov))
|
||||
CPLUS_FLAGS += /Qprof-genx
|
||||
else
|
||||
CPLUS_FLAGS += /DDO_ITT_NOTIFY
|
||||
endif
|
||||
|
||||
OPENMP_FLAG = /Qopenmp
|
||||
CPLUS_FLAGS += /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE \
|
||||
/D_WIN32_WINNT=$(_WIN32_WINNT)
|
||||
|
||||
ifeq ($(runtime),vc8)
|
||||
CPLUS_FLAGS += /D_USE_RTM_VERSION
|
||||
endif
|
||||
|
||||
|
||||
C_FLAGS = $(subst $(EH_FLAGS),,$(CPLUS_FLAGS))
|
||||
|
||||
VCVERSION:=$(runtime)
|
||||
VCCOMPAT_FLAG ?= $(if $(findstring vc7.1, $(VCVERSION)),/Qvc7.1)
|
||||
ifeq ($(VCCOMPAT_FLAG),)
|
||||
VCCOMPAT_FLAG := $(if $(findstring vc8, $(VCVERSION)),/Qvc8)
|
||||
endif
|
||||
ifeq ($(VCCOMPAT_FLAG),)
|
||||
VCCOMPAT_FLAG := $(if $(findstring vc_mt, $(VCVERSION)),/Qvc14)
|
||||
endif
|
||||
ifeq ($(VCCOMPAT_FLAG),)
|
||||
VCCOMPAT_FLAG := $(if $(findstring vc9, $(VCVERSION)),/Qvc9)
|
||||
endif
|
||||
ifeq ($(VCCOMPAT_FLAG),)
|
||||
VCCOMPAT_FLAG := $(if $(findstring vc10, $(VCVERSION)),/Qvc10)
|
||||
endif
|
||||
ifeq ($(VCCOMPAT_FLAG),)
|
||||
VCCOMPAT_FLAG := $(if $(findstring vc11, $(VCVERSION)),/Qvc11)
|
||||
endif
|
||||
ifeq ($(VCCOMPAT_FLAG),)
|
||||
VCCOMPAT_FLAG := $(if $(findstring vc12, $(VCVERSION)),/Qvc12)
|
||||
endif
|
||||
ifeq ($(VCCOMPAT_FLAG),)
|
||||
VCCOMPAT_FLAG := $(if $(findstring vc14, $(VCVERSION)),/Qvc14)
|
||||
ifeq ($(VS2017_SUPPORT),yes)
|
||||
ifneq (,$(findstring vc14.1, $(VCVERSION)))
|
||||
VCCOMPAT_FLAG := /Qvc14.1
|
||||
endif
|
||||
endif
|
||||
ifeq ($(VS2019_SUPPORT),yes)
|
||||
ifneq (,$(findstring vc14.2, $(VCVERSION)))
|
||||
VCCOMPAT_FLAG := /Qvc14.2
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ifeq ($(VCCOMPAT_FLAG),)
|
||||
$(error VC version not detected correctly: $(VCVERSION) )
|
||||
endif
|
||||
export VCCOMPAT_FLAG
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting compiler flags.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASSEMBLY_SOURCE=$(arch)-masm
|
||||
ifeq (intel64,$(arch))
|
||||
ASM=ml64 /nologo
|
||||
ASM_FLAGS += /DEM64T=1 /c /Zi
|
||||
TBB_ASM.OBJ = atomic_support.obj intel64_misc.obj itsx.obj
|
||||
MALLOC_ASM.OBJ = atomic_support.obj
|
||||
else
|
||||
ASM=ml /nologo
|
||||
ASM_FLAGS += /c /coff /Zi /safeseh
|
||||
TBB_ASM.OBJ = atomic_support.obj lock_byte.obj itsx.obj
|
||||
endif
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS)
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of define compiler-specific variables.
|
||||
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,108 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
export SHELL = cmd
|
||||
|
||||
ifdef tbb_build_dir
|
||||
test_dir:=$(tbb_build_dir)
|
||||
else
|
||||
test_dir:=.
|
||||
endif
|
||||
|
||||
# A convenience wrapper for calls to detect.js.
|
||||
# $(1) is the full command line for the script, e.g. /minversion icl 12
|
||||
detect_js = $(shell cmd /C "cscript /nologo /E:jscript $(tbb_root)/build/detect.js $(1)")
|
||||
|
||||
# TODO give an error if archs doesn't match
|
||||
ifndef arch
|
||||
export arch:=$(call detect_js, /arch $(compiler))
|
||||
endif
|
||||
|
||||
ifndef runtime
|
||||
export runtime:=$(call detect_js, /runtime $(compiler))
|
||||
endif
|
||||
|
||||
native_compiler := cl
|
||||
export compiler ?= cl
|
||||
debugger ?= devenv /debugexe
|
||||
|
||||
CMD=cmd /C
|
||||
CWD=$(shell cmd /C echo %CD%)
|
||||
RM=cmd /C del /Q /F
|
||||
RD=cmd /C rmdir
|
||||
MD=cmd /c mkdir
|
||||
SLASH=\\
|
||||
NUL = nul
|
||||
|
||||
AR=lib
|
||||
AR_OUTPUT_KEY=/out:
|
||||
AR_FLAGS=/nologo /nodefaultlib
|
||||
|
||||
OBJ = obj
|
||||
DLL = dll
|
||||
LIBEXT = lib
|
||||
ASMEXT = asm
|
||||
|
||||
def_prefix = $(if $(findstring intel64,$(arch)),win64,win32)
|
||||
|
||||
# Target Windows version. Do not increase beyond 0x0502 without prior discussion!
|
||||
# Used as the value for macro definition option in windows.cl.inc etc.
|
||||
# For tests, we need at least Windows XP SP2 for sake of enabling stack backtraces.
|
||||
ifeq (1,$(tbb_cpf))
|
||||
_WIN32_WINNT=0x0600
|
||||
else
|
||||
_WIN32_WINNT=0x0502
|
||||
endif
|
||||
|
||||
TBB.LST = $(tbb_root)/src/tbb/$(def_prefix)-tbb-export.lst
|
||||
TBB.DEF = $(TBB.LST:.lst=.def)
|
||||
TBB.DLL = tbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
|
||||
TBB.LIB = tbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(LIBEXT)
|
||||
TBB.RES = tbb_resource.res
|
||||
# On Windows, we use #pragma comment to set the proper TBB lib to link with.
|
||||
# But for cross-configuration testing, need to link explicitly.
|
||||
# Tests use this variable to detect dependency on TBB binary, so have to be non-empty.
|
||||
LINK_TBB.LIB = $(if $(crosstest),$(TBB.LIB),$(DEFINE_KEY)__TBB_IMPLICITLY_LINKED)
|
||||
TBB.MANIFEST =
|
||||
ifneq ($(filter vc8 vc9,$(runtime)),)
|
||||
TBB.MANIFEST = tbbmanifest.exe.manifest
|
||||
endif
|
||||
|
||||
MALLOC.DEF = $(MALLOC_ROOT)/$(def_prefix)-tbbmalloc-export.def
|
||||
MALLOC.DLL = tbbmalloc$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOC.LIB = tbbmalloc$(DEBUG_SUFFIX).$(LIBEXT)
|
||||
MALLOC.RES = tbbmalloc.res
|
||||
MALLOC.MANIFEST =
|
||||
ifneq ($(filter vc8 vc9,$(runtime)),)
|
||||
MALLOC.MANIFEST = tbbmanifest.exe.manifest
|
||||
endif
|
||||
LINK_MALLOC.LIB = $(MALLOC.LIB)
|
||||
|
||||
MALLOCPROXY.DLL = tbbmalloc_proxy$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOCPROXY.LIB = tbbmalloc_proxy$(DEBUG_SUFFIX).$(LIBEXT)
|
||||
LINK_MALLOCPROXY.LIB = $(MALLOCPROXY.LIB)
|
||||
|
||||
RML.DLL = irml$(DEBUG_SUFFIX).$(DLL)
|
||||
RML.LIB = irml$(DEBUG_SUFFIX).$(LIBEXT)
|
||||
RML.RES = irml.res
|
||||
ifneq ($(filter vc8 vc9,$(runtime)),)
|
||||
RML.MANIFEST = tbbmanifest.exe.manifest
|
||||
endif
|
||||
|
||||
MAKE_VERSIONS = cmd /C cscript /nologo /E:jscript $(subst \,/,$(tbb_root))/build/version_info_windows.js $(compiler) $(arch) $(subst \,/,"$(VERSION_FLAGS)") > version_string.ver
|
||||
MAKE_TBBVARS = cmd /C "$(subst /,\,$(tbb_root))\build\generate_tbbvars.bat"
|
||||
|
||||
TEST_LAUNCHER = $(subst /,\,$(tbb_root))\build\test_launcher.bat $(largs)
|
||||
|
||||
OPENCL.LIB = OpenCL.$(LIBEXT)
|
|
@ -0,0 +1,361 @@
|
|||
.. contents::
|
||||
|
||||
Introduction
|
||||
------------
|
||||
Many developers use CMake to manage their development projects, so the Threading Building Blocks (TBB)
|
||||
team created the set of CMake modules to simplify integration of the TBB library into a CMake project.
|
||||
The modules are available starting from TBB 2017 U7 in `<tbb_root>/cmake <https://github.com/01org/tbb/tree/tbb_2017/cmake>`_.
|
||||
|
||||
About TBB
|
||||
^^^^^^^^^^^^^^^
|
||||
TBB is a library that supports scalable parallel programming using standard ISO C++ code. It does not require special languages or compilers. It is designed to promote scalable data parallel programming. Additionally, it fully supports nested parallelism, so you can build larger parallel components from smaller parallel components. To use the library, you specify tasks, not threads, and let the library map tasks onto threads in an efficient manner.
|
||||
|
||||
Many of the library interfaces employ generic programming, in which interfaces are defined by requirements on types and not specific types. The C++ Standard Template Library (STL) is an example of generic programming. Generic programming enables TBB to be flexible yet efficient. The generic interfaces enable you to customize components to your specific needs.
|
||||
|
||||
The net result is that TBB enables you to specify parallelism far more conveniently than using raw threads, and at the same time can improve performance.
|
||||
|
||||
References
|
||||
^^^^^^^^^^
|
||||
* `Official TBB open source site <https://www.threadingbuildingblocks.org/>`_
|
||||
* `Official GitHub repository <https://github.com/01org/tbb>`_
|
||||
|
||||
Engineering team contacts
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
The TBB team is very interested in convenient integration of the TBB library into customer projects. These CMake modules were created to provide such a possibility for CMake projects using a simple but powerful interface. We hope you will try these modules and we are looking forward to receiving your feedback!
|
||||
|
||||
E-mail us: `inteltbbdevelopers@intel.com <mailto:inteltbbdevelopers@intel.com>`_.
|
||||
|
||||
Visit our `forum <https://software.intel.com/en-us/forums/intel-threading-building-blocks/>`_.
|
||||
|
||||
Release Notes
|
||||
-------------
|
||||
* Minimum supported CMake version: ``3.0.0``.
|
||||
* TBB versioning via `find_package <https://cmake.org/cmake/help/latest/command/find_package.html>`_ has the following format: ``find_package(TBB <major>.<minor> ...)``.
|
||||
|
||||
Use cases of TBB integration into CMake-aware projects
|
||||
------------------------------------------------------------
|
||||
There are two types of TBB packages:
|
||||
* Binary packages with pre-built binaries for Windows* OS, Linux* OS and macOS*. They are available on the releases page of the Github repository: https://github.com/01org/tbb/releases. The main purpose of the binary package integration is the ability to build TBB header files and binaries into your CMake-aware project.
|
||||
* A source package is also available to download from the release page via the "Source code" link. In addition, it can be cloned from the repository by ``git clone https://github.com/01org/tbb.git``. The main purpose of the source package integration is to allow you to do a custom build of the TBB library from the source files and then build that into your CMake-aware project.
|
||||
|
||||
There are four types of CMake modules that can be used to integrate TBB: `TBBConfig`, `TBBGet`, `TBBMakeConfig` and `TBBBuild`. See `Technical documentation for CMake modules`_ section for additional details.
|
||||
|
||||
Binary package integration
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
The following use case is valid for packages starting from TBB 2017 U7:
|
||||
|
||||
* Download package manually and make integration.
|
||||
|
||||
Pre-condition: Location of TBBConfig.cmake is available via ``TBB_DIR`` or ``CMAKE_PREFIX_PATH`` contains path to TBB root.
|
||||
|
||||
CMake code for integration:
|
||||
.. code:: cmake
|
||||
|
||||
find_package(TBB <options>)
|
||||
|
||||
The following use case is valid for all TBB 2017 packages.
|
||||
|
||||
* Download package using TBBGet_ and make integration.
|
||||
|
||||
Pre-condition: TBB CMake modules are available via <path-to-tbb-cmake-modules>.
|
||||
|
||||
CMake code for integration:
|
||||
.. code:: cmake
|
||||
|
||||
include(<path-to-tbb-cmake-modules>/TBBGet.cmake)
|
||||
tbb_get(TBB_ROOT tbb_root CONFIG_DIR TBB_DIR)
|
||||
find_package(TBB <options>)
|
||||
|
||||
Source package integration
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
* Build TBB from existing source files using TBBBuild_ and make integration.
|
||||
|
||||
Pre-condition: TBB source code is available via <tbb_root> and TBB CMake modules are available via <path-to-tbb-cmake-modules>.
|
||||
|
||||
CMake code for integration:
|
||||
.. code:: cmake
|
||||
|
||||
include(<path-to-tbb-cmake-modules>/TBBBuild.cmake)
|
||||
tbb_build(TBB_ROOT <tbb_root> CONFIG_DIR TBB_DIR)
|
||||
find_package(TBB <options>)
|
||||
|
||||
* Download TBB source files using TBBGet_, build it using TBBBuild_ and make integration.
|
||||
|
||||
Pre-condition: TBB CMake modules are available via <path-to-tbb-cmake-modules>.
|
||||
|
||||
CMake code for integration:
|
||||
.. code:: cmake
|
||||
|
||||
include(<path-to-tbb-cmake-modules>/TBBGet.cmake)
|
||||
include(<path-to-tbb-cmake-modules>/TBBBuild.cmake)
|
||||
tbb_get(TBB_ROOT tbb_root SOURCE_CODE)
|
||||
tbb_build(TBB_ROOT ${tbb_root} CONFIG_DIR TBB_DIR)
|
||||
find_package(TBB <options>)
|
||||
|
||||
Tutorials: TBB integration using CMake
|
||||
--------------------------------------------
|
||||
Binary TBB integration to the sub_string_finder sample (Windows* OS)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
In this example, we will integrate binary TBB package into the sub_string_finder sample on Windows* OS (Microsoft* Visual Studio).
|
||||
This example is also applicable for other platforms with slight changes.
|
||||
Place holders <version> and <date> should be replaced with the actual values for the TBB package being used. The example is written for `CMake 3.7.1`.
|
||||
|
||||
Precondition:
|
||||
* `Microsoft* Visual Studio 11` or higher.
|
||||
* `CMake 3.0.0` or higher.
|
||||
|
||||
#. Download the latest binary package for Windows from `this page <https://github.com/01org/tbb/releases/latest>`_ and unpack it to the directory ``C:\demo_tbb_cmake``.
|
||||
#. In the directory ``C:\demo_tbb_cmake\tbb<version>_<date>oss\examples\GettingStarted\sub_string_finder`` create ``CMakeLists.txt`` file with the following content:
|
||||
.. code:: cmake
|
||||
|
||||
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)
|
||||
|
||||
project(sub_string_finder CXX)
|
||||
add_executable(sub_string_finder sub_string_finder.cpp)
|
||||
|
||||
# find_package will search for available TBBConfig using variables CMAKE_PREFIX_PATH and TBB_DIR.
|
||||
find_package(TBB REQUIRED tbb)
|
||||
|
||||
# Link TBB imported targets to the executable;
|
||||
# "TBB::tbb" can be used instead of "${TBB_IMPORTED_TARGETS}".
|
||||
target_link_libraries(sub_string_finder ${TBB_IMPORTED_TARGETS})
|
||||
#. Run CMake GUI and:
|
||||
* Fill the following fields (you can use the buttons ``Browse Source...`` and ``Browse Build...`` accordingly)
|
||||
|
||||
* Where is the source code: ``C:/demo_tbb_cmake/tbb<version>_<date>oss/examples/GettingStarted/sub_string_finder``
|
||||
* Where to build the binaries: ``C:/demo_tbb_cmake/tbb<version>_<date>oss/examples/GettingStarted/sub_string_finder/build``
|
||||
|
||||
* Add new cache entry using button ``Add Entry`` to let CMake know where to search for TBBConfig:
|
||||
|
||||
* Name: ``CMAKE_PREFIX_PATH``
|
||||
* Type: ``PATH``
|
||||
* Value: ``C:/demo_tbb_cmake/tbb<version>_<date>oss``
|
||||
|
||||
* Push the button ``Generate`` and choose a proper generator for your Microsoft* Visual Studio version.
|
||||
#. Now you can open the generated solution ``C:/demo_tbb_cmake/tbb<version>_<date>oss/examples/GettingStarted/sub_string_finder/build/sub_string_finder.sln`` in your Microsoft* Visual Studio and build it.
|
||||
|
||||
Source code integration of TBB to the sub_string_finder sample (Linux* OS)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
In this example, we will build TBB from source code with enabled Community Preview Features and link the sub_string_finder sample with the built library.
|
||||
This example is also applicable for other platforms with slight changes.
|
||||
|
||||
Precondition:
|
||||
* `CMake 3.0.0` or higher.
|
||||
* `Git` (to clone the TBB repository from GitHub)
|
||||
|
||||
#. Create the directory ``~/demo_tbb_cmake``, go to the created directory and clone the TBB repository there:
|
||||
``mkdir ~/demo_tbb_cmake ; cd ~/demo_tbb_cmake ; git clone https://github.com/01org/tbb.git``
|
||||
#. In the directory ``~/demo_tbb_cmake/tbb/examples/GettingStarted/sub_string_finder`` create ``CMakeLists.txt`` file with following content:
|
||||
.. code:: cmake
|
||||
|
||||
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)
|
||||
|
||||
project(sub_string_finder CXX)
|
||||
add_executable(sub_string_finder sub_string_finder.cpp)
|
||||
|
||||
include(${TBB_ROOT}/cmake/TBBBuild.cmake)
|
||||
|
||||
# Build TBB with enabled Community Preview Features (CPF).
|
||||
tbb_build(TBB_ROOT ${TBB_ROOT} CONFIG_DIR TBB_DIR MAKE_ARGS tbb_cpf=1)
|
||||
|
||||
find_package(TBB REQUIRED tbb_preview)
|
||||
|
||||
# Link TBB imported targets to the executable;
|
||||
# "TBB::tbb_preview" can be used instead of "${TBB_IMPORTED_TARGETS}".
|
||||
target_link_libraries(sub_string_finder ${TBB_IMPORTED_TARGETS})
|
||||
#. Create a build directory for the sub_string_finder sample to perform build out of source, go to the created directory
|
||||
``mkdir ~/demo_tbb_cmake/tbb/examples/GettingStarted/sub_string_finder/build ; cd ~/demo_tbb_cmake/tbb/examples/GettingStarted/sub_string_finder/build``
|
||||
#. Run CMake to prepare Makefile for the sub_string_finder sample and provide TBB location (root) where to perform build:
|
||||
``cmake -DTBB_ROOT=${HOME}/demo_tbb_cmake/tbb ..``
|
||||
#. Make an executable and run it:
|
||||
``make ; ./sub_string_finder``
|
||||
|
||||
Technical documentation for CMake modules
|
||||
-----------------------------------------
|
||||
TBBConfig
|
||||
^^^^^^^^^
|
||||
|
||||
Configuration module for TBB library.
|
||||
|
||||
How to use this module in your CMake project:
|
||||
#. Add location of TBB (root) to `CMAKE_PREFIX_PATH <https://cmake.org/cmake/help/latest/variable/CMAKE_PREFIX_PATH.html>`_
|
||||
or specify location of TBBConfig.cmake in ``TBB_DIR``.
|
||||
#. Use `find_package <https://cmake.org/cmake/help/latest/command/find_package.html>`_ to configure TBB.
|
||||
#. Use provided variables and/or imported targets (described below) to work with TBB.
|
||||
|
||||
TBB components can be passed to `find_package <https://cmake.org/cmake/help/latest/command/find_package.html>`_
|
||||
after keyword ``COMPONENTS`` or ``REQUIRED``.
|
||||
Use basic names of components (``tbb``, ``tbbmalloc``, ``tbb_preview``, etc.).
|
||||
|
||||
If components are not specified then default are used: ``tbb``, ``tbbmalloc`` and ``tbbmalloc_proxy``.
|
||||
|
||||
If ``tbbmalloc_proxy`` is requested, ``tbbmalloc`` component will also be added and set as dependency for ``tbbmalloc_proxy``.
|
||||
|
||||
TBBConfig creates `imported targets <https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html#imported-targets>`_ as
|
||||
shared libraries using the following format: ``TBB::<component>`` (for example, ``TBB::tbb``, ``TBB::tbbmalloc``).
|
||||
|
||||
Set ``TBB_FIND_RELEASE_ONLY`` to ``TRUE`` before ``find_package`` call in order to search only for release TBB version. This variable helps to avoid simultaneous linkage of release and debug TBB versions when CMake configuration is `Debug` but a third-party component depends on release TBB version.
|
||||
Variables set during TBB configuration:
|
||||
|
||||
========================= ================================================
|
||||
Variable Description
|
||||
========================= ================================================
|
||||
``TBB_FOUND`` TBB library is found
|
||||
``TBB_<component>_FOUND`` specific TBB component is found
|
||||
``TBB_IMPORTED_TARGETS`` all created TBB imported targets
|
||||
``TBB_VERSION`` TBB version (format: ``<major>.<minor>``)
|
||||
``TBB_INTERFACE_VERSION`` TBB interface version (can be empty, see below for details)
|
||||
========================= ================================================
|
||||
|
||||
TBBInstallConfig
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
Module for generation and installation of TBB CMake configuration files (TBBConfig.cmake and TBBConfigVersion.cmake files) on Linux, macOS and Windows.
|
||||
|
||||
Provides the following functions:
|
||||
|
||||
.. code:: cmake
|
||||
|
||||
tbb_install_config(INSTALL_DIR <install_dir> SYSTEM_NAME Linux|Darwin|Windows
|
||||
[TBB_VERSION <major>.<minor>|TBB_VERSION_FILE <version_file>]
|
||||
[LIB_REL_PATH <lib_rel_path> INC_REL_PATH <inc_rel_path>]
|
||||
[LIB_PATH <lib_path> INC_PATH <inc_path>])``
|
||||
|
||||
**Note: the module overwrites existing TBBConfig.cmake and TBBConfigVersion.cmake files in <install_dir>.**
|
||||
|
||||
``tbb_config_installer.cmake`` allows to run ``TBBInstallConfig.cmake`` from command line.
|
||||
It accepts the same parameters as ``tbb_install_config`` function, run ``cmake -P tbb_config_installer.cmake`` to get help.
|
||||
|
||||
Use cases
|
||||
"""""""""
|
||||
**Prepare TBB CMake configuration files for custom TBB package.**
|
||||
|
||||
The use case is applicable for package maintainers who create own TBB packages and want to create TBBConfig.cmake and TBBConfigVersion.cmake for these packages.
|
||||
|
||||
=========================================== ===========================================================
|
||||
Parameter Description
|
||||
=========================================== ===========================================================
|
||||
``INSTALL_DIR <directory>`` Directory to install CMake configuration files
|
||||
``SYSTEM_NAME Linux|Darwin|Windows`` OS name to generate config files for
|
||||
``TBB_VERSION_FILE <version_file>`` Path to ``tbb_stddef.h`` to parse version from and
|
||||
write it to TBBConfigVersion.cmake
|
||||
``TBB_VERSION <major>.<minor>`` Directly specified TBB version; alternative to ``TBB_VERSION_FILE`` parameter;
|
||||
``TBB_INTERFACE_VERSION`` is set to empty value in this case
|
||||
``LIB_REL_PATH <lib_rel_path>`` Relative path to TBB binaries (.lib files on Windows), default: ``../../../lib``
|
||||
``BIN_REL_PATH <bin_rel_path>`` Relative path to TBB DLLs, default: ``../../../bin`` (applicable for Windows only)
|
||||
``INC_REL_PATH <inc_rel_path>`` Relative path to TBB headers, default: ``../../../include``
|
||||
=========================================== ===========================================================
|
||||
|
||||
*Example*
|
||||
|
||||
Assume your package is installed to the following structure:
|
||||
|
||||
* Binaries go to ``<prefix>/lib``
|
||||
* Headers go to ``<prefix>/include``
|
||||
* CMake configuration files go to ``<prefix>/lib/cmake/<package>``
|
||||
|
||||
The package is packed from ``/my/package/content`` directory.
|
||||
|
||||
``cmake -DINSTALL_DIR=/my/package/content/lib/cmake/TBB -DSYSTEM_NAME=Linux -DTBB_VERSION_FILE=/my/package/content/include/tbb/tbb_stddef.h -P tbb_config_installer.cmake`` (default relative paths will be used)
|
||||
|
||||
**Install TBB CMake configuration files for installed TBB.**
|
||||
|
||||
The use case is applicable for users who have installed TBB, but do not have (or have incorrect) CMake configuration files for this TBB.
|
||||
|
||||
==================================== ==============================================
|
||||
Parameter Description
|
||||
==================================== ==============================================
|
||||
``INSTALL_DIR <directory>`` Directory to install CMake configuration files
|
||||
``SYSTEM_NAME Linux|Darwin|Windows`` OS name to generate config files for
|
||||
``LIB_PATH <lib_path>`` Path to installed TBB binaries (.lib files on Windows)
|
||||
``BIN_PATH <bin_path>`` Path to installed TBB DLLs (applicable for Windows only)
|
||||
``INC_PATH <inc_path>`` Path to installed TBB headers
|
||||
==================================== ==============================================
|
||||
|
||||
``LIB_PATH`` and ``INC_PATH`` will be converted to relative paths based on ``INSTALL_DIR``.
|
||||
By default TBB version will be parsed from ``<inc_path>/tbb/tbb_stddef.h``,
|
||||
but it can be overridden by optional parameters ``TBB_VERSION_FILE`` or ``TBB_VERSION``.
|
||||
|
||||
*Example*
|
||||
|
||||
TBB is installed to ``/usr`` directory.
|
||||
In order to create TBBConfig.cmake and TBBConfigVersion.cmake in ``/usr/lib/cmake/TBB`` run
|
||||
|
||||
``cmake -DINSTALL_DIR=/usr/lib/cmake/TBB -DSYSTEM_NAME=Linux -DLIB_PATH=/usr/lib -DINC_PATH=/usr/include -P tbb_config_installer.cmake``.
|
||||
|
||||
TBBGet
|
||||
^^^^^^
|
||||
|
||||
Module for getting TBB library from `GitHub <https://github.com/01org/tbb>`_.
|
||||
|
||||
Provides the following functions:
|
||||
``tbb_get(TBB_ROOT <variable> [RELEASE_TAG <release_tag>|LATEST] [SAVE_TO <path>] [SYSTEM_NAME Linux|Windows|Darwin] [CONFIG_DIR <variable> | SOURCE_CODE])``
|
||||
downloads TBB from GitHub and creates TBBConfig for the downloaded binary package if there is no TBBConfig.
|
||||
|
||||
==================================== ====================================
|
||||
Parameter Description
|
||||
==================================== ====================================
|
||||
``TBB_ROOT <variable>`` a variable to save TBB root in, ``<variable>-NOTFOUND`` will be provided in case ``tbb_get`` is unsuccessful
|
||||
``RELEASE_TAG <release_tag>|LATEST`` TBB release tag to be downloaded (for example, ``2017_U6``), ``LATEST`` is used by default
|
||||
``SAVE_TO <path>`` path to location at which to unpack downloaded TBB, ``${CMAKE_CURRENT_BINARY_DIR}/tbb_downloaded`` is used by default
|
||||
``SYSTEM_NAME Linux|Windows|Darwin`` operating system name to download a binary package for,
|
||||
value of `CMAKE_SYSTEM_NAME <https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_NAME.html>`_ is used by default
|
||||
``CONFIG_DIR <variable>`` a variable to save location of TBBConfig.cmake and TBBConfigVersion.cmake. Ignored if ``SOURCE_CODE`` specified
|
||||
``SOURCE_CODE`` flag to get TBB source code (instead of binary package)
|
||||
==================================== ====================================
|
||||
|
||||
TBBMakeConfig
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
Module for making TBBConfig in `official TBB binary packages published on GitHub <https://github.com/01org/tbb/releases>`_.
|
||||
|
||||
This module is to be used for packages that do not have TBBConfig.
|
||||
|
||||
Provides the following functions:
|
||||
``tbb_make_config(TBB_ROOT <path> CONFIG_DIR <variable> [SYSTEM_NAME Linux|Windows|Darwin])``
|
||||
creates CMake configuration files (TBBConfig.cmake and TBBConfigVersion.cmake) for TBB binary package.
|
||||
|
||||
==================================== ====================================
|
||||
Parameter Description
|
||||
==================================== ====================================
|
||||
``TBB_ROOT <variable>`` path to TBB root
|
||||
``CONFIG_DIR <variable>`` a variable to store location of the created configuration files
|
||||
``SYSTEM_NAME Linux|Windows|Darwin`` operating system name of the binary TBB package,
|
||||
value of `CMAKE_SYSTEM_NAME <https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_NAME.html>`_ is used by default
|
||||
==================================== ====================================
|
||||
|
||||
TBBBuild
|
||||
^^^^^^^^
|
||||
|
||||
Module for building TBB library from the source code.
|
||||
|
||||
Provides the following functions:
|
||||
``tbb_build(TBB_ROOT <tbb_root> CONFIG_DIR <variable> [MAKE_ARGS <custom_make_arguments>])``
|
||||
builds TBB from source code using the ``Makefile``, creates and provides the location of the CMake configuration files (TBBConfig.cmake and TBBConfigVersion.cmake) .
|
||||
|
||||
===================================== ====================================
|
||||
Parameter Description
|
||||
===================================== ====================================
|
||||
``TBB_ROOT <variable>`` path to TBB root
|
||||
``CONFIG_DIR <variable>`` a variable to store location of the created configuration files,
|
||||
``<variable>-NOTFOUND`` will be provided in case ``tbb_build`` is unsuccessful
|
||||
``MAKE_ARGS <custom_make_arguments>`` custom arguments to be passed to ``make`` tool.
|
||||
|
||||
The following arguments are always passed with automatically detected values to
|
||||
``make`` tool if they are not redefined in ``<custom_make_arguments>``:
|
||||
|
||||
- ``compiler=<compiler>``
|
||||
- ``tbb_build_dir=<tbb_build_dir>``
|
||||
- ``tbb_build_prefix=<tbb_build_prefix>``
|
||||
- ``-j<n>``
|
||||
===================================== ====================================
|
||||
|
||||
|
||||
------------
|
||||
|
||||
Intel and the Intel logo are trademarks of Intel Corporation or its subsidiaries in the U.S. and/or other countries.
|
||||
|
||||
``*`` Other names and brands may be claimed as the property of others.
|
|
@ -0,0 +1,197 @@
|
|||
# Copyright (c) 2017-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
#
|
||||
# Usage:
|
||||
# include(TBBBuild.cmake)
|
||||
# tbb_build(TBB_ROOT <tbb_root> CONFIG_DIR <config_dir> MAKE_ARGS <arg1> [... <argN>])
|
||||
# find_package(TBB <options>)
|
||||
#
|
||||
|
||||
include(CMakeParseArguments)
|
||||
|
||||
# Save the location of Intel TBB CMake modules here, as it will not be possible to do inside functions,
|
||||
# see for details: https://cmake.org/cmake/help/latest/variable/CMAKE_CURRENT_LIST_DIR.html
|
||||
set(_tbb_cmake_module_path ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
##
|
||||
# Builds Intel TBB.
|
||||
#
|
||||
# Parameters:
|
||||
# TBB_ROOT <directory> - path to Intel TBB root directory (with sources);
|
||||
# MAKE_ARGS <list> - user-defined arguments to be passed to make-tool;
|
||||
# CONFIG_DIR <variable> - store location of the created TBBConfig if the build was ok, store <variable>-NOTFOUND otherwise.
|
||||
#
|
||||
function(tbb_build)
|
||||
# NOTE: internal function are used to hide them from user.
|
||||
|
||||
##
|
||||
# Provides arguments for make-command to build Intel TBB.
|
||||
#
|
||||
# Following arguments are provided automatically if they are not defined by user:
|
||||
# compiler=<value>
|
||||
# tbb_build_dir=<value>
|
||||
# tbb_build_prefix=<value>
|
||||
# -j<n>
|
||||
#
|
||||
# Parameters:
|
||||
# USER_DEFINED_ARGS <list> - list of user-defined arguments;
|
||||
# RESULT <variable> - resulting list of 'make' arguments.
|
||||
#
|
||||
function(tbb_get_make_args)
|
||||
set(oneValueArgs RESULT)
|
||||
set(multiValueArgs USER_DEFINED_ARGS)
|
||||
cmake_parse_arguments(tbb_GMA "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
set(result ${tbb_GMA_USER_DEFINED_ARGS})
|
||||
|
||||
if (NOT tbb_GMA_USER_DEFINED_ARGS MATCHES "compiler=")
|
||||
# TODO: add other supported compilers.
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set(compiler gcc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
|
||||
set(compiler icc)
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
set(compiler icl)
|
||||
endif()
|
||||
elseif (MSVC)
|
||||
set(compiler cl)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
set(compiler clang)
|
||||
endif()
|
||||
|
||||
set(result "compiler=${compiler}" ${result})
|
||||
endif()
|
||||
|
||||
if (NOT tbb_GMA_USER_DEFINED_ARGS MATCHES "stdver=" AND DEFINED CMAKE_CXX_STANDARD)
|
||||
set(result "stdver=c++${CMAKE_CXX_STANDARD}" ${result})
|
||||
endif()
|
||||
|
||||
if (NOT tbb_GMA_USER_DEFINED_ARGS MATCHES "tbb_build_dir=")
|
||||
set(result "tbb_build_dir=${CMAKE_CURRENT_BINARY_DIR}/tbb_cmake_build" ${result})
|
||||
endif()
|
||||
|
||||
if (NOT tbb_GMA_USER_DEFINED_ARGS MATCHES "tbb_build_prefix=")
|
||||
set(result "tbb_build_prefix=tbb_cmake_build_subdir" ${result})
|
||||
endif()
|
||||
|
||||
if (NOT tbb_GMA_USER_DEFINED_ARGS MATCHES "(;|^) *\\-j[0-9]* *(;|$)")
|
||||
include(ProcessorCount)
|
||||
ProcessorCount(num_of_cores)
|
||||
if (NOT num_of_cores EQUAL 0)
|
||||
set(result "-j${num_of_cores}" ${result})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "Android")
|
||||
set(result target=android ${result})
|
||||
endif()
|
||||
|
||||
set(${tbb_GMA_RESULT} ${result} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
##
|
||||
# Provides release and debug directories basing on 'make' arguments.
|
||||
#
|
||||
# Following 'make' arguments are parsed: tbb_build_dir, tbb_build_prefix
|
||||
#
|
||||
# Parameters:
|
||||
# MAKE_ARGS <list> - 'make' arguments (tbb_build_dir and tbb_build_prefix are required)
|
||||
# RELEASE_DIR <variable> - store normalized (CMake) path to release directory
|
||||
# DEBUG_DIR <variable> - store normalized (CMake) path to debug directory
|
||||
#
|
||||
function(tbb_get_build_paths_from_make_args)
|
||||
set(oneValueArgs RELEASE_DIR DEBUG_DIR)
|
||||
set(multiValueArgs MAKE_ARGS)
|
||||
cmake_parse_arguments(tbb_GBPFMA "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
foreach(arg ${tbb_GBPFMA_MAKE_ARGS})
|
||||
if (arg MATCHES "tbb_build_dir=")
|
||||
string(REPLACE "tbb_build_dir=" "" tbb_build_dir "${arg}")
|
||||
elseif (arg MATCHES "tbb_build_prefix=")
|
||||
string(REPLACE "tbb_build_prefix=" "" tbb_build_prefix "${arg}")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(tbb_release_dir "${tbb_build_dir}/${tbb_build_prefix}_release")
|
||||
set(tbb_debug_dir "${tbb_build_dir}/${tbb_build_prefix}_debug")
|
||||
|
||||
file(TO_CMAKE_PATH "${tbb_release_dir}" tbb_release_dir)
|
||||
file(TO_CMAKE_PATH "${tbb_debug_dir}" tbb_debug_dir)
|
||||
|
||||
set(${tbb_GBPFMA_RELEASE_DIR} ${tbb_release_dir} PARENT_SCOPE)
|
||||
set(${tbb_GBPFMA_DEBUG_DIR} ${tbb_debug_dir} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
# -------------------- #
|
||||
# Function entry point #
|
||||
# -------------------- #
|
||||
set(oneValueArgs TBB_ROOT CONFIG_DIR)
|
||||
set(multiValueArgs MAKE_ARGS)
|
||||
cmake_parse_arguments(tbb_build "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
if (NOT EXISTS "${tbb_build_TBB_ROOT}/Makefile" OR NOT EXISTS "${tbb_build_TBB_ROOT}/src")
|
||||
message(STATUS "Intel TBB can not be built: Makefile or src directory was not found in ${tbb_build_TBB_ROOT}")
|
||||
set(${tbb_build_CONFIG_DIR} ${tbb_build_CONFIG_DIR}-NOTFOUND PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(make_tool_name make)
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
set(make_tool_name gmake)
|
||||
elseif (CMAKE_SYSTEM_NAME MATCHES "Android")
|
||||
set(make_tool_name ndk-build)
|
||||
endif()
|
||||
|
||||
find_program(TBB_MAKE_TOOL ${make_tool_name} DOC "Make-tool to build Intel TBB.")
|
||||
mark_as_advanced(TBB_MAKE_TOOL)
|
||||
|
||||
if (NOT TBB_MAKE_TOOL)
|
||||
message(STATUS "Intel TBB can not be built: required make-tool (${make_tool_name}) was not found")
|
||||
set(${tbb_build_CONFIG_DIR} ${tbb_build_CONFIG_DIR}-NOTFOUND PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
tbb_get_make_args(USER_DEFINED_ARGS ${tbb_build_MAKE_ARGS} RESULT tbb_make_args)
|
||||
|
||||
set(tbb_build_cmd ${TBB_MAKE_TOOL} ${tbb_make_args})
|
||||
|
||||
string(REPLACE ";" " " tbb_build_cmd_str "${tbb_build_cmd}")
|
||||
message(STATUS "Building Intel TBB: ${tbb_build_cmd_str}")
|
||||
execute_process(COMMAND ${tbb_build_cmd}
|
||||
WORKING_DIRECTORY ${tbb_build_TBB_ROOT}
|
||||
RESULT_VARIABLE tbb_build_result
|
||||
ERROR_VARIABLE tbb_build_error_output
|
||||
OUTPUT_QUIET)
|
||||
|
||||
if (NOT tbb_build_result EQUAL 0)
|
||||
message(STATUS "Building is unsuccessful (${tbb_build_result}): ${tbb_build_error_output}")
|
||||
set(${tbb_build_CONFIG_DIR} ${tbb_build_CONFIG_DIR}-NOTFOUND PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
tbb_get_build_paths_from_make_args(MAKE_ARGS ${tbb_make_args}
|
||||
RELEASE_DIR tbb_release_dir
|
||||
DEBUG_DIR tbb_debug_dir)
|
||||
|
||||
include(${_tbb_cmake_module_path}/TBBMakeConfig.cmake)
|
||||
tbb_make_config(TBB_ROOT ${tbb_build_TBB_ROOT}
|
||||
SYSTEM_NAME ${CMAKE_SYSTEM_NAME}
|
||||
CONFIG_DIR tbb_config_dir
|
||||
CONFIG_FOR_SOURCE
|
||||
TBB_RELEASE_DIR ${tbb_release_dir}
|
||||
TBB_DEBUG_DIR ${tbb_debug_dir})
|
||||
|
||||
set(${tbb_build_CONFIG_DIR} ${tbb_config_dir} PARENT_SCOPE)
|
||||
endfunction()
|
|
@ -0,0 +1,294 @@
|
|||
# Copyright (c) 2017-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
include(CMakeParseArguments)
|
||||
|
||||
# Save the location of Intel TBB CMake modules here, as it will not be possible to do inside functions,
|
||||
# see for details: https://cmake.org/cmake/help/latest/variable/CMAKE_CURRENT_LIST_DIR.html
|
||||
set(_tbb_cmake_module_path ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
##
|
||||
# Downloads file.
|
||||
#
|
||||
# Parameters:
|
||||
# URL <url> - URL to download data from;
|
||||
# SAVE_AS <filename> - filename there to save downloaded data;
|
||||
# INFO <string> - text description of content to be downloaded;
|
||||
# will be printed as message in format is "Downloading <INFO>: <URL>;
|
||||
# FORCE - option to delete local file from SAVE_AS if it exists;
|
||||
#
|
||||
function(_tbb_download_file)
|
||||
set(options FORCE)
|
||||
set(oneValueArgs URL RELEASE SAVE_AS INFO)
|
||||
cmake_parse_arguments(tbb_df "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
if (tbb_df_FORCE AND EXISTS "${tbb_df_SAVE_AS}")
|
||||
file(REMOVE ${tbb_df_SAVE_AS})
|
||||
endif()
|
||||
|
||||
if (NOT EXISTS "${tbb_df_SAVE_AS}")
|
||||
set(_show_progress)
|
||||
if (TBB_DOWNLOADING_PROGRESS)
|
||||
set(_show_progress SHOW_PROGRESS)
|
||||
endif()
|
||||
|
||||
message(STATUS "Downloading ${tbb_df_INFO}: ${tbb_df_URL}")
|
||||
file(DOWNLOAD ${tbb_df_URL} ${tbb_df_SAVE_AS} ${_show_progress} STATUS download_status)
|
||||
|
||||
list(GET download_status 0 download_status_num)
|
||||
if (NOT download_status_num EQUAL 0)
|
||||
message(STATUS "Unsuccessful downloading: ${download_status}")
|
||||
file(REMOVE ${tbb_df_SAVE_AS})
|
||||
return()
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "Needed file was found locally ${tbb_df_SAVE_AS}. Remove it if you still want to download a new one")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
##
|
||||
# Checks if specified Intel TBB release is available on GitHub.
|
||||
#
|
||||
# tbb_check_git_release(<release> <result>)
|
||||
# Parameters:
|
||||
# <release_tag> - release to be checked;
|
||||
# <result> - store result (TRUE/FALSE).
|
||||
#
|
||||
function(_tbb_check_git_release_tag _tbb_release_tag _tbb_release_tag_avail)
|
||||
if (_tbb_release_tag STREQUAL LATEST)
|
||||
set(${_tbb_release_tag_avail} TRUE PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(tbb_releases_file "${CMAKE_CURRENT_BINARY_DIR}/tbb_releases.json")
|
||||
|
||||
_tbb_download_file(URL "${tbb_github_api}/releases"
|
||||
SAVE_AS ${tbb_releases_file}
|
||||
INFO "information from GitHub about Intel TBB releases"
|
||||
FORCE)
|
||||
|
||||
if (NOT EXISTS "${tbb_releases_file}")
|
||||
set(${_tbb_release_tag_avail} FALSE PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
file(READ ${tbb_releases_file} tbb_releases)
|
||||
|
||||
string(REPLACE "\"" "" tbb_releases ${tbb_releases})
|
||||
string(REGEX MATCHALL "tag_name: *([A-Za-z0-9_\\.]+)" tbb_releases ${tbb_releases})
|
||||
|
||||
set(_release_available FALSE)
|
||||
foreach(tbb_rel ${tbb_releases})
|
||||
string(REGEX REPLACE "tag_name: *" "" tbb_rel_cut ${tbb_rel})
|
||||
list(REMOVE_ITEM tbb_releases ${tbb_rel})
|
||||
list(APPEND tbb_releases ${tbb_rel_cut})
|
||||
if (_tbb_release_tag STREQUAL tbb_rel_cut)
|
||||
set(_release_available TRUE)
|
||||
break()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if (NOT _release_available)
|
||||
string(REPLACE ";" ", " tbb_releases_str "${tbb_releases}")
|
||||
message(STATUS "Requested release tag ${_tbb_release_tag} is not available. Available Intel TBB release tags: ${tbb_releases_str}")
|
||||
endif()
|
||||
|
||||
set(${_tbb_release_tag_avail} ${_release_available} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
##
|
||||
# Compares two Intel TBB releases and provides result
|
||||
# TRUE if the first release is less than the second, FALSE otherwise.
|
||||
#
|
||||
# tbb_is_release_less(<rel1> <rel2> <result>)
|
||||
#
|
||||
function(_tbb_is_release_less rel1 rel2 result)
|
||||
# Convert release to numeric representation to compare it using "if" with VERSION_LESS.
|
||||
string(REGEX REPLACE "[A-Za-z]" "" rel1 "${rel1}")
|
||||
string(REPLACE "_" "." rel1 "${rel1}")
|
||||
string(REGEX REPLACE "[A-Za-z]" "" rel2 "${rel2}")
|
||||
string(REPLACE "_" "." rel2 "${rel2}")
|
||||
|
||||
if (${rel1} VERSION_LESS ${rel2})
|
||||
set(${result} TRUE PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(${result} FALSE PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
##
|
||||
# Finds exact URL to download Intel TBB basing on provided parameters.
|
||||
#
|
||||
# Usage:
|
||||
# _tbb_get_url(URL <var_to_save_url> RELEASE_TAG <release_tag|LATEST> OS <os> [SOURCE_CODE])
|
||||
#
|
||||
function(_tbb_get_url)
|
||||
set(oneValueArgs URL RELEASE_TAG OS)
|
||||
set(options SOURCE_CODE)
|
||||
cmake_parse_arguments(tbb_get_url "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
set(tbb_github_api "https://api.github.com/repos/01org/tbb")
|
||||
|
||||
_tbb_check_git_release_tag(${tbb_get_url_RELEASE_TAG} tbb_release_available)
|
||||
if (NOT tbb_release_available)
|
||||
set(${tbb_download_FULL_PATH} ${tbb_download_FULL_PATH}-NOTFOUND PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if (tbb_get_url_RELEASE_TAG STREQUAL LATEST)
|
||||
set(tbb_rel_info_api_url "${tbb_github_api}/releases/latest")
|
||||
else()
|
||||
set(tbb_rel_info_api_url "${tbb_github_api}/releases/tags/${tbb_get_url_RELEASE_TAG}")
|
||||
endif()
|
||||
|
||||
set(tbb_release_info_file "${CMAKE_CURRENT_BINARY_DIR}/tbb_${tbb_get_url_RELEASE_TAG}_info.json")
|
||||
|
||||
_tbb_download_file(URL ${tbb_rel_info_api_url}
|
||||
SAVE_AS ${tbb_release_info_file}
|
||||
INFO "information from GitHub about packages for Intel TBB ${tbb_get_url_RELEASE_TAG}"
|
||||
FORCE)
|
||||
|
||||
if (NOT EXISTS "${tbb_release_info_file}")
|
||||
set(${tbb_get_url_URL} ${tbb_get_url_URL}-NOTFOUND PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
file(STRINGS ${tbb_release_info_file} tbb_release_info)
|
||||
|
||||
if (tbb_get_url_SOURCE_CODE)
|
||||
# Find name of the latest release to get link to source archive.
|
||||
if (tbb_get_url_RELEASE_TAG STREQUAL LATEST)
|
||||
string(REPLACE "\"" "" tbb_release_info ${tbb_release_info})
|
||||
string(REGEX REPLACE ".*tag_name: *([A-Za-z0-9_\\.]+).*" "\\1" tbb_get_url_RELEASE_TAG "${tbb_release_info}")
|
||||
endif()
|
||||
|
||||
set(${tbb_get_url_URL} "https://github.com/01org/tbb/archive/${tbb_get_url_RELEASE_TAG}.tar.gz" PARENT_SCOPE)
|
||||
else()
|
||||
if (tbb_get_url_OS MATCHES "Linux")
|
||||
set(tbb_lib_archive_suffix lin.tgz)
|
||||
elseif (tbb_get_url_OS MATCHES "Windows")
|
||||
set(tbb_lib_archive_suffix win.zip)
|
||||
elseif (tbb_get_url_OS MATCHES "Darwin")
|
||||
set(tbb_lib_archive_suffix mac.tgz)
|
||||
|
||||
# Since 2017_U4 release archive for Apple has suffix "mac.tgz" instead of "osx.tgz".
|
||||
if (NOT tbb_get_url_RELEASE_TAG STREQUAL "LATEST")
|
||||
_tbb_is_release_less(${tbb_get_url_RELEASE_TAG} 2017_U4 release_less)
|
||||
if (release_less)
|
||||
set(tbb_lib_archive_suffix osx.tgz)
|
||||
endif()
|
||||
endif()
|
||||
elseif (tbb_get_url_OS MATCHES "Android")
|
||||
set(tbb_lib_archive_suffix and.tgz)
|
||||
else()
|
||||
message(STATUS "Currently prebuilt Intel TBB is not available for your OS (${tbb_get_url_OS})")
|
||||
set(${tbb_get_url_URL} ${tbb_get_url_URL}-NOTFOUND PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
string(REGEX REPLACE ".*(https.*oss_${tbb_lib_archive_suffix}).*" "\\1" tbb_bin_url "${tbb_release_info}")
|
||||
|
||||
set(${tbb_get_url_URL} ${tbb_bin_url} PARENT_SCOPE)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(tbb_get)
|
||||
set(oneValueArgs RELEASE_TAG SYSTEM_NAME SAVE_TO TBB_ROOT CONFIG_DIR)
|
||||
set(options SOURCE_CODE)
|
||||
cmake_parse_arguments(tbb_get "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
set(tbb_os ${CMAKE_SYSTEM_NAME})
|
||||
if (tbb_get_SYSTEM_NAME)
|
||||
set(tbb_os ${tbb_get_SYSTEM_NAME})
|
||||
endif()
|
||||
|
||||
set(tbb_release_tag LATEST)
|
||||
if (tbb_get_RELEASE_TAG)
|
||||
set(tbb_release_tag ${tbb_get_RELEASE_TAG})
|
||||
endif()
|
||||
|
||||
set(tbb_save_to ${CMAKE_CURRENT_BINARY_DIR}/tbb_downloaded)
|
||||
if (tbb_get_SAVE_TO)
|
||||
set(tbb_save_to ${tbb_get_SAVE_TO})
|
||||
endif()
|
||||
|
||||
if (tbb_get_SOURCE_CODE)
|
||||
_tbb_get_url(URL tbb_url RELEASE_TAG ${tbb_release_tag} OS ${tbb_os} SOURCE_CODE)
|
||||
else()
|
||||
_tbb_get_url(URL tbb_url RELEASE_TAG ${tbb_release_tag} OS ${tbb_os})
|
||||
endif()
|
||||
|
||||
if (NOT tbb_url)
|
||||
message(STATUS "URL to download Intel TBB has not been found")
|
||||
set(${tbb_get_TBB_ROOT} ${tbb_get_TBB_ROOT}-NOTFOUND PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
get_filename_component(filename ${tbb_url} NAME)
|
||||
set(local_file "${CMAKE_CURRENT_BINARY_DIR}/${filename}")
|
||||
|
||||
_tbb_download_file(URL ${tbb_url}
|
||||
SAVE_AS ${local_file}
|
||||
INFO "Intel TBB library")
|
||||
|
||||
if (NOT EXISTS "${local_file}")
|
||||
set(${tbb_get_TBB_ROOT} ${tbb_get_TBB_ROOT}-NOTFOUND PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
get_filename_component(subdir_name ${filename} NAME_WE)
|
||||
file(MAKE_DIRECTORY ${tbb_save_to}/${subdir_name})
|
||||
if (NOT EXISTS "${tbb_save_to}/${subdir_name}")
|
||||
message(STATUS "${tbb_save_to}/${subdir_name} can not be created")
|
||||
set(${tbb_get_TBB_ROOT} ${tbb_get_TBB_ROOT}-NOTFOUND PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
message(STATUS "Unpacking ${local_file} to ${tbb_save_to}/${subdir_name}")
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf ${local_file}
|
||||
WORKING_DIRECTORY ${tbb_save_to}/${subdir_name}
|
||||
RESULT_VARIABLE unpacking_result)
|
||||
|
||||
if (NOT unpacking_result EQUAL 0)
|
||||
message(STATUS "Unsuccessful unpacking: ${unpacking_result}")
|
||||
set(${tbb_get_TBB_ROOT} ${tbb_get_TBB_ROOT}-NOTFOUND PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
file(GLOB_RECURSE tbb_h ${tbb_save_to}/${subdir_name}/*/include/tbb/tbb.h)
|
||||
list(GET tbb_h 0 tbb_h)
|
||||
|
||||
if (NOT EXISTS "${tbb_h}")
|
||||
message(STATUS "tbb/tbb.h has not been found in the downloaded package")
|
||||
set(${tbb_get_TBB_ROOT} ${tbb_get_TBB_ROOT}-NOTFOUND PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
get_filename_component(tbb_root "${tbb_h}" PATH)
|
||||
get_filename_component(tbb_root "${tbb_root}" PATH)
|
||||
get_filename_component(tbb_root "${tbb_root}" PATH)
|
||||
|
||||
if (NOT tbb_get_SOURCE_CODE)
|
||||
set(tbb_config_dir ${tbb_root}/cmake)
|
||||
|
||||
if (NOT EXISTS "${tbb_config_dir}")
|
||||
tbb_make_config(TBB_ROOT ${tbb_root} CONFIG_DIR tbb_config_dir)
|
||||
endif()
|
||||
|
||||
set(${tbb_get_CONFIG_DIR} ${tbb_config_dir} PARENT_SCOPE)
|
||||
endif()
|
||||
|
||||
set(${tbb_get_TBB_ROOT} ${tbb_root} PARENT_SCOPE)
|
||||
endfunction()
|
|
@ -0,0 +1,124 @@
|
|||
# Copyright (c) 2019-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
include(CMakeParseArguments)
|
||||
|
||||
# Save the location of Intel TBB CMake modules here, as it will not be possible to do inside functions,
|
||||
# see for details: https://cmake.org/cmake/help/latest/variable/CMAKE_CURRENT_LIST_DIR.html
|
||||
set(_tbb_cmake_module_path ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
function(tbb_install_config)
|
||||
set(oneValueArgs INSTALL_DIR
|
||||
SYSTEM_NAME
|
||||
LIB_REL_PATH INC_REL_PATH BIN_REL_PATH TBB_VERSION TBB_VERSION_FILE
|
||||
LIB_PATH BIN_PATH INC_PATH) # If TBB is installed on the system
|
||||
|
||||
cmake_parse_arguments(tbb_IC "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
get_filename_component(config_install_dir ${tbb_IC_INSTALL_DIR} ABSOLUTE)
|
||||
file(MAKE_DIRECTORY ${config_install_dir})
|
||||
|
||||
# --- TBB_LIB_REL_PATH handling ---
|
||||
set(TBB_LIB_REL_PATH "../../../lib")
|
||||
|
||||
if (tbb_IC_LIB_REL_PATH)
|
||||
file(TO_CMAKE_PATH ${tbb_IC_LIB_REL_PATH} TBB_LIB_REL_PATH)
|
||||
endif()
|
||||
|
||||
if (tbb_IC_LIB_PATH)
|
||||
get_filename_component(lib_abs_path ${tbb_IC_LIB_PATH} ABSOLUTE)
|
||||
file(RELATIVE_PATH TBB_LIB_REL_PATH ${config_install_dir} ${lib_abs_path})
|
||||
unset(lib_abs_path)
|
||||
endif()
|
||||
# ------
|
||||
|
||||
# --- TBB_BIN_REL_PATH handling ---
|
||||
set(TBB_BIN_REL_PATH "../../../bin")
|
||||
|
||||
if (tbb_IC_BIN_REL_PATH)
|
||||
file(TO_CMAKE_PATH ${tbb_IC_BIN_REL_PATH} TBB_BIN_REL_PATH)
|
||||
endif()
|
||||
|
||||
if (tbb_IC_BIN_PATH)
|
||||
get_filename_component(bin_abs_path ${tbb_IC_BIN_PATH} ABSOLUTE)
|
||||
file(RELATIVE_PATH TBB_BIN_REL_PATH ${config_install_dir} ${bin_abs_path})
|
||||
unset(bin_abs_path)
|
||||
endif()
|
||||
# ------
|
||||
|
||||
# --- TBB_INC_REL_PATH handling ---
|
||||
set(TBB_INC_REL_PATH "../../../include")
|
||||
|
||||
if (tbb_IC_INC_REL_PATH)
|
||||
file(TO_CMAKE_PATH ${tbb_IC_INC_REL_PATH} TBB_INC_REL_PATH)
|
||||
endif()
|
||||
|
||||
if (tbb_IC_INC_PATH)
|
||||
get_filename_component(inc_abs_path ${tbb_IC_INC_PATH} ABSOLUTE)
|
||||
file(RELATIVE_PATH TBB_INC_REL_PATH ${config_install_dir} ${inc_abs_path})
|
||||
unset(inc_abs_path)
|
||||
endif()
|
||||
# ------
|
||||
|
||||
# --- TBB_VERSION handling ---
|
||||
if (tbb_IC_TBB_VERSION)
|
||||
set(TBB_VERSION ${tbb_IC_TBB_VERSION})
|
||||
else()
|
||||
set(tbb_version_file "${config_install_dir}/${TBB_INC_REL_PATH}/tbb/tbb_stddef.h")
|
||||
if (tbb_IC_TBB_VERSION_FILE)
|
||||
set(tbb_version_file ${tbb_IC_TBB_VERSION_FILE})
|
||||
endif()
|
||||
|
||||
file(READ ${tbb_version_file} _tbb_stddef)
|
||||
string(REGEX REPLACE ".*#define TBB_VERSION_MAJOR ([0-9]+).*" "\\1" _tbb_ver_major "${_tbb_stddef}")
|
||||
string(REGEX REPLACE ".*#define TBB_VERSION_MINOR ([0-9]+).*" "\\1" _tbb_ver_minor "${_tbb_stddef}")
|
||||
string(REGEX REPLACE ".*#define TBB_INTERFACE_VERSION ([0-9]+).*" "\\1" TBB_INTERFACE_VERSION "${_tbb_stddef}")
|
||||
set(TBB_VERSION "${_tbb_ver_major}.${_tbb_ver_minor}")
|
||||
endif()
|
||||
# ------
|
||||
|
||||
set(tbb_system_name ${CMAKE_SYSTEM_NAME})
|
||||
if (tbb_IC_SYSTEM_NAME)
|
||||
set(tbb_system_name ${tbb_IC_SYSTEM_NAME})
|
||||
endif()
|
||||
|
||||
if (tbb_system_name STREQUAL "Linux")
|
||||
set(TBB_LIB_PREFIX "lib")
|
||||
set(TBB_LIB_EXT "so.2")
|
||||
set(TBB_IMPLIB_RELEASE "")
|
||||
set(TBB_IMPLIB_DEBUG "")
|
||||
elseif (tbb_system_name STREQUAL "Darwin")
|
||||
set(TBB_LIB_PREFIX "lib")
|
||||
set(TBB_LIB_EXT "dylib")
|
||||
set(TBB_IMPLIB_RELEASE "")
|
||||
set(TBB_IMPLIB_DEBUG "")
|
||||
elseif (tbb_system_name STREQUAL "Windows")
|
||||
set(TBB_LIB_PREFIX "")
|
||||
set(TBB_LIB_EXT "dll")
|
||||
# .lib files installed to TBB_LIB_REL_PATH (e.g. <prefix>/lib);
|
||||
# .dll files installed to TBB_BIN_REL_PATH (e.g. <prefix>/bin);
|
||||
# Expand TBB_LIB_REL_PATH here in IMPORTED_IMPLIB property and
|
||||
# redefine it with TBB_BIN_REL_PATH value to properly fill IMPORTED_LOCATION property in TBBConfig.cmake.in template.
|
||||
set(TBB_IMPLIB_RELEASE "
|
||||
IMPORTED_IMPLIB_RELEASE \"\${CMAKE_CURRENT_LIST_DIR}/${TBB_LIB_REL_PATH}/\${_tbb_component}.lib\"")
|
||||
set(TBB_IMPLIB_DEBUG "
|
||||
IMPORTED_IMPLIB_DEBUG \"\${CMAKE_CURRENT_LIST_DIR}/${TBB_LIB_REL_PATH}/\${_tbb_component}_debug.lib\"")
|
||||
set(TBB_LIB_REL_PATH ${TBB_BIN_REL_PATH})
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported OS name: ${tbb_system_name}")
|
||||
endif()
|
||||
|
||||
configure_file(${_tbb_cmake_module_path}/templates/TBBConfig.cmake.in ${config_install_dir}/TBBConfig.cmake @ONLY)
|
||||
configure_file(${_tbb_cmake_module_path}/templates/TBBConfigVersion.cmake.in ${config_install_dir}/TBBConfigVersion.cmake @ONLY)
|
||||
endfunction()
|
|
@ -0,0 +1,164 @@
|
|||
# Copyright (c) 2017-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
#
|
||||
# Usage:
|
||||
# include(TBBMakeConfig.cmake)
|
||||
# tbb_make_config(TBB_ROOT <tbb_root> SYSTEM_NAME <system_name> CONFIG_DIR <var_to_store_config_dir> [SAVE_TO] [CONFIG_FOR_SOURCE TBB_RELEASE_DIR <tbb_release_dir> TBB_DEBUG_DIR <tbb_debug_dir>])
|
||||
#
|
||||
|
||||
include(CMakeParseArguments)
|
||||
|
||||
# Save the location of Intel TBB CMake modules here, as it will not be possible to do inside functions,
|
||||
# see for details: https://cmake.org/cmake/help/latest/variable/CMAKE_CURRENT_LIST_DIR.html
|
||||
set(_tbb_cmake_module_path ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
function(tbb_make_config)
|
||||
set(oneValueArgs TBB_ROOT SYSTEM_NAME CONFIG_DIR SAVE_TO TBB_RELEASE_DIR TBB_DEBUG_DIR)
|
||||
set(options CONFIG_FOR_SOURCE)
|
||||
cmake_parse_arguments(tbb_MK "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
set(tbb_system_name ${CMAKE_SYSTEM_NAME})
|
||||
if (tbb_MK_SYSTEM_NAME)
|
||||
set(tbb_system_name ${tbb_MK_SYSTEM_NAME})
|
||||
endif()
|
||||
|
||||
set(tbb_config_dir ${tbb_MK_TBB_ROOT}/cmake)
|
||||
if (tbb_MK_SAVE_TO)
|
||||
set(tbb_config_dir ${tbb_MK_SAVE_TO})
|
||||
endif()
|
||||
|
||||
file(MAKE_DIRECTORY ${tbb_config_dir})
|
||||
|
||||
set(TBB_DEFAULT_COMPONENTS tbb tbbmalloc tbbmalloc_proxy)
|
||||
|
||||
if (tbb_MK_CONFIG_FOR_SOURCE)
|
||||
set(TBB_RELEASE_DIR ${tbb_MK_TBB_RELEASE_DIR})
|
||||
set(TBB_DEBUG_DIR ${tbb_MK_TBB_DEBUG_DIR})
|
||||
endif()
|
||||
|
||||
if (tbb_system_name STREQUAL "Linux")
|
||||
set(TBB_SHARED_LIB_DIR "lib")
|
||||
set(TBB_X32_SUBDIR "ia32")
|
||||
set(TBB_X64_SUBDIR "intel64")
|
||||
set(TBB_LIB_PREFIX "lib")
|
||||
set(TBB_LIB_EXT "so.2")
|
||||
|
||||
# Note: multiline variable
|
||||
set(TBB_CHOOSE_COMPILER_SUBDIR "set(_tbb_compiler_subdir gcc4.8)
|
||||
|
||||
# For non-GCC compilers try to find version of system GCC to choose right compiler subdirectory.
|
||||
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\" AND NOT CMAKE_C_COMPILER_ID STREQUAL \"GNU\")
|
||||
find_program(_gcc_executable gcc)
|
||||
if (NOT _gcc_executable)
|
||||
message(FATAL_ERROR \"This Intel TBB package is intended to be used only in environment with available 'gcc'\")
|
||||
endif()
|
||||
unset(_gcc_executable)
|
||||
endif()")
|
||||
|
||||
elseif (tbb_system_name STREQUAL "Windows")
|
||||
set(TBB_SHARED_LIB_DIR "bin")
|
||||
set(TBB_X32_SUBDIR "ia32")
|
||||
set(TBB_X64_SUBDIR "intel64")
|
||||
set(TBB_LIB_PREFIX "")
|
||||
set(TBB_LIB_EXT "dll")
|
||||
|
||||
# Note: multiline variable
|
||||
set(TBB_CHOOSE_COMPILER_SUBDIR "if (NOT MSVC)
|
||||
message(FATAL_ERROR \"This Intel TBB package is intended to be used only in the project with MSVC\")
|
||||
endif()
|
||||
|
||||
if (MSVC_VERSION VERSION_LESS 1900)
|
||||
message(FATAL_ERROR \"This Intel TBB package is intended to be used only in the project with MSVC version 1900 (vc14) or higher\")
|
||||
endif()
|
||||
|
||||
set(_tbb_compiler_subdir vc14)
|
||||
|
||||
if (WINDOWS_STORE)
|
||||
set(_tbb_compiler_subdir \${_tbb_compiler_subdir}_uwp)
|
||||
endif()")
|
||||
|
||||
if (tbb_MK_CONFIG_FOR_SOURCE)
|
||||
set(TBB_IMPLIB_RELEASE "
|
||||
IMPORTED_IMPLIB_RELEASE \"${tbb_MK_TBB_RELEASE_DIR}/\${_tbb_component}.lib\"")
|
||||
set(TBB_IMPLIB_DEBUG "
|
||||
IMPORTED_IMPLIB_DEBUG \"${tbb_MK_TBB_DEBUG_DIR}/\${_tbb_component}_debug.lib\"")
|
||||
else()
|
||||
set(TBB_IMPLIB_RELEASE "
|
||||
IMPORTED_IMPLIB_RELEASE \"\${_tbb_root}/lib/\${_tbb_arch_subdir}/\${_tbb_compiler_subdir}/\${_tbb_component}.lib\"")
|
||||
set(TBB_IMPLIB_DEBUG "
|
||||
IMPORTED_IMPLIB_DEBUG \"\${_tbb_root}/lib/\${_tbb_arch_subdir}/\${_tbb_compiler_subdir}/\${_tbb_component}_debug.lib\"")
|
||||
endif()
|
||||
|
||||
# Note: multiline variable
|
||||
# tbb/internal/_tbb_windef.h (included via tbb/tbb_stddef.h) does implicit linkage of some .lib files, use a special define to avoid it
|
||||
set(TBB_COMPILE_DEFINITIONS "
|
||||
INTERFACE_COMPILE_DEFINITIONS \"__TBB_NO_IMPLICIT_LINKAGE=1\"")
|
||||
elseif (tbb_system_name STREQUAL "Darwin")
|
||||
set(TBB_SHARED_LIB_DIR "lib")
|
||||
set(TBB_X32_SUBDIR ".")
|
||||
set(TBB_X64_SUBDIR ".")
|
||||
set(TBB_LIB_PREFIX "lib")
|
||||
set(TBB_LIB_EXT "dylib")
|
||||
set(TBB_CHOOSE_COMPILER_SUBDIR "set(_tbb_compiler_subdir .)")
|
||||
elseif (tbb_system_name STREQUAL "Android")
|
||||
set(TBB_SHARED_LIB_DIR "lib")
|
||||
set(TBB_X32_SUBDIR ".")
|
||||
set(TBB_X64_SUBDIR "x86_64")
|
||||
set(TBB_LIB_PREFIX "lib")
|
||||
set(TBB_LIB_EXT "so")
|
||||
set(TBB_CHOOSE_COMPILER_SUBDIR "set(_tbb_compiler_subdir .)")
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported OS name: ${tbb_system_name}")
|
||||
endif()
|
||||
|
||||
file(READ "${tbb_MK_TBB_ROOT}/include/tbb/tbb_stddef.h" _tbb_stddef)
|
||||
string(REGEX REPLACE ".*#define TBB_VERSION_MAJOR ([0-9]+).*" "\\1" _tbb_ver_major "${_tbb_stddef}")
|
||||
string(REGEX REPLACE ".*#define TBB_VERSION_MINOR ([0-9]+).*" "\\1" _tbb_ver_minor "${_tbb_stddef}")
|
||||
string(REGEX REPLACE ".*#define TBB_INTERFACE_VERSION ([0-9]+).*" "\\1" TBB_INTERFACE_VERSION "${_tbb_stddef}")
|
||||
set(TBB_VERSION "${_tbb_ver_major}.${_tbb_ver_minor}")
|
||||
|
||||
if (tbb_MK_CONFIG_FOR_SOURCE)
|
||||
set(TBB_CHOOSE_ARCH_AND_COMPILER "")
|
||||
set(TBB_RELEASE_LIB_PATH "${TBB_RELEASE_DIR}")
|
||||
set(TBB_DEBUG_LIB_PATH "${TBB_DEBUG_DIR}")
|
||||
set(TBB_UNSET_ADDITIONAL_VARIABLES "")
|
||||
else()
|
||||
# Note: multiline variable
|
||||
set(TBB_CHOOSE_ARCH_AND_COMPILER "
|
||||
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
set(_tbb_arch_subdir ${TBB_X64_SUBDIR})
|
||||
else()
|
||||
set(_tbb_arch_subdir ${TBB_X32_SUBDIR})
|
||||
endif()
|
||||
|
||||
${TBB_CHOOSE_COMPILER_SUBDIR}
|
||||
|
||||
get_filename_component(_tbb_lib_path \"\${_tbb_root}/${TBB_SHARED_LIB_DIR}/\${_tbb_arch_subdir}/\${_tbb_compiler_subdir}\" ABSOLUTE)
|
||||
")
|
||||
|
||||
set(TBB_RELEASE_LIB_PATH "\${_tbb_lib_path}")
|
||||
set(TBB_DEBUG_LIB_PATH "\${_tbb_lib_path}")
|
||||
|
||||
# Note: multiline variable
|
||||
set(TBB_UNSET_ADDITIONAL_VARIABLES "
|
||||
unset(_tbb_arch_subdir)
|
||||
unset(_tbb_compiler_subdir)")
|
||||
endif()
|
||||
|
||||
configure_file(${_tbb_cmake_module_path}/templates/TBBConfigInternal.cmake.in ${tbb_config_dir}/TBBConfig.cmake @ONLY)
|
||||
configure_file(${_tbb_cmake_module_path}/templates/TBBConfigVersion.cmake.in ${tbb_config_dir}/TBBConfigVersion.cmake @ONLY)
|
||||
|
||||
set(${tbb_MK_CONFIG_DIR} ${tbb_config_dir} PARENT_SCOPE)
|
||||
endfunction()
|
|
@ -0,0 +1,41 @@
|
|||
# Copyright (c) 2017-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
function(tbb_conf_gen_print_help)
|
||||
message("Usage: cmake -DTBB_ROOT=<tbb_root> -DTBB_OS=Linux|Windows|Darwin [-DSAVE_TO=<path>] -P tbb_config_generator.cmake")
|
||||
endfunction()
|
||||
|
||||
if (NOT DEFINED TBB_ROOT)
|
||||
tbb_conf_gen_print_help()
|
||||
message(FATAL_ERROR "Required parameter TBB_ROOT is not defined")
|
||||
endif()
|
||||
|
||||
if (NOT EXISTS "${TBB_ROOT}")
|
||||
tbb_conf_gen_print_help()
|
||||
message(FATAL_ERROR "TBB_ROOT=${TBB_ROOT} does not exist")
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED TBB_OS)
|
||||
tbb_conf_gen_print_help()
|
||||
message(FATAL_ERROR "Required parameter TBB_OS is not defined")
|
||||
endif()
|
||||
|
||||
if (DEFINED SAVE_TO)
|
||||
set(tbb_conf_gen_save_to_param SAVE_TO ${SAVE_TO})
|
||||
endif()
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/TBBMakeConfig.cmake)
|
||||
tbb_make_config(TBB_ROOT ${TBB_ROOT} CONFIG_DIR tbb_config_dir SYSTEM_NAME ${TBB_OS} ${tbb_conf_gen_save_to_param})
|
||||
|
||||
message(STATUS "TBBConfig files were created in ${tbb_config_dir}")
|
|
@ -0,0 +1,48 @@
|
|||
# Copyright (c) 2019-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
function(tbb_conf_gen_print_help)
|
||||
message("Usage: cmake -DINSTALL_DIR=<config_install_dir> -DSYSTEM_NAME=Linux|Darwin|Windows <parameters> -P tbb_config_generator.cmake
|
||||
|
||||
Parameters:
|
||||
For custom TBB package:
|
||||
-DTBB_VERSION_FILE=<tbb_version_file>
|
||||
-DTBB_VERSION=<major>.<minor>.<interface> (alternative to TBB_VERSION_FILE)
|
||||
-DINC_REL_PATH=<relative_path_to_tbb_headers>
|
||||
-DLIB_REL_PATH=<relative_path_to_tbb_libs>
|
||||
-DBIN_REL_PATH=<relative_path_to_tbb_dlls> (only for Windows)
|
||||
For installed TBB:
|
||||
-DINC_PATH=<path_to_installed_tbb_headers>
|
||||
-DLIB_PATH=<path_to_installed_tbb_libs>
|
||||
-DBIN_PATH=<path_to_installed_tbb_dlls> (only for Windows)
|
||||
")
|
||||
endfunction()
|
||||
|
||||
if (NOT DEFINED INSTALL_DIR)
|
||||
tbb_conf_gen_print_help()
|
||||
message(FATAL_ERROR "Required parameter INSTALL_DIR is not defined")
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED SYSTEM_NAME)
|
||||
tbb_conf_gen_print_help()
|
||||
message(FATAL_ERROR "Required parameter SYSTEM_NAME is not defined")
|
||||
endif()
|
||||
|
||||
foreach (arg TBB_VERSION INC_REL_PATH LIB_REL_PATH BIN_REL_PATH TBB_VERSION_FILE INC_PATH LIB_PATH BIN_PATH)
|
||||
set(optional_args ${optional_args} ${arg} ${${arg}})
|
||||
endforeach()
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/TBBInstallConfig.cmake)
|
||||
tbb_install_config(INSTALL_DIR ${INSTALL_DIR} SYSTEM_NAME ${SYSTEM_NAME} ${optional_args})
|
||||
message(STATUS "TBBConfig files were created in ${INSTALL_DIR}")
|
|
@ -0,0 +1,96 @@
|
|||
# Copyright (c) 2017-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# It defines the following variables:
|
||||
# TBB_<component>_FOUND
|
||||
# TBB_IMPORTED_TARGETS
|
||||
#
|
||||
# TBBConfigVersion.cmake defines TBB_VERSION
|
||||
#
|
||||
# Initialize to default values
|
||||
if (NOT TBB_IMPORTED_TARGETS)
|
||||
set(TBB_IMPORTED_TARGETS "")
|
||||
endif()
|
||||
|
||||
if (NOT TBB_FIND_COMPONENTS)
|
||||
set(TBB_FIND_COMPONENTS "tbb;tbbmalloc;tbbmalloc_proxy")
|
||||
foreach (_tbb_component ${TBB_FIND_COMPONENTS})
|
||||
set(TBB_FIND_REQUIRED_${_tbb_component} 1)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
set(TBB_INTERFACE_VERSION @TBB_INTERFACE_VERSION@)
|
||||
|
||||
# Add components with internal dependencies: tbbmalloc_proxy -> tbbmalloc
|
||||
list(FIND TBB_FIND_COMPONENTS tbbmalloc_proxy _tbbmalloc_proxy_ix)
|
||||
if (NOT _tbbmalloc_proxy_ix EQUAL -1)
|
||||
list(FIND TBB_FIND_COMPONENTS tbbmalloc _tbbmalloc_ix)
|
||||
if (_tbbmalloc_ix EQUAL -1)
|
||||
list(APPEND TBB_FIND_COMPONENTS tbbmalloc)
|
||||
set(TBB_FIND_REQUIRED_tbbmalloc ${TBB_FIND_REQUIRED_tbbmalloc_proxy})
|
||||
endif()
|
||||
unset(_tbbmalloc_ix)
|
||||
endif()
|
||||
unset(_tbbmalloc_proxy_ix)
|
||||
|
||||
foreach (_tbb_component ${TBB_FIND_COMPONENTS})
|
||||
set(TBB_${_tbb_component}_FOUND 0)
|
||||
|
||||
get_filename_component(_tbb_release_lib "${CMAKE_CURRENT_LIST_DIR}/@TBB_LIB_REL_PATH@/@TBB_LIB_PREFIX@${_tbb_component}.@TBB_LIB_EXT@" ABSOLUTE)
|
||||
|
||||
if (NOT TBB_FIND_RELEASE_ONLY)
|
||||
get_filename_component(_tbb_debug_lib "${CMAKE_CURRENT_LIST_DIR}/@TBB_LIB_REL_PATH@/@TBB_LIB_PREFIX@${_tbb_component}_debug.@TBB_LIB_EXT@" ABSOLUTE)
|
||||
endif()
|
||||
|
||||
if (EXISTS "${_tbb_release_lib}" OR EXISTS "${_tbb_debug_lib}")
|
||||
if (NOT TARGET TBB::${_tbb_component})
|
||||
add_library(TBB::${_tbb_component} SHARED IMPORTED)
|
||||
|
||||
get_filename_component(_tbb_include_dir "${CMAKE_CURRENT_LIST_DIR}/@TBB_INC_REL_PATH@" ABSOLUTE)
|
||||
set_target_properties(TBB::${_tbb_component} PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${_tbb_include_dir}")
|
||||
unset(_tbb_include_dir)
|
||||
|
||||
if (EXISTS "${_tbb_release_lib}")
|
||||
set_target_properties(TBB::${_tbb_component} PROPERTIES
|
||||
IMPORTED_LOCATION_RELEASE "${_tbb_release_lib}"@TBB_IMPLIB_RELEASE@)
|
||||
set_property(TARGET TBB::${_tbb_component} APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
||||
endif()
|
||||
|
||||
if (EXISTS "${_tbb_debug_lib}")
|
||||
set_target_properties(TBB::${_tbb_component} PROPERTIES
|
||||
IMPORTED_LOCATION_DEBUG "${_tbb_debug_lib}"@TBB_IMPLIB_DEBUG@)
|
||||
set_property(TARGET TBB::${_tbb_component} APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
endif()
|
||||
|
||||
# Add internal dependencies for imported targets: TBB::tbbmalloc_proxy -> TBB::tbbmalloc
|
||||
if (_tbb_component STREQUAL tbbmalloc_proxy)
|
||||
set_target_properties(TBB::tbbmalloc_proxy PROPERTIES INTERFACE_LINK_LIBRARIES TBB::tbbmalloc)
|
||||
endif()
|
||||
endif()
|
||||
list(APPEND TBB_IMPORTED_TARGETS TBB::${_tbb_component})
|
||||
set(TBB_${_tbb_component}_FOUND 1)
|
||||
elseif (TBB_FIND_REQUIRED AND TBB_FIND_REQUIRED_${_tbb_component})
|
||||
message(STATUS "Missed required Intel TBB component: ${_tbb_component}")
|
||||
if (TBB_FIND_RELEASE_ONLY)
|
||||
message(STATUS " ${_tbb_release_lib} must exist.")
|
||||
else()
|
||||
message(STATUS " one or both of:\n ${_tbb_release_lib}\n ${_tbb_debug_lib}\n files must exist.")
|
||||
endif()
|
||||
set(TBB_FOUND FALSE)
|
||||
endif()
|
||||
endforeach()
|
||||
list(REMOVE_DUPLICATES TBB_IMPORTED_TARGETS)
|
||||
unset(_tbb_release_lib)
|
||||
unset(_tbb_debug_lib)
|
|
@ -0,0 +1,98 @@
|
|||
# Copyright (c) 2017-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# It defines the following variables:
|
||||
# TBB_<component>_FOUND
|
||||
# TBB_IMPORTED_TARGETS
|
||||
#
|
||||
# TBBConfigVersion.cmake defines TBB_VERSION
|
||||
#
|
||||
# Initialize to default values
|
||||
if (NOT TBB_IMPORTED_TARGETS)
|
||||
set(TBB_IMPORTED_TARGETS "")
|
||||
endif()
|
||||
|
||||
if (NOT TBB_FIND_COMPONENTS)
|
||||
set(TBB_FIND_COMPONENTS "@TBB_DEFAULT_COMPONENTS@")
|
||||
foreach (_tbb_component ${TBB_FIND_COMPONENTS})
|
||||
set(TBB_FIND_REQUIRED_${_tbb_component} 1)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
# Add components with internal dependencies: tbbmalloc_proxy -> tbbmalloc
|
||||
list(FIND TBB_FIND_COMPONENTS tbbmalloc_proxy _tbbmalloc_proxy_ix)
|
||||
if (NOT _tbbmalloc_proxy_ix EQUAL -1)
|
||||
list(FIND TBB_FIND_COMPONENTS tbbmalloc _tbbmalloc_ix)
|
||||
if (_tbbmalloc_ix EQUAL -1)
|
||||
list(APPEND TBB_FIND_COMPONENTS tbbmalloc)
|
||||
set(TBB_FIND_REQUIRED_tbbmalloc ${TBB_FIND_REQUIRED_tbbmalloc_proxy})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(TBB_INTERFACE_VERSION @TBB_INTERFACE_VERSION@)
|
||||
|
||||
get_filename_component(_tbb_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
get_filename_component(_tbb_root "${_tbb_root}" PATH)
|
||||
@TBB_CHOOSE_ARCH_AND_COMPILER@
|
||||
foreach (_tbb_component ${TBB_FIND_COMPONENTS})
|
||||
set(TBB_${_tbb_component}_FOUND 0)
|
||||
|
||||
set(_tbb_release_lib "@TBB_RELEASE_LIB_PATH@/@TBB_LIB_PREFIX@${_tbb_component}.@TBB_LIB_EXT@")
|
||||
|
||||
if (NOT TBB_FIND_RELEASE_ONLY)
|
||||
set(_tbb_debug_lib "@TBB_DEBUG_LIB_PATH@/@TBB_LIB_PREFIX@${_tbb_component}_debug.@TBB_LIB_EXT@")
|
||||
endif()
|
||||
|
||||
if (EXISTS "${_tbb_release_lib}" OR EXISTS "${_tbb_debug_lib}")
|
||||
if (NOT TARGET TBB::${_tbb_component})
|
||||
add_library(TBB::${_tbb_component} SHARED IMPORTED)
|
||||
set_target_properties(TBB::${_tbb_component} PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${_tbb_root}/include"@TBB_COMPILE_DEFINITIONS@)
|
||||
|
||||
if (EXISTS "${_tbb_release_lib}")
|
||||
set_target_properties(TBB::${_tbb_component} PROPERTIES
|
||||
IMPORTED_LOCATION_RELEASE "${_tbb_release_lib}"@TBB_IMPLIB_RELEASE@)
|
||||
set_property(TARGET TBB::${_tbb_component} APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
||||
endif()
|
||||
|
||||
if (EXISTS "${_tbb_debug_lib}")
|
||||
set_target_properties(TBB::${_tbb_component} PROPERTIES
|
||||
IMPORTED_LOCATION_DEBUG "${_tbb_debug_lib}"@TBB_IMPLIB_DEBUG@)
|
||||
set_property(TARGET TBB::${_tbb_component} APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||
endif()
|
||||
|
||||
# Add internal dependencies for imported targets: TBB::tbbmalloc_proxy -> TBB::tbbmalloc
|
||||
if (_tbb_component STREQUAL tbbmalloc_proxy)
|
||||
set_target_properties(TBB::tbbmalloc_proxy PROPERTIES INTERFACE_LINK_LIBRARIES TBB::tbbmalloc)
|
||||
endif()
|
||||
endif()
|
||||
list(APPEND TBB_IMPORTED_TARGETS TBB::${_tbb_component})
|
||||
set(TBB_${_tbb_component}_FOUND 1)
|
||||
elseif (TBB_FIND_REQUIRED AND TBB_FIND_REQUIRED_${_tbb_component})
|
||||
message(STATUS "Missed required Intel TBB component: ${_tbb_component}")
|
||||
if (TBB_FIND_RELEASE_ONLY)
|
||||
message(STATUS " ${_tbb_release_lib} must exist.")
|
||||
else()
|
||||
message(STATUS " one or both of:\n ${_tbb_release_lib}\n ${_tbb_debug_lib}\n files must exist.")
|
||||
endif()
|
||||
set(TBB_FOUND FALSE)
|
||||
endif()
|
||||
endforeach()
|
||||
list(REMOVE_DUPLICATES TBB_IMPORTED_TARGETS)
|
||||
@TBB_UNSET_ADDITIONAL_VARIABLES@
|
||||
unset(_tbbmalloc_proxy_ix)
|
||||
unset(_tbbmalloc_ix)
|
||||
unset(_tbb_lib_path)
|
||||
unset(_tbb_release_lib)
|
||||
unset(_tbb_debug_lib)
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright (c) 2017-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
set(PACKAGE_VERSION @TBB_VERSION@)
|
||||
|
||||
if ("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
else()
|
||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_EXACT TRUE)
|
||||
endif()
|
||||
endif()
|
|
@ -0,0 +1,85 @@
|
|||
------------------------------------------------------------------------
|
||||
Intel(R) oneAPI Threading Building Blocks (oneTBB) - Release Notes
|
||||
------------------------------------------------------------------------
|
||||
|
||||
|
||||
System Requirements
|
||||
-------------------
|
||||
|
||||
Intel(R) oneAPI Threading Building Blocks (oneTBB) is available
|
||||
(see https://software.intel.com/en-us/oneapi/tbb) as a
|
||||
binary distribution.
|
||||
|
||||
Binary distributions are validated
|
||||
and officially supported for the hardware, software, operating systems
|
||||
and compilers listed here.
|
||||
|
||||
Hardware - Recommended
|
||||
|
||||
Microsoft* Windows* Systems
|
||||
Intel(R) Core(TM) processor family
|
||||
Intel(R) Xeon(R) processor family
|
||||
Linux* Systems
|
||||
Intel(R) Core(TM) processor family
|
||||
Intel(R) Xeon(R) processor family
|
||||
Android* Systems
|
||||
Intel(R) Atom(TM) processor family
|
||||
|
||||
Hardware - Supported
|
||||
|
||||
Intel(R) Celeron(R) processor family
|
||||
Intel(R) Pentium(R) processor family
|
||||
Intel(R) Xeon Phi(TM) processor family
|
||||
Intel(R) Atom(TM) processor family
|
||||
Non Intel(R) processors compatible with the above processors
|
||||
|
||||
Software - Minimum Requirements
|
||||
|
||||
Supported operating system (see below)
|
||||
Supported compiler (see below)
|
||||
|
||||
Software - Supported Operating Systems
|
||||
|
||||
Systems with Microsoft* Windows* operating systems
|
||||
Microsoft* Windows* 10
|
||||
Microsoft* Windows* Server 2016
|
||||
Microsoft* Windows* Server 2019
|
||||
Systems with Linux* operating systems
|
||||
Amazon* Linux 2
|
||||
CentOS* 6, 7
|
||||
Clear* Linux
|
||||
Debian* 9, 10
|
||||
Fedora* 30
|
||||
Red Hat* Enterprise Linux* 7, 8
|
||||
SuSE* Linux* Enterprise Server 12, 15
|
||||
Ubuntu* 16.04 LTS, 18.04 LTS, 19.04
|
||||
WindRiver* Linux 19, 20
|
||||
Yocto* 2.7, 2.8
|
||||
|
||||
Software - Supported Compilers
|
||||
|
||||
Intel(R) oneAPI DPC++ Compiler
|
||||
Intel(R) C++ Compiler 18, 19 and 19.1 version
|
||||
Microsoft* Visual C++ 14.1 (Microsoft* Visual Studio* 2017,
|
||||
Windows* OS only)
|
||||
Microsoft* Visual C++ 14.2 (Microsoft* Visual Studio* 2019,
|
||||
Windows* OS only)
|
||||
For each supported Linux* operating system, the standard gcc
|
||||
version provided with that operating system is supported
|
||||
GNU Compilers (gcc) 4.8 - 9.1
|
||||
GNU C Library (glibc) version 2.4 - 2.29
|
||||
Clang* 3.8 - 8.0
|
||||
|
||||
------------------------------------------------------------------------
|
||||
(C) 2020 Intel Corporation
|
||||
|
||||
Intel, the Intel logo, Intel Core, Intel Atom, Celeron, Xeon,
|
||||
Intel Xeon Phi and Pentium are trademarks of Intel Corporation
|
||||
in the U.S. and/or other countries.
|
||||
|
||||
* Other names and brands may be claimed as the property of others.
|
||||
|
||||
Third Party and Open Source Licenses
|
||||
|
||||
Content of some examples or binaries may be covered by various open-source
|
||||
licenses. See the index.html file in each respective folder for details.
|
|
@ -0,0 +1,9 @@
|
|||
<hr>
|
||||
<p></p>
|
||||
Copyright © 2005-2020 Intel Corporation. All Rights Reserved.
|
||||
<p></p>
|
||||
Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
|
||||
registered trademarks or trademarks of Intel Corporation or its
|
||||
subsidiaries in the United States and other countries.
|
||||
<p></p>
|
||||
* Other names and brands may be claimed as the property of others.
|
145
download.md
145
download.md
|
@ -1,145 +0,0 @@
|
|||
# Download links for old Intel(R) Threading Building Blocks packages
|
||||
|
||||
* 4.3 Update 6:
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb43_20150611oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb43_20150611oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb43_20150611oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb43_20150611oss_osx.tgz);
|
||||
|
||||
* 4.3 Update 5
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb43_20150424oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb43_20150424oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb43_20150424oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb43_20150424oss_osx.tgz);
|
||||
|
||||
* 4.3 Update 4
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb43_20150316oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb43_20150316oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb43_20150316oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb43_20150316oss_osx.tgz);
|
||||
|
||||
* 4.3 Update 3
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb43_20150209oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb43_20150209oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb43_20150209oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb43_20150209oss_osx.tgz);
|
||||
|
||||
* 4.3 Update 2
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb43_20141204oss_src_0.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb43_20141204oss_win_1.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb43_20141204oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb43_20141204oss_osx_1.tgz);
|
||||
|
||||
* 4.3 Update 1
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb43_20141023oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb43_20141023oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb43_20141023oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb43_20141023oss_osx.tgz);
|
||||
|
||||
* 4.3 Initial Release
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb43_20140724oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb43_20140724oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb43_20140724oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb43_20140724oss_osx.tgz);
|
||||
|
||||
* 4.2 Update 5
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20140601oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb42_20140601oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb42_20140601oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb42_20140601oss_osx.tgz);
|
||||
|
||||
* 4.2 Update 4
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20140416oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb42_20140416oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb42_20140416oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb42_20140416oss_osx.tgz);
|
||||
|
||||
* 4.2 Update 3
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20140122oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb42_20140122oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb42_20140122oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb42_20140122oss_osx_0.tgz);
|
||||
|
||||
* 4.2 Update 2
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20131118oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb42_20131118oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb42_20131118oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb42_20131118oss_osx.tgz);
|
||||
|
||||
* 4.2 Update 1
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20131003oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb42_20131003oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb42_20131003oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb42_20131003oss_osx.tgz);
|
||||
|
||||
* 4.2 Initial Release
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20130725oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb42_20130725oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb42_20130725oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb42_20130725oss_osx.tgz);
|
||||
|
||||
* 4.1 Update 4
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb41_20130613oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb41_20130613oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb41_20130613oss_lin_0.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb41_20130613oss_osx.tgz);
|
||||
|
||||
* 4.1 Update 3
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb41_20130314oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb41_20130314oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb41_20130314oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb41_20130314oss_osx.tgz);
|
||||
|
||||
* 4.1 Update 2
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb41_20130116oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb41_20130116oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb41_20130116oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb41_20130116oss_osx.tgz);
|
||||
|
||||
* 4.1 Update 1
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb41_20121003oss_src_1.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb41_20121003oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb41_20121003oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb41_20121003oss_osx.tgz);
|
||||
|
||||
* 4.1 Initial Release
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb41_20120718oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb41_20120718oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb41_20120718oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb41_20120718oss_osx.tgz);
|
||||
|
||||
* 4.0 Update 5
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb40_20120613oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb40_20120613oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb40_20120613oss_lin_0.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb40_20120613oss_mac.tgz);
|
||||
|
||||
* 4.0 Update 4
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb40_20120408oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb40_20120408oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb40_20120408oss_lin_0.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb40_20120408oss_mac.tgz);
|
||||
|
||||
* 4.0 Update 3
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb40_20120201oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb40_20120201oss_win_2.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb40_20120201oss_lin_1.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb40_20120201oss_mac_0.tgz);
|
||||
|
||||
* 4.0 Update 2
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb40_20111130oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb40_20111130oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb40_20111130oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb40_20111130oss_mac.tgz);
|
||||
|
||||
* 4.0 Update 1
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb40_20111003oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb40_20111003oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb40_20111003oss_lin_0.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb40_20111003oss_mac.tgz);
|
||||
|
||||
* 4.0 Initial Release
|
||||
[Source](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb40_20110809oss_src.tgz);
|
||||
[Windows* OS](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb40_20110809oss_win.zip);
|
||||
[Linux*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/linux/tbb40_20110809oss_lin.tgz);
|
||||
[OS X*](https://www.threadingbuildingblocks.org/sites/default/files/software_releases/mac/tbb40_20110809oss_mac.tgz);
|
|
@ -0,0 +1,344 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
::selection {
|
||||
background: #b7ffb7;
|
||||
}
|
||||
::-moz-selection {
|
||||
background: #b7ffb7;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 16px;
|
||||
width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#banner {
|
||||
/* Div for banner */
|
||||
float:left;
|
||||
margin: 0px;
|
||||
margin-bottom: 10px;
|
||||
width: 100%;
|
||||
background-color: #0071C5;
|
||||
z-index: 0;
|
||||
}
|
||||
#banner .logo {
|
||||
/* Apply to logo in banner. Add as class to image tag. */
|
||||
float: left;
|
||||
margin-right: 20px;
|
||||
margin-left: 20px;
|
||||
margin-top: 15px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
font-size: 36px;
|
||||
}
|
||||
h1.title {
|
||||
/* Add as class to H1 in banner */
|
||||
font-family: "Intel Clear", Verdana, Arial, sans-serif;
|
||||
font-weight:normal;
|
||||
color: #FFFFFF;
|
||||
font-size: 170%;
|
||||
margin-right: 40px;
|
||||
margin-left: 40px;
|
||||
padding-right: 20px;
|
||||
text-indent: 20px;
|
||||
}
|
||||
.h3-alike {
|
||||
display:inline;
|
||||
font-size: 1.17em;
|
||||
font-weight: bold;
|
||||
color: #0071C5;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.17em;
|
||||
font-weight: bold;
|
||||
color: #0071C5;
|
||||
}
|
||||
.h4-alike {
|
||||
display:inline;
|
||||
font-size: 1.05em;
|
||||
font-weight: bold;
|
||||
}
|
||||
pre {
|
||||
font-family: "Consolas", Monaco, monospace;
|
||||
font-size:small;
|
||||
background: #fafafa;
|
||||
margin: 0;
|
||||
padding-left:20px;
|
||||
}
|
||||
#footer {
|
||||
font-size: small;
|
||||
}
|
||||
code {
|
||||
font-family: "Consolas", Monaco, monospace;
|
||||
}
|
||||
.code-block
|
||||
{
|
||||
padding-left:20px;
|
||||
}
|
||||
.changes {
|
||||
margin: 1em 0;
|
||||
}
|
||||
.changes input:active {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
.changes input:hover:after {
|
||||
padding-left: 16px;
|
||||
font-size: 10px;
|
||||
content: 'More';
|
||||
}
|
||||
.changes input:checked:hover:after {
|
||||
content: 'Less';
|
||||
}
|
||||
.changes input + .show-hide {
|
||||
display: none;
|
||||
}
|
||||
.changes input:checked + .show-hide {
|
||||
display: block;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0.5em 0 0.5em 2.5em;
|
||||
}
|
||||
ul li {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
ul li:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.disc {
|
||||
list-style-type:disc
|
||||
}
|
||||
.circ {
|
||||
list-style-type:circle
|
||||
}
|
||||
|
||||
.single {
|
||||
padding: 0 0.5em;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------- */
|
||||
/* Table styles */
|
||||
table{
|
||||
margin-bottom:5pt;
|
||||
border-collapse:collapse;
|
||||
margin-left:0px;
|
||||
margin-top:0.3em;
|
||||
font-size:10pt;
|
||||
}
|
||||
tr{
|
||||
vertical-align:top;
|
||||
}
|
||||
th,
|
||||
th h3{
|
||||
padding:4px;
|
||||
text-align:left;
|
||||
background-color:#0071C5;
|
||||
font-weight:bold;
|
||||
margin-top:1px;
|
||||
margin-bottom:0;
|
||||
color:#FFFFFF;
|
||||
font-size:10pt;
|
||||
vertical-align:middle;
|
||||
}
|
||||
th{
|
||||
border:1px #dddddd solid;
|
||||
padding-top:2px;
|
||||
padding-bottom:0px;
|
||||
padding-right:3px;
|
||||
padding-left:3px;
|
||||
}
|
||||
td{
|
||||
border:1px #dddddd solid;
|
||||
vertical-align:top;
|
||||
font-size:100%;
|
||||
text-align:left;
|
||||
margin-bottom:0;
|
||||
}
|
||||
td,
|
||||
td p{
|
||||
margin-top:0;
|
||||
margin-left:0;
|
||||
text-align:left;
|
||||
font-size:inherit;
|
||||
line-height:120%;
|
||||
}
|
||||
td p{
|
||||
margin-bottom:0;
|
||||
padding-top:5px;
|
||||
padding-bottom:5px;
|
||||
padding-right:5px;
|
||||
padding-left:1px;
|
||||
}
|
||||
.noborder{
|
||||
border:0px none;
|
||||
}
|
||||
.noborder1stcol{
|
||||
border:0px none;
|
||||
padding-left:0pt;
|
||||
}
|
||||
td ol{
|
||||
font-size:inherit;
|
||||
margin-left:28px;
|
||||
}
|
||||
td ul{
|
||||
font-size:inherit;
|
||||
margin-left:24px;
|
||||
}
|
||||
.DefListTbl{
|
||||
width:90%;
|
||||
margin-left:-3pt;
|
||||
}
|
||||
.syntaxdiagramtbl{
|
||||
margin-left:-3pt;
|
||||
}
|
||||
.sdtbl{
|
||||
}
|
||||
.sdrow{
|
||||
}
|
||||
.sdtblp{
|
||||
border:0px none;
|
||||
font-size:inherit;
|
||||
line-height:120%;
|
||||
margin-bottom:0;
|
||||
padding-bottom:0px;
|
||||
padding-top:5px;
|
||||
padding-left:0px;
|
||||
padding-right:5px;
|
||||
vertical-align:top;
|
||||
}
|
||||
.idepara, .ide_para{
|
||||
border:0px none;
|
||||
font-size:inherit;
|
||||
line-height:120%;
|
||||
margin-bottom:0;
|
||||
padding-bottom:0px;
|
||||
padding-top:5px;
|
||||
padding-left:0px;
|
||||
padding-right:5px;
|
||||
vertical-align:top;
|
||||
}
|
||||
|
||||
.specs {
|
||||
border-collapse:collapse;
|
||||
}
|
||||
.specs td, .specs th {
|
||||
font-size: 14px;
|
||||
}
|
||||
.specs td {
|
||||
border: 1px solid black;
|
||||
}
|
||||
.specs td td, .specs td th {
|
||||
border: none;
|
||||
}
|
||||
.specs td, .specs td td, .specs td th {
|
||||
padding: 0 0.2em 0.2em;
|
||||
text-align: center;
|
||||
}
|
||||
.specs td tr:last-child td,
|
||||
.specs td tr:last-child th {
|
||||
padding: 0 0.2em;
|
||||
}
|
||||
.serial-time {
|
||||
}
|
||||
.modified-time {
|
||||
width: 6.5em;
|
||||
}
|
||||
.compiler {
|
||||
}
|
||||
.comp-opt {
|
||||
}
|
||||
.sys-specs {
|
||||
width: 18em;
|
||||
}
|
||||
.note {
|
||||
font-size:small;
|
||||
font-style: italic;
|
||||
}
|
||||
</style>
|
||||
<title>Intel® Threading Building Blocks. Get Started Samples</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="banner">
|
||||
<img class="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAAAsCAYAAAA+aAX8AAAAAXNSR0IArs4c6QAAAARnQU1BAACx
|
||||
jwv8YQUAAAAJcEhZcwAALiIAAC4iAari3ZIAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVh
|
||||
ZHlxyWU8AAAIN0lEQVRoQ+WaCaxdUxSGW2ouatZWaVS15nkqkZhSVERQglLEPCam1BCixhqqCKUS
|
||||
NIiYpxhqHmouIeaY5ylFzA/v1fev8+/j3N5737v3vtf3buNP/uy9/7X2Ovuse4a997m9mgltbW2L
|
||||
wRHwcHgFfAx+AH+GCb/BT2fNmvUk5ZXwYOrrOsTcCU5CJ74pPBJeA5+Bn8LfOLmagf/f8Af4NrwD
|
||||
ngg3wdTHh2pOMMB1Gejx8AE4M85mNqD/A7+D78GXkXQFTIMPwUfhdPg6/AxWTRw29b8QruPD9zwY
|
||||
zPrwHPi2xxmg3QrfgDfD05BGU24EB1HvC3s7REXgtwDsDzeEY+Ak+AJsUfwE2sJdcBN37V4whiU4
|
||||
+KGUM2JEBtpzUInZEa5g9y4FcYfAo+GLPmwOND2HFrXrnAUHWgnq0vzDB2+Bt0H9coPs1m3gmNvD
|
||||
ZyITBu234Jp26XoQfCC80sfTAXVv7wOXskuPgnHoSvnTw9P49MDdyOauAQEXhWdC4Vd4ARxmc1OB
|
||||
cW0Gv3U+lJDvKFa0ufMg4GXwR3gs7J57sRNoaWnR2+znLB2RkKds6jwItvbckIQiGO+eTkSby71t
|
||||
qh100qtsUCJxmmpSw5i2gWebR1jWm2047T1gf0vyfViJEKi/TtHua7wMdNJs8U/zDzjUpqYA47k4
|
||||
O704wY+kUZ2P+glQc5ldac9j323sF1cH2EB6h8BxYZdbRDeDOJ16UBJiHDFuMMdYbhjEGA8DxJ4h
|
||||
jXIemmMpz6ccqbZ1JUlT/3SrHC+9XeB0MjzV9RHqKFAXVg2nBkH/lxxO8aZYbhjEKEuGQH1BuCKc
|
||||
z1IAN61jAtiut1wZ+ByIkwa6r9t6ZmhSFZw9eL0gxiMw4SLLDYMYFZNRDbhpcpgwzXI5MOqSEvKM
|
||||
Ue8D+xU4r/Xe+C8HB1ThkhFgNqAXk6FVqyZuA1LcItBXQd+WUvf6YMslwFZvMs7KvMP/SculwKa3
|
||||
hfYPPsZpfsvS9QD9PRHbcOmUC9J+H2qfoRJ/0MHgFhHIQC8mQ8twxZ0Ji099vSGegn/TP0BdD/Db
|
||||
Ycn0nna9yZiceQcetFwKDE/4oNtZCtDeXHoC7dWlU1Uyvs7U6sBHJ7FaBAPU82TYJUAzFnCU+1mq
|
||||
COyfwGLi6k3G05l34BrL/wFxjA/0mKUcaNqBKiJODHclQ3sLCVqZprfEvVCLtThhiskRDFAvXhnv
|
||||
QPlfi5uW7ytTL14Nr0Bd1pfDXy1Lv93h6koGLstCLR/SuPJ5SQBBD8hPZATbWs6BrdZk7B4dDNpT
|
||||
Mjkw3bL0YjLOsxygPUWDyExtD1GNV6JAeyTUBlDCKtbrScYxhfjyj1s+B9o+dnifIj94AnpNyaC9
|
||||
f3QwkNJCTnjOsvRiMi6xrHiaA3ycyYFNbcqBpisl/aoHWaspGdg03uIc43mb/gOilt3CREslQG80
|
||||
GedmlkC1KyNPBnU9wOPWMp6Aut0S74HfwIQJ7ldTMjBPdBIiGWC0TRkQlseWNmR2tlwC9DmZjEmW
|
||||
pQ/zOAKqtwdcrnW/DpOBPtp9Ii6F9lhL1yWIo2zUvVhxzYHeLVcG/QfT/iuTA3qwan+zGndVP8p2
|
||||
k4G8E/wLW4D6PxTlnxgwaDEjaMe6n+USYOvqZKTbUrjQcor3ZSYHRtjULvCrmgwkfY5oRc9B+3Cb
|
||||
S4FhIhS+gAtZLgH9Y6GWuQU6mwx9IEqYajlA+47CsZ6lGovFBDTNkA9xM4CmpXsAWySDUrPjqZQl
|
||||
QBsfnSoB41UKAvS9ouJmDfpaDpTQ2WRcXYinCZm+pdyEtDClPgLloP0unABPp3lrpoZ+KkWskSgP
|
||||
sVZMhlat2t7LQftE2aoCh0sVBOheXclyCYjTp7W19bUsZAQtJuPLTA39gOhg0D7PJtny1xj1tWA+
|
||||
sUpAG2j7mZaqAh9tzPSVP+XStL+w/qY1XRlfWdOSYXvp7QKnU6Ayqk4jLZcB2zD4gv1iu52qkvG5
|
||||
NKPsyrCuPs9aDtDeDr4EtS7RRyXNCgfYLPtYfoC33D0Hul6tE6jOfvsMhVqaT8PWG85PXR+WxlOP
|
||||
pHUIHPNXDsif7NWAT773STdlX6vK4ebi4WRgWybZqFe86tBXUAw4BL+S7UTautTXo9yFcjdKPbsq
|
||||
PuQTsKdbZ16YLzZrAgdRRvXLCF/Big/R/wXInn5dffdMt8opNs214Bz6cyqNbUDRcZwTIWjDt3m+
|
||||
XtcBxq3pvL6p6mFftlFUE+i8JPxRCRGoawVbcVepGcF4V4eTGPNPHv+7NjUGAhzmQOl20fyhphlg
|
||||
T4CxLcQw9WC9Gxb3P4Q37NY4CHJXCuhSW3JnwEXs0qNgSHqVbw210ZP2XwK0A65/6C6NgziaAU5X
|
||||
wCIUHB4H86227gKH1+JtL3gd1N5sCdACbgZo5rtgnQKx+hLs/ixsdjBXBd2TtyKNhUOp1/dprgMQ
|
||||
rx9x16fcn1KbttrIyf9OkICWw1KApvY2YyXbpSBobKf7OGXApFtI+5d3Qq1BDoL6V87GcDVc9Ivq
|
||||
E4D+bjTQbc1i9demreDu8Ch0ffG6hdnmDMrvFbsSsAXczIGk3fwb4VYe+pwBB9Angkd83ADtqgkq
|
||||
AjetdTTV1icDlfl+Qi3AP4elHEjaDXscHgFjPdNt4ID6S9B9sNLiKoelmuFuJbCpDJi+hvqz2qFw
|
||||
iIfWc2AQusxPgvq484vH2eUgtpYHH0Hteeqb75ZwMQ+j+cDg9PlwFDwd6o9sr0KtbWI/tSPgp32M
|
||||
76H+s6mNX3030df5neGq1OtbZDUbOIlFoFaha0L9j0qfCHeAerDqVtODU8+hNThZfR1fHHbpG6kx
|
||||
9Or1LzUmVVz+HJXDAAAAAElFTkSuQmCC">
|
||||
<h1 class="title">Intel® Threading Building Blocks.<br>Get Started Samples</h1>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
This directory contains the examples referenced by the Intel® Threading Building Blocks <a href="http://software.intel.com/en-us/tbb-tutorial">Getting Started Guide</a>.
|
||||
</p>
|
||||
|
||||
<div class="changes">
|
||||
<div class="h3-alike">Directories</div>
|
||||
<input type="checkbox" checked="checked">
|
||||
<div class="show-hide">
|
||||
<dl>
|
||||
<dt><a href="sub_string_finder/readme.html">sub_string_finder</a>
|
||||
<dd>Finds largest matching substrings.
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<a href="../index.html">Up to parent directory</a>
|
||||
<hr>
|
||||
<div class="changes">
|
||||
<div class="h3-alike">Legal Information:</div>
|
||||
<input type="checkbox">
|
||||
<div class="show-hide">
|
||||
<p>
|
||||
Intel and the Intel logo are trademarks of Intel Corporation in the U.S. and/or other countries.
|
||||
<br>* Other names and brands may be claimed as the property of others.
|
||||
<br>© 2020, Intel Corporation
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# GNU Makefile that builds and runs example.
|
||||
run_cmd=
|
||||
PROG=sub_string_finder_extended
|
||||
ARGS=
|
||||
LIGHT_PROG=sub_string_finder
|
||||
|
||||
# The C++ compiler
|
||||
ifneq (,$(shell which icc 2>/dev/null))
|
||||
CXX=icc
|
||||
endif # icc
|
||||
|
||||
TBBLIB = -ltbb
|
||||
TBBLIB_DEBUG = -ltbb_debug
|
||||
|
||||
ifneq (,$(findstring mic, $(offload)))
|
||||
override CXXFLAGS += -qoffload-arch=$(offload) -qopt-report-phase:offload -D__TBB_MIC_OFFLOAD=1
|
||||
# Replace -ltbb with -tbb in the offload mode
|
||||
TBBLIB = -tbb
|
||||
TBBLIB_DEBUG += -qoffload-option,mic,ld,"-ltbb_debug"
|
||||
endif
|
||||
|
||||
ifeq ($(shell uname), Linux)
|
||||
ifeq ($(target), android)
|
||||
LIBS+= --sysroot=$(SYSROOT)
|
||||
run_cmd=../../common/android.linux.launcher.sh
|
||||
else
|
||||
LIBS+= -lrt
|
||||
endif
|
||||
else ifeq ($(shell uname), Darwin)
|
||||
override CXXFLAGS += -Wl,-rpath,$(TBBROOT)/lib
|
||||
endif
|
||||
|
||||
# autodetect C++11 support
|
||||
include ../../common/examples-common.inc
|
||||
|
||||
all: release test
|
||||
|
||||
release: *.cpp
|
||||
ifeq ($(offload),)
|
||||
$(CXX) -O2 -DNDEBUG $(CXXFLAGS) -o sub_string_finder sub_string_finder.cpp $(TBBLIB) $(LIBS) $(CXX0XFLAGS)
|
||||
$(CXX) -O2 -DNDEBUG $(CXXFLAGS) -o sub_string_finder_pretty sub_string_finder_pretty.cpp $(TBBLIB) $(LIBS) $(CXX0XFLAGS)
|
||||
endif
|
||||
$(CXX) -O2 -DNDEBUG $(CXXFLAGS) -o sub_string_finder_extended sub_string_finder_extended.cpp $(TBBLIB) $(LIBS) $(CXX0XFLAGS)
|
||||
|
||||
debug: *.cpp
|
||||
ifeq ($(offload),)
|
||||
$(CXX) -O0 -g -DTBB_USE_DEBUG $(CXXFLAGS) -o sub_string_finder sub_string_finder.cpp $(TBBLIB_DEBUG) $(LIBS) $(CXX0XFLAGS)
|
||||
$(CXX) -O0 -g -DTBB_USE_DEBUG $(CXXFLAGS) -o sub_string_finder_pretty sub_string_finder_pretty.cpp $(TBBLIB_DEBUG) $(LIBS) $(CXX0XFLAGS)
|
||||
endif
|
||||
$(CXX) -O0 -g -DTBB_USE_DEBUG $(CXXFLAGS) -o sub_string_finder_extended sub_string_finder_extended.cpp $(TBBLIB_DEBUG) $(LIBS) $(CXX0XFLAGS)
|
||||
|
||||
clean:
|
||||
$(RM) sub_string_finder sub_string_finder_extended sub_string_finder_pretty *.o *.d
|
||||
|
||||
test:
|
||||
$(run_cmd) ./$(PROG) $(ARGS)
|
||||
|
||||
light_test:
|
||||
$(run_cmd) ./$(LIGHT_PROG) $(ARGS)
|
|
@ -0,0 +1,55 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Common Makefile that builds and runs examples.
|
||||
PROG=sub_string_finder_extended
|
||||
ARGS=
|
||||
LIGHT_PROG=sub_string_finder
|
||||
|
||||
# The C++ compiler options
|
||||
# Trying to find if icl.exe is set
|
||||
CXX1 = $(TBB_CXX)-
|
||||
CXX2 = $(CXX1:icl.exe-=icl.exe)
|
||||
CXX = $(CXX2:-=cl.exe)
|
||||
|
||||
offload1 = $(offload)+
|
||||
OFFLOADFLAGS1 = $(offload1:mic+=/Qoffload-arch=mic)
|
||||
OFFLOADFLAGS2 = $(OFFLOADFLAGS1:mic-avx512+=/Qoffload-arch=mic-avx512)
|
||||
offload2 = $(offload:mic-avx512=mic)
|
||||
OFFLOADFLAGS = $(OFFLOADFLAGS2:+=) $(offload2:mic=/D__TBB_MIC_OFFLOAD /Qdiag-disable:3335,3440,3441)
|
||||
|
||||
MYCXXFLAGS = /EHsc /W3 /nologo /D _CONSOLE /D _MBCS /D WIN32 $(OFFLOADFLAGS) $(CXXFLAGS)
|
||||
MYLDFLAGS =/INCREMENTAL:NO /NOLOGO /DEBUG /FIXED:NO $(LDFLAGS)
|
||||
|
||||
TBB_MIC_LIB = $(offload2:mic=/Qtbb)
|
||||
TBB_DEBUG_MIC_LIB = $(offload2:mic=/Qoffload-option,mic,link,"-ltbb_debug")
|
||||
|
||||
all: release test
|
||||
release: compiler_check
|
||||
$(CXX) sub_string_finder.cpp /MD /O2 /D NDEBUG $(MYCXXFLAGS) $(TBB_MIC_LIB) /link tbb.lib $(LIBS) $(MYLDFLAGS) /OUT:sub_string_finder.exe
|
||||
$(CXX) sub_string_finder_extended.cpp /MD /O2 /D NDEBUG $(MYCXXFLAGS) $(TBB_MIC_LIB) /link tbb.lib $(LIBS) $(MYLDFLAGS) /OUT:sub_string_finder_extended.exe
|
||||
$(CXX) sub_string_finder_pretty.cpp /MD /O2 /D NDEBUG $(MYCXXFLAGS) $(TBB_MIC_LIB) /link tbb.lib $(LIBS) $(MYLDFLAGS) /OUT:sub_string_finder_pretty.exe
|
||||
debug: compiler_check
|
||||
$(CXX) sub_string_finder.cpp /MDd /Od /Zi /D TBB_USE_DEBUG /D _DEBUG $(MYCXXFLAGS) $(TBB_DEBUG_MIC_LIB) /link tbb_debug.lib $(LIBS) $(MYLDFLAGS) /OUT:sub_string_finder.exe
|
||||
$(CXX) sub_string_finder_extended.cpp /MDd /Od /Zi /D TBB_USE_DEBUG /D _DEBUG $(MYCXXFLAGS) $(TBB_DEBUG_MIC_LIB) /link tbb_debug.lib $(LIBS) $(MYLDFLAGS) /OUT:sub_string_finder_extended.exe
|
||||
$(CXX) sub_string_finder_pretty.cpp /MDd /Od /Zi /D TBB_USE_DEBUG /D _DEBUG $(MYCXXFLAGS) $(TBB_DEBUG_MIC_LIB) /link tbb_debug.lib $(LIBS) $(MYLDFLAGS) /OUT:sub_string_finder_pretty.exe
|
||||
clean:
|
||||
@cmd.exe /C del sub_string_finder*.exe *.obj *.?db *.manifest
|
||||
test:
|
||||
$(PROG) $(ARGS)
|
||||
light_test:
|
||||
$(LIGHT_PROG) $(ARGS)
|
||||
compiler_check:
|
||||
@echo compiler_test>compiler_test && @$(CXX) /E compiler_test >nul 2>&1 || echo "$(CXX) command not found. Check if CXX=$(CXX) is set properly"
|
||||
@cmd.exe /C del compiler_test
|
|
@ -0,0 +1,48 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.40629.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sub_string_finder", "sub_string_finder.vcxproj", "{3AA40693-F93D-4D4B-B32E-068F511A2525}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sub_string_finder_extended", "sub_string_finder_extended.vcxproj", "{3AA40693-F93D-4D4B-B32E-068F511A2526}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sub_string_finder_pretty", "sub_string_finder_pretty.vcxproj", "{3AA40693-F93D-4D4B-B32E-068F511A2524}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Debug|x64 = Debug|x64
|
||||
Release|Win32 = Release|Win32
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2525}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2525}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2525}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2525}.Debug|x64.Build.0 = Debug|x64
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2525}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2525}.Release|Win32.Build.0 = Release|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2525}.Release|x64.ActiveCfg = Release|x64
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2525}.Release|x64.Build.0 = Release|x64
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2526}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2526}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2526}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2526}.Debug|x64.Build.0 = Debug|x64
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2526}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2526}.Release|Win32.Build.0 = Release|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2526}.Release|x64.ActiveCfg = Release|x64
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2526}.Release|x64.Build.0 = Release|x64
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2524}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2524}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2524}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2524}.Debug|x64.Build.0 = Debug|x64
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2524}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2524}.Release|Win32.Build.0 = Release|Win32
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2524}.Release|x64.ActiveCfg = Release|x64
|
||||
{3AA40693-F93D-4D4B-B32E-068F511A2524}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,198 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectName>sub_string_finder</ProjectName>
|
||||
<ProjectGuid>{3AA40693-F93D-4D4B-B32E-068F511A2525}</ProjectGuid>
|
||||
<RootNamespace>sub_string_finder</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<Import Project="..\..\..\common\toolset.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(TEMP)\tbb_examples\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(TEMP)\tbb_examples\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(TEMP)\tbb_examples\$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(TEMP)\tbb_examples\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(TEMP)\tbb_examples\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(TEMP)\tbb_examples\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(TEMP)\tbb_examples\$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(TEMP)\tbb_examples\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;TBB_USE_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb_debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\ia32\vc_mt;$(TBBROOT)\lib\ia32\vc14;$(SolutionDir)\..\..\..\..\lib\ia32\vc_mt;$(SolutionDir)\..\..\..\..\lib\ia32\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" ia32 debug "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN64;_DEBUG;_CONSOLE;TBB_USE_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb_debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\intel64\vc_mt;$(TBBROOT)\lib\intel64\vc14;$(SolutionDir)\..\..\..\..\lib\intel64\vc_mt;$(SolutionDir)\..\..\..\..\lib\intel64\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" intel64 debug "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\ia32\vc_mt;$(TBBROOT)\lib\ia32\vc14;$(SolutionDir)\..\..\..\..\lib\ia32\vc_mt;$(SolutionDir)\..\..\..\..\lib\ia32\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" ia32 release "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\intel64\vc_mt;$(TBBROOT)\lib\intel64\vc14;$(SolutionDir)\..\..\..\..\lib\intel64\vc_mt;$(SolutionDir)\..\..\..\..\lib\intel64\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" intel64 release "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\sub_string_finder.cpp" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -0,0 +1,198 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectName>sub_string_finder_extended</ProjectName>
|
||||
<ProjectGuid>{3AA40693-F93D-4D4B-B32E-068F511A2526}</ProjectGuid>
|
||||
<RootNamespace>sub_string_finder_extended</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<Import Project="..\..\..\common\toolset.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(TEMP)\tbb_examples\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(TEMP)\tbb_examples\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(TEMP)\tbb_examples\$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(TEMP)\tbb_examples\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(TEMP)\tbb_examples\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(TEMP)\tbb_examples\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(TEMP)\tbb_examples\$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(TEMP)\tbb_examples\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;TBB_USE_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb_debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\ia32\vc_mt;$(TBBROOT)\lib\ia32\vc14;$(SolutionDir)\..\..\..\..\lib\ia32\vc_mt;$(SolutionDir)\..\..\..\..\lib\ia32\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" ia32 debug "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN64;_DEBUG;_CONSOLE;TBB_USE_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb_debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\intel64\vc_mt;$(TBBROOT)\lib\intel64\vc14;$(SolutionDir)\..\..\..\..\lib\intel64\vc_mt;$(SolutionDir)\..\..\..\..\lib\intel64\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" intel64 debug "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\ia32\vc_mt;$(TBBROOT)\lib\ia32\vc14;$(SolutionDir)\..\..\..\..\lib\ia32\vc_mt;$(SolutionDir)\..\..\..\..\lib\ia32\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" ia32 release "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\intel64\vc_mt;$(TBBROOT)\lib\intel64\vc14;$(SolutionDir)\..\..\..\..\lib\intel64\vc_mt;$(SolutionDir)\..\..\..\..\lib\intel64\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" intel64 release "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\sub_string_finder_extended.cpp" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -0,0 +1,198 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectName>sub_string_finder_pretty</ProjectName>
|
||||
<ProjectGuid>{3AA40693-F93D-4D4B-B32E-068F511A2524}</ProjectGuid>
|
||||
<RootNamespace>sub_string_finder_pretty</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<Import Project="..\..\..\common\toolset.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(TEMP)\tbb_examples\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(TEMP)\tbb_examples\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(TEMP)\tbb_examples\$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(TEMP)\tbb_examples\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(TEMP)\tbb_examples\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(TEMP)\tbb_examples\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(TEMP)\tbb_examples\$(Platform)\$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(TEMP)\tbb_examples\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;TBB_USE_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb_debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\ia32\vc_mt;$(TBBROOT)\lib\ia32\vc14;$(SolutionDir)\..\..\..\..\lib\ia32\vc_mt;$(SolutionDir)\..\..\..\..\lib\ia32\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" ia32 debug "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN64;_DEBUG;_CONSOLE;TBB_USE_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb_debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\intel64\vc_mt;$(TBBROOT)\lib\intel64\vc14;$(SolutionDir)\..\..\..\..\lib\intel64\vc_mt;$(SolutionDir)\..\..\..\..\lib\intel64\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" intel64 debug "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\ia32\vc_mt;$(TBBROOT)\lib\ia32\vc14;$(SolutionDir)\..\..\..\..\lib\ia32\vc_mt;$(SolutionDir)\..\..\..\..\lib\ia32\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" ia32 release "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(TBBROOT)\include;$(SolutionDir)\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>tbb.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(TBBROOT)\lib\intel64\vc_mt;$(TBBROOT)\lib\intel64\vc14;$(SolutionDir)\..\..\..\..\lib\intel64\vc_mt;$(SolutionDir)\..\..\..\..\lib\intel64\vc14;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<FixedBaseAddress>false</FixedBaseAddress>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying DLLs and PDBs</Message>
|
||||
<Command>call "$(SolutionDir)\..\..\..\common\copy_libraries.bat" intel64 release "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\sub_string_finder_pretty.cpp" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -0,0 +1,416 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
::selection {
|
||||
background: #b7ffb7;
|
||||
}
|
||||
::-moz-selection {
|
||||
background: #b7ffb7;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 16px;
|
||||
width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#banner {
|
||||
/* Div for banner */
|
||||
float:left;
|
||||
margin: 0px;
|
||||
margin-bottom: 10px;
|
||||
width: 100%;
|
||||
background-color: #0071C5;
|
||||
z-index: 0;
|
||||
}
|
||||
#banner .logo {
|
||||
/* Apply to logo in banner. Add as class to image tag. */
|
||||
float: left;
|
||||
margin-right: 20px;
|
||||
margin-left: 20px;
|
||||
margin-top: 15px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
font-size: 36px;
|
||||
}
|
||||
h1.title {
|
||||
/* Add as class to H1 in banner */
|
||||
font-family: "Intel Clear", Verdana, Arial, sans-serif;
|
||||
font-weight:normal;
|
||||
color: #FFFFFF;
|
||||
font-size: 170%;
|
||||
margin-right: 40px;
|
||||
margin-left: 40px;
|
||||
padding-right: 20px;
|
||||
text-indent: 20px;
|
||||
}
|
||||
.h3-alike {
|
||||
display:inline;
|
||||
font-size: 1.17em;
|
||||
font-weight: bold;
|
||||
color: #0071C5;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.17em;
|
||||
font-weight: bold;
|
||||
color: #0071C5;
|
||||
}
|
||||
.h4-alike {
|
||||
display:inline;
|
||||
font-size: 1.05em;
|
||||
font-weight: bold;
|
||||
}
|
||||
pre {
|
||||
font-family: "Consolas", Monaco, monospace;
|
||||
font-size:small;
|
||||
background: #fafafa;
|
||||
margin: 0;
|
||||
padding-left:20px;
|
||||
}
|
||||
#footer {
|
||||
font-size: small;
|
||||
}
|
||||
code {
|
||||
font-family: "Consolas", Monaco, monospace;
|
||||
}
|
||||
.code-block
|
||||
{
|
||||
padding-left:20px;
|
||||
}
|
||||
.changes {
|
||||
margin: 1em 0;
|
||||
}
|
||||
.changes input:active {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
.changes input:hover:after {
|
||||
padding-left: 16px;
|
||||
font-size: 10px;
|
||||
content: 'More';
|
||||
}
|
||||
.changes input:checked:hover:after {
|
||||
content: 'Less';
|
||||
}
|
||||
.changes input + .show-hide {
|
||||
display: none;
|
||||
}
|
||||
.changes input:checked + .show-hide {
|
||||
display: block;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0.5em 0 0.5em 2.5em;
|
||||
}
|
||||
ul li {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
ul li:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.disc {
|
||||
list-style-type:disc
|
||||
}
|
||||
.circ {
|
||||
list-style-type:circle
|
||||
}
|
||||
|
||||
.single {
|
||||
padding: 0 0.5em;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------- */
|
||||
/* Table styles */
|
||||
table{
|
||||
margin-bottom:5pt;
|
||||
border-collapse:collapse;
|
||||
margin-left:0px;
|
||||
margin-top:0.3em;
|
||||
font-size:10pt;
|
||||
}
|
||||
tr{
|
||||
vertical-align:top;
|
||||
}
|
||||
th,
|
||||
th h3{
|
||||
padding:4px;
|
||||
text-align:left;
|
||||
background-color:#0071C5;
|
||||
font-weight:bold;
|
||||
margin-top:1px;
|
||||
margin-bottom:0;
|
||||
color:#FFFFFF;
|
||||
font-size:10pt;
|
||||
vertical-align:middle;
|
||||
}
|
||||
th{
|
||||
border:1px #dddddd solid;
|
||||
padding-top:2px;
|
||||
padding-bottom:0px;
|
||||
padding-right:3px;
|
||||
padding-left:3px;
|
||||
}
|
||||
td{
|
||||
border:1px #dddddd solid;
|
||||
vertical-align:top;
|
||||
font-size:100%;
|
||||
text-align:left;
|
||||
margin-bottom:0;
|
||||
}
|
||||
td,
|
||||
td p{
|
||||
margin-top:0;
|
||||
margin-left:0;
|
||||
text-align:left;
|
||||
font-size:inherit;
|
||||
line-height:120%;
|
||||
}
|
||||
td p{
|
||||
margin-bottom:0;
|
||||
padding-top:5px;
|
||||
padding-bottom:5px;
|
||||
padding-right:5px;
|
||||
padding-left:1px;
|
||||
}
|
||||
.noborder{
|
||||
border:0px none;
|
||||
}
|
||||
.noborder1stcol{
|
||||
border:0px none;
|
||||
padding-left:0pt;
|
||||
}
|
||||
td ol{
|
||||
font-size:inherit;
|
||||
margin-left:28px;
|
||||
}
|
||||
td ul{
|
||||
font-size:inherit;
|
||||
margin-left:24px;
|
||||
}
|
||||
.DefListTbl{
|
||||
width:90%;
|
||||
margin-left:-3pt;
|
||||
}
|
||||
.syntaxdiagramtbl{
|
||||
margin-left:-3pt;
|
||||
}
|
||||
.sdtbl{
|
||||
}
|
||||
.sdrow{
|
||||
}
|
||||
.sdtblp{
|
||||
border:0px none;
|
||||
font-size:inherit;
|
||||
line-height:120%;
|
||||
margin-bottom:0;
|
||||
padding-bottom:0px;
|
||||
padding-top:5px;
|
||||
padding-left:0px;
|
||||
padding-right:5px;
|
||||
vertical-align:top;
|
||||
}
|
||||
.idepara, .ide_para{
|
||||
border:0px none;
|
||||
font-size:inherit;
|
||||
line-height:120%;
|
||||
margin-bottom:0;
|
||||
padding-bottom:0px;
|
||||
padding-top:5px;
|
||||
padding-left:0px;
|
||||
padding-right:5px;
|
||||
vertical-align:top;
|
||||
}
|
||||
|
||||
.specs {
|
||||
border-collapse:collapse;
|
||||
}
|
||||
.specs td, .specs th {
|
||||
font-size: 14px;
|
||||
}
|
||||
.specs td {
|
||||
border: 1px solid black;
|
||||
}
|
||||
.specs td td, .specs td th {
|
||||
border: none;
|
||||
}
|
||||
.specs td, .specs td td, .specs td th {
|
||||
padding: 0 0.2em 0.2em;
|
||||
text-align: center;
|
||||
}
|
||||
.specs td tr:last-child td,
|
||||
.specs td tr:last-child th {
|
||||
padding: 0 0.2em;
|
||||
}
|
||||
.serial-time {
|
||||
}
|
||||
.modified-time {
|
||||
width: 6.5em;
|
||||
}
|
||||
.compiler {
|
||||
}
|
||||
.comp-opt {
|
||||
}
|
||||
.sys-specs {
|
||||
width: 18em;
|
||||
}
|
||||
.note {
|
||||
font-size:small;
|
||||
font-style: italic;
|
||||
}
|
||||
</style>
|
||||
<title>Intel® Threading Building Blocks. Sub_string_finder sample</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="banner">
|
||||
<img class="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAAAsCAYAAAA+aAX8AAAAAXNSR0IArs4c6QAAAARnQU1BAACx
|
||||
jwv8YQUAAAAJcEhZcwAALiIAAC4iAari3ZIAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVh
|
||||
ZHlxyWU8AAAIN0lEQVRoQ+WaCaxdUxSGW2ouatZWaVS15nkqkZhSVERQglLEPCam1BCixhqqCKUS
|
||||
NIiYpxhqHmouIeaY5ylFzA/v1fev8+/j3N5737v3vtf3buNP/uy9/7X2Ovuse4a997m9mgltbW2L
|
||||
wRHwcHgFfAx+AH+GCb/BT2fNmvUk5ZXwYOrrOsTcCU5CJ74pPBJeA5+Bn8LfOLmagf/f8Af4NrwD
|
||||
ngg3wdTHh2pOMMB1Gejx8AE4M85mNqD/A7+D78GXkXQFTIMPwUfhdPg6/AxWTRw29b8QruPD9zwY
|
||||
zPrwHPi2xxmg3QrfgDfD05BGU24EB1HvC3s7REXgtwDsDzeEY+Ak+AJsUfwE2sJdcBN37V4whiU4
|
||||
+KGUM2JEBtpzUInZEa5g9y4FcYfAo+GLPmwOND2HFrXrnAUHWgnq0vzDB2+Bt0H9coPs1m3gmNvD
|
||||
ZyITBu234Jp26XoQfCC80sfTAXVv7wOXskuPgnHoSvnTw9P49MDdyOauAQEXhWdC4Vd4ARxmc1OB
|
||||
cW0Gv3U+lJDvKFa0ufMg4GXwR3gs7J57sRNoaWnR2+znLB2RkKds6jwItvbckIQiGO+eTkSby71t
|
||||
qh100qtsUCJxmmpSw5i2gWebR1jWm2047T1gf0vyfViJEKi/TtHua7wMdNJs8U/zDzjUpqYA47k4
|
||||
O704wY+kUZ2P+glQc5ldac9j323sF1cH2EB6h8BxYZdbRDeDOJ16UBJiHDFuMMdYbhjEGA8DxJ4h
|
||||
jXIemmMpz6ccqbZ1JUlT/3SrHC+9XeB0MjzV9RHqKFAXVg2nBkH/lxxO8aZYbhjEKEuGQH1BuCKc
|
||||
z1IAN61jAtiut1wZ+ByIkwa6r9t6ZmhSFZw9eL0gxiMw4SLLDYMYFZNRDbhpcpgwzXI5MOqSEvKM
|
||||
Ue8D+xU4r/Xe+C8HB1ThkhFgNqAXk6FVqyZuA1LcItBXQd+WUvf6YMslwFZvMs7KvMP/SculwKa3
|
||||
hfYPPsZpfsvS9QD9PRHbcOmUC9J+H2qfoRJ/0MHgFhHIQC8mQ8twxZ0Ji099vSGegn/TP0BdD/Db
|
||||
Ycn0nna9yZiceQcetFwKDE/4oNtZCtDeXHoC7dWlU1Uyvs7U6sBHJ7FaBAPU82TYJUAzFnCU+1mq
|
||||
COyfwGLi6k3G05l34BrL/wFxjA/0mKUcaNqBKiJODHclQ3sLCVqZprfEvVCLtThhiskRDFAvXhnv
|
||||
QPlfi5uW7ytTL14Nr0Bd1pfDXy1Lv93h6koGLstCLR/SuPJ5SQBBD8hPZATbWs6BrdZk7B4dDNpT
|
||||
Mjkw3bL0YjLOsxygPUWDyExtD1GNV6JAeyTUBlDCKtbrScYxhfjyj1s+B9o+dnifIj94AnpNyaC9
|
||||
f3QwkNJCTnjOsvRiMi6xrHiaA3ycyYFNbcqBpisl/aoHWaspGdg03uIc43mb/gOilt3CREslQG80
|
||||
GedmlkC1KyNPBnU9wOPWMp6Aut0S74HfwIQJ7ldTMjBPdBIiGWC0TRkQlseWNmR2tlwC9DmZjEmW
|
||||
pQ/zOAKqtwdcrnW/DpOBPtp9Ii6F9lhL1yWIo2zUvVhxzYHeLVcG/QfT/iuTA3qwan+zGndVP8p2
|
||||
k4G8E/wLW4D6PxTlnxgwaDEjaMe6n+USYOvqZKTbUrjQcor3ZSYHRtjULvCrmgwkfY5oRc9B+3Cb
|
||||
S4FhIhS+gAtZLgH9Y6GWuQU6mwx9IEqYajlA+47CsZ6lGovFBDTNkA9xM4CmpXsAWySDUrPjqZQl
|
||||
QBsfnSoB41UKAvS9ouJmDfpaDpTQ2WRcXYinCZm+pdyEtDClPgLloP0unABPp3lrpoZ+KkWskSgP
|
||||
sVZMhlat2t7LQftE2aoCh0sVBOheXclyCYjTp7W19bUsZAQtJuPLTA39gOhg0D7PJtny1xj1tWA+
|
||||
sUpAG2j7mZaqAh9tzPSVP+XStL+w/qY1XRlfWdOSYXvp7QKnU6Ayqk4jLZcB2zD4gv1iu52qkvG5
|
||||
NKPsyrCuPs9aDtDeDr4EtS7RRyXNCgfYLPtYfoC33D0Hul6tE6jOfvsMhVqaT8PWG85PXR+WxlOP
|
||||
pHUIHPNXDsif7NWAT773STdlX6vK4ebi4WRgWybZqFe86tBXUAw4BL+S7UTautTXo9yFcjdKPbsq
|
||||
PuQTsKdbZ16YLzZrAgdRRvXLCF/Big/R/wXInn5dffdMt8opNs214Bz6cyqNbUDRcZwTIWjDt3m+
|
||||
XtcBxq3pvL6p6mFftlFUE+i8JPxRCRGoawVbcVepGcF4V4eTGPNPHv+7NjUGAhzmQOl20fyhphlg
|
||||
T4CxLcQw9WC9Gxb3P4Q37NY4CHJXCuhSW3JnwEXs0qNgSHqVbw210ZP2XwK0A65/6C6NgziaAU5X
|
||||
wCIUHB4H86227gKH1+JtL3gd1N5sCdACbgZo5rtgnQKx+hLs/ixsdjBXBd2TtyKNhUOp1/dprgMQ
|
||||
rx9x16fcn1KbttrIyf9OkICWw1KApvY2YyXbpSBobKf7OGXApFtI+5d3Qq1BDoL6V87GcDVc9Ivq
|
||||
E4D+bjTQbc1i9demreDu8Ch0ffG6hdnmDMrvFbsSsAXczIGk3fwb4VYe+pwBB9Angkd83ADtqgkq
|
||||
AjetdTTV1icDlfl+Qi3AP4elHEjaDXscHgFjPdNt4ID6S9B9sNLiKoelmuFuJbCpDJi+hvqz2qFw
|
||||
iIfWc2AQusxPgvq484vH2eUgtpYHH0Hteeqb75ZwMQ+j+cDg9PlwFDwd6o9sr0KtbWI/tSPgp32M
|
||||
76H+s6mNX3030df5neGq1OtbZDUbOIlFoFaha0L9j0qfCHeAerDqVtODU8+hNThZfR1fHHbpG6kx
|
||||
9Or1LzUmVVz+HJXDAAAAAElFTkSuQmCC">
|
||||
<h1 class="title">Intel® Threading Building Blocks.<br>Sub_string_finder sample</h1>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
A simple example that uses the parallel_for template in a substring matching program.
|
||||
The Intel® Threading Building Blocks <a href="http://software.intel.com/en-us/tbb-tutorial">Getting Started Guide</a> describes this example.
|
||||
<br><br>
|
||||
For each position
|
||||
in a string, the program displays the length of the largest matching substring elsewhere in the string.
|
||||
The program also displays the location of a largest match for each position. Consider the string "babba"
|
||||
as an example. Starting at position 0, "ba" is the largest substring with a match elsewhere in the
|
||||
string (position 3).
|
||||
<br><br>
|
||||
The code located in the <a href="sub_string_finder_extended.cpp">sub_string_finder_extended.cpp</a> file
|
||||
demonstrates offload programming for Intel® Many Integrated Core (Intel® MIC) Architecture (see <a href="../../index.html">build instructions</a>).
|
||||
</p>
|
||||
|
||||
<div class="changes">
|
||||
<div class="h3-alike">System Requirements</div>
|
||||
<input type="checkbox">
|
||||
<div class="show-hide">
|
||||
<p>
|
||||
For the most up to date system requirements, see the <a href="http://software.intel.com/en-us/articles/intel-threading-building-blocks-release-notes">release notes.</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="changes">
|
||||
<div class="h3-alike">Files</div>
|
||||
<input type="checkbox" checked="checked">
|
||||
<div class="show-hide">
|
||||
<dl>
|
||||
<dt><a href="sub_string_finder.cpp">sub_string_finder.cpp</a>
|
||||
<dd>The example as it appears in the Get Started Guide.
|
||||
<dt><a href="sub_string_finder_extended.cpp">sub_string_finder_extended.cpp</a>
|
||||
<dd>An example similar to the one in the Get Started Guide, but with an added sequential
|
||||
implementation, and with an offload region added that can be executed on Intel® MIC Architecture based coprocessor.
|
||||
The three implementations are timed, by using tick_count,
|
||||
and the speedup of the parallel version and
|
||||
the speedup of the parallel version and, if applicable, the offload version is calculated and displayed.
|
||||
<dt><a href="sub_string_finder_pretty.cpp">sub_string_finder_pretty.cpp</a>
|
||||
<dd>An example similar to the one in the Get Started Guide, but with more attractive printing of the results.
|
||||
<dt><a href="Makefile">Makefile</a>
|
||||
<dd>Makefile for building the example.
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="changes">
|
||||
<div class="h3-alike">Directories</div>
|
||||
<input type="checkbox" checked="checked">
|
||||
<div class="show-hide">
|
||||
<dl>
|
||||
<dt><a href="msvs/">msvs</a>
|
||||
<dd>Contains Microsoft* Visual Studio* workspace for building and running the example (Windows* systems only).
|
||||
<dt><a href="xcode/">xcode</a>
|
||||
<dd>Contains Xcode* IDE workspace for building and running the example (macOS* systems only).
|
||||
</dl>
|
||||
<p>For information about the minimum supported version of IDE, see <a href="http://software.intel.com/en-us/articles/intel-threading-building-blocks-release-notes">release notes.</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="changes">
|
||||
<div class="h3-alike">Build instructions</div>
|
||||
<input type="checkbox" checked="checked">
|
||||
<div class="show-hide">
|
||||
<p>General build directions can be found <a href="../../index.html">here</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="changes">
|
||||
<div class="h3-alike">Usage</div>
|
||||
<input type="checkbox" checked="checked">
|
||||
<div class="show-hide">
|
||||
<dl>
|
||||
<dt><tt>sub_string_finder</tt>
|
||||
<dd>Runs the example as it appears in the Get Started Guide.
|
||||
<dt><tt>sub_string_finder_pretty</tt>
|
||||
<dd>Runs the similar example with more attractive printing of the results.
|
||||
<dt><tt>sub_string_finder_extended</tt>
|
||||
<dd>Runs the example extended with a sequential implementation and an offload region that can be executed on Intel® MIC Architecture based coprocessor.
|
||||
<dt>To run a short version of this example, e.g., for use with Intel® Threading Tools:
|
||||
<dd>Build a <i>debug</i> version of the <tt>sub_string_finder_pretty</tt> example
|
||||
(see the <a href="../../index.html">build instructions</a>).
|
||||
<br>Run it, e.g., <tt>sub_string_finder_pretty</tt>.
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<a href="../index.html">Up to parent directory</a>
|
||||
<hr>
|
||||
<div class="changes">
|
||||
<div class="h3-alike">Legal Information</div>
|
||||
<input type="checkbox">
|
||||
<div class="show-hide">
|
||||
<p>
|
||||
Intel and the Intel logo are trademarks of Intel Corporation in the U.S. and/or other countries.
|
||||
<br>* Other names and brands may be claimed as the property of others.
|
||||
<br>© 2020, Intel Corporation
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,74 @@
|
|||
/*
|
||||
Copyright (c) 2005-2020 Intel Corporation
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <algorithm> //std::max
|
||||
#include "tbb/parallel_for.h"
|
||||
#include "tbb/blocked_range.h"
|
||||
|
||||
static const std::size_t N = 23;
|
||||
|
||||
class SubStringFinder {
|
||||
const std::string &str;
|
||||
std::vector<std::size_t> &max_array;
|
||||
std::vector<std::size_t> &pos_array;
|
||||
public:
|
||||
void operator() ( const tbb::blocked_range<std::size_t> &r ) const {
|
||||
for (std::size_t i = r.begin(); i != r.end(); ++i) {
|
||||
std::size_t max_size = 0, max_pos = 0;
|
||||
for (std::size_t j = 0; j < str.size(); ++j) {
|
||||
if (j != i) {
|
||||
std::size_t limit = str.size()-(std::max)(i,j);
|
||||
for (std::size_t k = 0; k < limit; ++k) {
|
||||
if (str[i + k] != str[j + k])
|
||||
break;
|
||||
if (k > max_size) {
|
||||
max_size = k;
|
||||
max_pos = j;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
max_array[i] = max_size;
|
||||
pos_array[i] = max_pos;
|
||||
}
|
||||
}
|
||||
|
||||
SubStringFinder( const std::string &s, std::vector<std::size_t> &m, std::vector<std::size_t> &p ) :
|
||||
str(s), max_array(m), pos_array(p) { }
|
||||
};
|
||||
|
||||
int main() {
|
||||
std::string str[N] = { std::string("a"), std::string("b") };
|
||||
for (std::size_t i = 2; i < N; ++i)
|
||||
str[i] = str[i-1]+str[i-2];
|
||||
std::string &to_scan = str[N-1];
|
||||
const std::size_t num_elem = to_scan.size();
|
||||
|
||||
std::vector<std::size_t> max(num_elem);
|
||||
std::vector<std::size_t> pos(num_elem);
|
||||
|
||||
tbb::parallel_for( tbb::blocked_range<std::size_t>( 0, num_elem ),
|
||||
SubStringFinder( to_scan, max, pos ) );
|
||||
|
||||
for (std::size_t i = 0; i < num_elem; ++i)
|
||||
std::cout << " " << max[i] << "(" << pos[i] << ")" << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,162 @@
|
|||
/*
|
||||
Copyright (c) 2005-2020 Intel Corporation
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
#if __TBB_MIC_OFFLOAD
|
||||
#pragma offload_attribute (push,target(mic))
|
||||
#endif // __TBB_MIC_OFFLOAD
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <algorithm> //std::max
|
||||
|
||||
#include "tbb/parallel_for.h"
|
||||
#include "tbb/blocked_range.h"
|
||||
#include "tbb/tick_count.h"
|
||||
|
||||
#if __TBB_MIC_OFFLOAD
|
||||
#pragma offload_attribute (pop)
|
||||
|
||||
class __declspec(target(mic)) SubStringFinder;
|
||||
#endif // __TBB_MIC_OFFLOAD
|
||||
|
||||
static const std::size_t N = 22;
|
||||
|
||||
void SerialSubStringFinder ( const std::string &str, std::vector<std::size_t> &max_array, std::vector<std::size_t> &pos_array ) {
|
||||
for (std::size_t i = 0; i < str.size(); ++i) {
|
||||
std::size_t max_size = 0, max_pos = 0;
|
||||
for (std::size_t j = 0; j < str.size(); ++j)
|
||||
if (j != i) {
|
||||
std::size_t limit = str.size()-(std::max)(i,j);
|
||||
for (std::size_t k = 0; k < limit; ++k) {
|
||||
if (str[i + k] != str[j + k])
|
||||
break;
|
||||
if (k > max_size) {
|
||||
max_size = k;
|
||||
max_pos = j;
|
||||
}
|
||||
}
|
||||
}
|
||||
max_array[i] = max_size;
|
||||
pos_array[i] = max_pos;
|
||||
}
|
||||
}
|
||||
|
||||
class SubStringFinder {
|
||||
const char *str;
|
||||
const std::size_t len;
|
||||
std::size_t *max_array;
|
||||
std::size_t *pos_array;
|
||||
public:
|
||||
void operator() ( const tbb::blocked_range<std::size_t>& r ) const {
|
||||
for (std::size_t i = r.begin(); i != r.end(); ++i) {
|
||||
std::size_t max_size = 0, max_pos = 0;
|
||||
for (std::size_t j = 0; j < len; ++j) {
|
||||
if (j != i) {
|
||||
std::size_t limit = len-(std::max)(i,j);
|
||||
for (std::size_t k = 0; k < limit; ++k) {
|
||||
if (str[i + k] != str[j + k])
|
||||
break;
|
||||
if (k > max_size) {
|
||||
max_size = k;
|
||||
max_pos = j;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
max_array[i] = max_size;
|
||||
pos_array[i] = max_pos;
|
||||
}
|
||||
}
|
||||
// We do not use std::vector for compatibility with offload execution
|
||||
SubStringFinder( const char *s, const std::size_t s_len, std::size_t *m, std::size_t *p ) :
|
||||
str(s), len(s_len), max_array(m), pos_array(p) { }
|
||||
};
|
||||
|
||||
int main() {
|
||||
using namespace tbb;
|
||||
|
||||
std::string str[N] = { std::string("a"), std::string("b") };
|
||||
for (std::size_t i = 2; i < N; ++i)
|
||||
str[i] = str[i-1]+str[i-2];
|
||||
std::string &to_scan = str[N-1];
|
||||
const std::size_t num_elem = to_scan.size();
|
||||
|
||||
std::vector<std::size_t> max1(num_elem);
|
||||
std::vector<std::size_t> pos1(num_elem);
|
||||
std::vector<std::size_t> max2(num_elem);
|
||||
std::vector<std::size_t> pos2(num_elem);
|
||||
|
||||
std::cout << " Done building string." << std::endl;
|
||||
|
||||
tick_count serial_t0 = tick_count::now();
|
||||
SerialSubStringFinder( to_scan, max2, pos2 );
|
||||
tick_count serial_t1 = tick_count::now();
|
||||
std::cout << " Done with serial version." << std::endl;
|
||||
|
||||
tick_count parallel_t0 = tick_count::now();
|
||||
parallel_for(blocked_range<std::size_t>(0, num_elem, 100),
|
||||
SubStringFinder( to_scan.c_str(), num_elem, &max1[0], &pos1[0] ) );
|
||||
tick_count parallel_t1 = tick_count::now();
|
||||
std::cout << " Done with parallel version." << std::endl;
|
||||
|
||||
for (std::size_t i = 0; i < num_elem; ++i) {
|
||||
if (max1[i] != max2[i] || pos1[i] != pos2[i]) {
|
||||
std::cout << "ERROR: Serial and Parallel Results are Different!" << std::endl;
|
||||
break;
|
||||
}
|
||||
}
|
||||
std::cout << " Done validating results." << std::endl;
|
||||
|
||||
std::cout << "Serial version ran in " << (serial_t1 - serial_t0).seconds() << " seconds" << std::endl
|
||||
<< "Parallel version ran in " << (parallel_t1 - parallel_t0).seconds() << " seconds" << std::endl
|
||||
<< "Resulting in a speedup of " << (serial_t1 - serial_t0).seconds() / (parallel_t1 - parallel_t0).seconds() << std::endl;
|
||||
|
||||
#if __TBB_MIC_OFFLOAD
|
||||
// Do offloadable version. Do the timing on host.
|
||||
|
||||
std::vector<std::size_t> max3(num_elem);
|
||||
std::vector<std::size_t> pos3(num_elem);
|
||||
|
||||
std::size_t *max3_array = &max3[0]; // method data() for vector is not available in C++03
|
||||
std::size_t *pos3_array = &pos3[0];
|
||||
tick_count parallel_tt0 = tick_count::now();
|
||||
const char *to_scan_str = to_scan.c_str(); // Offload the string as a char array.
|
||||
#pragma offload target(mic) in(num_elem) in(to_scan_str:length(num_elem)) out(max3_array,pos3_array:length(num_elem))
|
||||
{
|
||||
parallel_for(blocked_range<std::size_t>(0, num_elem, 100),
|
||||
SubStringFinder ( to_scan_str, num_elem, max3_array, pos3_array ) );
|
||||
}
|
||||
tick_count parallel_tt1 = tick_count::now();
|
||||
std::cout << " Done with offloadable version." << std::endl;
|
||||
|
||||
// Do validation of offloadable results on host.
|
||||
for (std::size_t i = 0; i < num_elem; ++i) {
|
||||
if (max1[i] != max3[i] || pos1[i] != pos3[i]) {
|
||||
std::cout << "ERROR: Serial and Offloadable Results are Different!" << std::endl;
|
||||
break;
|
||||
}
|
||||
}
|
||||
std::cout << " Done validating offloadable results." << std::endl;
|
||||
|
||||
std::cout << "Offloadable version ran in " << (parallel_tt1 - parallel_tt0).seconds() << " seconds" << std::endl
|
||||
<< "Resulting in a speedup of " << (serial_t1 - serial_t0).seconds() / (parallel_tt1 - parallel_tt0).seconds()
|
||||
<< " of offloadable version" << std::endl;
|
||||
|
||||
#endif // __TBB_MIC_OFFLOAD
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
/*
|
||||
Copyright (c) 2005-2020 Intel Corporation
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
#include <algorithm> //std::max
|
||||
|
||||
#include "tbb/parallel_for.h"
|
||||
#include "tbb/blocked_range.h"
|
||||
|
||||
static const std::size_t N = 9;
|
||||
|
||||
class SubStringFinder {
|
||||
const std::string &str;
|
||||
std::vector<std::size_t> &max_array;
|
||||
std::vector<std::size_t> &pos_array;
|
||||
public:
|
||||
void operator() ( const tbb::blocked_range<std::size_t>& r ) const {
|
||||
for (std::size_t i = r.begin(); i != r.end(); ++i) {
|
||||
std::size_t max_size = 0, max_pos = 0;
|
||||
for (std::size_t j = 0; j < str.size(); ++j) {
|
||||
if (j != i) {
|
||||
std::size_t limit = str.size()-(std::max)(i,j);
|
||||
for (std::size_t k = 0; k < limit; ++k) {
|
||||
if (str[i + k] != str[j + k])
|
||||
break;
|
||||
if (k+1 > max_size) {
|
||||
max_size = k+1;
|
||||
max_pos = j;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
max_array[i] = max_size;
|
||||
pos_array[i] = max_pos;
|
||||
}
|
||||
}
|
||||
|
||||
SubStringFinder( const std::string &s, std::vector<std::size_t> &m, std::vector<std::size_t> &p ) :
|
||||
str(s), max_array(m), pos_array(p) { }
|
||||
};
|
||||
|
||||
int main() {
|
||||
using namespace tbb;
|
||||
|
||||
std::string str[N] = { std::string("a"), std::string("b") };
|
||||
for (std::size_t i = 2; i < N; ++i)
|
||||
str[i] = str[i-1]+str[i-2];
|
||||
std::string &to_scan = str[N-1];
|
||||
const std::size_t num_elem = to_scan.size();
|
||||
std::cout << "String to scan: " << to_scan << std::endl;
|
||||
|
||||
std::vector<std::size_t> max( num_elem );
|
||||
std::vector<std::size_t> pos( num_elem );
|
||||
|
||||
parallel_for( blocked_range<std::size_t>( 0, num_elem, 100 ),
|
||||
SubStringFinder( to_scan, max, pos ) );
|
||||
|
||||
for (std::size_t i = 0; i < num_elem; ++i) {
|
||||
for (std::size_t j = 0; j < num_elem; ++j) {
|
||||
if (j >= i && j < i + max[i])
|
||||
std::cout << "_";
|
||||
else
|
||||
std::cout << " ";
|
||||
}
|
||||
std::cout << std::endl << to_scan << std::endl;
|
||||
|
||||
for (std::size_t j = 0; j < num_elem; ++j) {
|
||||
if (j >= pos[i] && j < pos[i] + max[i])
|
||||
std::cout << "*";
|
||||
else
|
||||
std::cout << " ";
|
||||
}
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,502 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
A1F593A60B8F042A00073279 /* sub_string_finder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A1F593A50B8F042A00073279 /* sub_string_finder.cpp */; };
|
||||
A1F594270B8F1F8100073279 /* sub_string_finder_extended.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A1F594260B8F1F8100073279 /* sub_string_finder_extended.cpp */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXBuildRule section */
|
||||
C3C5894D218B576600DAC94C /* PBXBuildRule */ = {
|
||||
isa = PBXBuildRule;
|
||||
compilerSpec = com.intel.compilers.icc.latest;
|
||||
fileType = sourcecode.cpp;
|
||||
isEditable = 1;
|
||||
outputFiles = (
|
||||
);
|
||||
script = "# Type a script or drag a script file from your workspace to insert its path.\n";
|
||||
};
|
||||
C3C5894E218B57EA00DAC94C /* PBXBuildRule */ = {
|
||||
isa = PBXBuildRule;
|
||||
compilerSpec = com.intel.compilers.icc.latest;
|
||||
fileType = sourcecode.cpp;
|
||||
isEditable = 1;
|
||||
outputFiles = (
|
||||
);
|
||||
script = "# Type a script or drag a script file from your workspace to insert its path.\n";
|
||||
};
|
||||
C3C5894F218B581400DAC94C /* PBXBuildRule */ = {
|
||||
isa = PBXBuildRule;
|
||||
compilerSpec = com.intel.compilers.icc.latest;
|
||||
fileType = sourcecode.cpp;
|
||||
isEditable = 1;
|
||||
outputFiles = (
|
||||
);
|
||||
script = "# Type a script or drag a script file from your workspace to insert its path.\n";
|
||||
};
|
||||
/* End PBXBuildRule section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
8DD76F690486A84900D96B5E /* CopyFiles */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 12;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 16;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
A1F594140B8F1E2D00073279 /* CopyFiles */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 16;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
A1F5941D0B8F1F2D00073279 /* CopyFiles */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 16;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
8DD76F6C0486A84900D96B5E /* sub_string_finder */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = sub_string_finder; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A1F593A50B8F042A00073279 /* sub_string_finder.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = sub_string_finder.cpp; path = ../sub_string_finder.cpp; sourceTree = SOURCE_ROOT; };
|
||||
A1F5940A0B8F1D8E00073279 /* sub_string_finder_pretty */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = sub_string_finder_pretty; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A1F594110B8F1E0C00073279 /* sub_string_finder_pretty.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = sub_string_finder_pretty.cpp; path = ../sub_string_finder_pretty.cpp; sourceTree = SOURCE_ROOT; };
|
||||
A1F5941B0B8F1F0900073279 /* sub_string_finder_extended */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = sub_string_finder_extended; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A1F594260B8F1F8100073279 /* sub_string_finder_extended.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = sub_string_finder_extended.cpp; path = ../sub_string_finder_extended.cpp; sourceTree = SOURCE_ROOT; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
8DD76F660486A84900D96B5E /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
A1F594080B8F1D8E00073279 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
A1F594190B8F1F0900073279 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
08FB7794FE84155DC02AAC07 /* sub_string_finder */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
08FB7795FE84155DC02AAC07 /* Source */,
|
||||
1AB674ADFE9D54B511CA2CBB /* Products */,
|
||||
);
|
||||
name = sub_string_finder;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
08FB7795FE84155DC02AAC07 /* Source */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A1F594260B8F1F8100073279 /* sub_string_finder_extended.cpp */,
|
||||
A1F594110B8F1E0C00073279 /* sub_string_finder_pretty.cpp */,
|
||||
A1F593A50B8F042A00073279 /* sub_string_finder.cpp */,
|
||||
);
|
||||
name = Source;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1AB674ADFE9D54B511CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8DD76F6C0486A84900D96B5E /* sub_string_finder */,
|
||||
A1F5940A0B8F1D8E00073279 /* sub_string_finder_pretty */,
|
||||
A1F5941B0B8F1F0900073279 /* sub_string_finder_extended */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8DD76F620486A84900D96B5E /* sub_string_finder */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 1DEB923108733DC60010E9CD /* Build configuration list for PBXNativeTarget "sub_string_finder" */;
|
||||
buildPhases = (
|
||||
8DD76F640486A84900D96B5E /* Sources */,
|
||||
8DD76F660486A84900D96B5E /* Frameworks */,
|
||||
8DD76F690486A84900D96B5E /* CopyFiles */,
|
||||
);
|
||||
buildRules = (
|
||||
C3C5894F218B581400DAC94C /* PBXBuildRule */,
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = sub_string_finder;
|
||||
productInstallPath = "$(HOME)/bin";
|
||||
productName = sub_string_finder;
|
||||
productReference = 8DD76F6C0486A84900D96B5E /* sub_string_finder */;
|
||||
productType = "com.apple.product-type.tool";
|
||||
};
|
||||
A1F594090B8F1D8E00073279 /* sub_string_finder_pretty */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = A1F5940C0B8F1DB600073279 /* Build configuration list for PBXNativeTarget "sub_string_finder_pretty" */;
|
||||
buildPhases = (
|
||||
A1F594070B8F1D8E00073279 /* Sources */,
|
||||
A1F594080B8F1D8E00073279 /* Frameworks */,
|
||||
A1F594140B8F1E2D00073279 /* CopyFiles */,
|
||||
);
|
||||
buildRules = (
|
||||
C3C5894E218B57EA00DAC94C /* PBXBuildRule */,
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = sub_string_finder_pretty;
|
||||
productName = sub_string_finder_pretty;
|
||||
productReference = A1F5940A0B8F1D8E00073279 /* sub_string_finder_pretty */;
|
||||
productType = "com.apple.product-type.tool";
|
||||
};
|
||||
A1F5941A0B8F1F0900073279 /* sub_string_finder_extended */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = A1F5941F0B8F1F4E00073279 /* Build configuration list for PBXNativeTarget "sub_string_finder_extended" */;
|
||||
buildPhases = (
|
||||
A1F594180B8F1F0900073279 /* Sources */,
|
||||
A1F594190B8F1F0900073279 /* Frameworks */,
|
||||
A1F5941D0B8F1F2D00073279 /* CopyFiles */,
|
||||
);
|
||||
buildRules = (
|
||||
C3C5894D218B576600DAC94C /* PBXBuildRule */,
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = sub_string_finder_extended;
|
||||
productName = sub_string_finder_extended;
|
||||
productReference = A1F5941B0B8F1F0900073279 /* sub_string_finder_extended */;
|
||||
productType = "com.apple.product-type.tool";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 1000;
|
||||
};
|
||||
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "sub_string_finder" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 1;
|
||||
knownRegions = (
|
||||
en,
|
||||
);
|
||||
mainGroup = 08FB7794FE84155DC02AAC07 /* sub_string_finder */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
A1F5941A0B8F1F0900073279 /* sub_string_finder_extended */,
|
||||
A1F594090B8F1D8E00073279 /* sub_string_finder_pretty */,
|
||||
8DD76F620486A84900D96B5E /* sub_string_finder */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
8DD76F640486A84900D96B5E /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A1F593A60B8F042A00073279 /* sub_string_finder.cpp in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
A1F594070B8F1D8E00073279 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
A1F594180B8F1F0900073279 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A1F594270B8F1F8100073279 /* sub_string_finder_extended.cpp in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
A1F593C60B8F0E6E00073279 /* Debug64 */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_VERSION = "";
|
||||
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||
ICC_CXX_LANG_DIALECT = "c++11";
|
||||
INSTALL_PATH = "$(HOME)/bin";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited)";
|
||||
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
||||
PRODUCT_NAME = sub_string_finder;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
name = Debug64;
|
||||
};
|
||||
A1F593C70B8F0E6E00073279 /* Release64 */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_VERSION = "";
|
||||
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||
ICC_CXX_LANG_DIALECT = "c++11";
|
||||
INSTALL_PATH = "$(HOME)/bin";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited)";
|
||||
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
||||
PRODUCT_NAME = sub_string_finder;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
name = Release64;
|
||||
};
|
||||
A1F593C80B8F0E6E00073279 /* Debug64 */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_ENABLE_CPP_RTTI = YES;
|
||||
GCC_MODEL_TUNING = "";
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_VERSION = "";
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(TBBROOT)/include",
|
||||
/opt/intel/tbb/include,
|
||||
);
|
||||
ICC_CXX_LANG_DIALECT = "c++11";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(TBBROOT)/lib /opt/intel/tbb/lib";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(TBBROOT)/lib",
|
||||
/opt/intel/tbb/lib,
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.11;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
OTHER_CPLUSPLUSFLAGS = (
|
||||
"$(OTHER_CFLAGS)",
|
||||
"-m64",
|
||||
);
|
||||
OTHER_LDFLAGS = (
|
||||
"-m64",
|
||||
"-ltbb_debug",
|
||||
);
|
||||
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = NO;
|
||||
SYMROOT = "/tmp/tbb-$(USER)";
|
||||
VALID_ARCHS = x86_64;
|
||||
};
|
||||
name = Debug64;
|
||||
};
|
||||
A1F593C90B8F0E6E00073279 /* Release64 */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_ENABLE_CPP_RTTI = YES;
|
||||
GCC_MODEL_TUNING = "";
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_VERSION = "";
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(TBBROOT)/include",
|
||||
/opt/intel/tbb/include,
|
||||
);
|
||||
ICC_CXX_LANG_DIALECT = "c++11";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(TBBROOT)/lib /opt/intel/tbb/lib";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(TBBROOT)/lib",
|
||||
/opt/intel/tbb/lib,
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.11;
|
||||
OTHER_CPLUSPLUSFLAGS = (
|
||||
"$(OTHER_CFLAGS)",
|
||||
"-m64",
|
||||
);
|
||||
OTHER_LDFLAGS = (
|
||||
"-m64",
|
||||
"-ltbb",
|
||||
);
|
||||
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = NO;
|
||||
SYMROOT = "/tmp/tbb-$(USER)";
|
||||
VALID_ARCHS = x86_64;
|
||||
};
|
||||
name = Release64;
|
||||
};
|
||||
A1F5940E0B8F1DB600073279 /* Debug64 */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_VERSION = "";
|
||||
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||
ICC_CXX_LANG_DIALECT = "c++11";
|
||||
INSTALL_PATH = "$(HOME)/bin";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited)";
|
||||
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
||||
PRODUCT_NAME = sub_string_finder_pretty;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
name = Debug64;
|
||||
};
|
||||
A1F594100B8F1DB600073279 /* Release64 */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_VERSION = "";
|
||||
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||
ICC_CXX_LANG_DIALECT = "c++11";
|
||||
INSTALL_PATH = "$(HOME)/bin";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited)";
|
||||
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
||||
PRODUCT_NAME = sub_string_finder_pretty;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
name = Release64;
|
||||
};
|
||||
A1F594210B8F1F4E00073279 /* Debug64 */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_VERSION = "";
|
||||
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||
ICC_CXX_LANG_DIALECT = "c++11";
|
||||
INSTALL_PATH = "$(HOME)/bin";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited)";
|
||||
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
||||
PRODUCT_NAME = sub_string_finder_extended;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
name = Debug64;
|
||||
};
|
||||
A1F594230B8F1F4E00073279 /* Release64 */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_VERSION = "";
|
||||
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||
ICC_CXX_LANG_DIALECT = "c++11";
|
||||
INSTALL_PATH = "$(HOME)/bin";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited)";
|
||||
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
||||
PRODUCT_NAME = sub_string_finder_extended;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
name = Release64;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
1DEB923108733DC60010E9CD /* Build configuration list for PBXNativeTarget "sub_string_finder" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A1F593C60B8F0E6E00073279 /* Debug64 */,
|
||||
A1F593C70B8F0E6E00073279 /* Release64 */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release64;
|
||||
};
|
||||
1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "sub_string_finder" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A1F593C80B8F0E6E00073279 /* Debug64 */,
|
||||
A1F593C90B8F0E6E00073279 /* Release64 */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release64;
|
||||
};
|
||||
A1F5940C0B8F1DB600073279 /* Build configuration list for PBXNativeTarget "sub_string_finder_pretty" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A1F5940E0B8F1DB600073279 /* Debug64 */,
|
||||
A1F594100B8F1DB600073279 /* Release64 */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release64;
|
||||
};
|
||||
A1F5941F0B8F1F4E00073279 /* Build configuration list for PBXNativeTarget "sub_string_finder_extended" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A1F594210B8F1F4E00073279 /* Debug64 */,
|
||||
A1F594230B8F1F4E00073279 /* Release64 */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release64;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
|
||||
}
|
|
@ -0,0 +1,157 @@
|
|||
# Copyright (c) 2005-2020 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# This file should be always located and called in $(tbb_root)/examples
|
||||
|
||||
# Usage:
|
||||
# make [all] [clean] [release] [debug] [test]
|
||||
# executes specified targets for all examples.
|
||||
# make {example's dir}/{target}
|
||||
# calls specified example with specified target.
|
||||
# For instance: make task/tree_sum/all
|
||||
|
||||
tbb_root?=..
|
||||
BUILDING_PHASE:=0
|
||||
include ../build/common.inc
|
||||
|
||||
#check, if tbb_root is not absolute path (the filter keeps only /* paths)
|
||||
ifeq ($(filter /% $(SLASH)%, $(subst :, ,$(tbb_root)) ),)
|
||||
# also changes related variables like work_dir
|
||||
override tbb_root := $(CWD)$(SLASH)..
|
||||
export TBBROOT := $(tbb_root)
|
||||
endif
|
||||
|
||||
override CXXFLAGS += $(CXX_STD_FLAGS)
|
||||
|
||||
# give stdver priotity over autodetection
|
||||
ifneq (,$(stdver))
|
||||
CXX0XFLAGS=-std=$(stdver)
|
||||
else
|
||||
include common/examples-common.inc
|
||||
endif
|
||||
# empty CXX0XFLAGS exported as well, to have control over C++ autodetection
|
||||
export CXX0XFLAGS
|
||||
|
||||
ifeq ($(tbb_os),windows)
|
||||
ifeq ($(UNIXMODE),1)
|
||||
EXAMPLE_MAKEFILE = Makefile
|
||||
EXAMPLES = $(wildcard */*/$(EXAMPLE_MAKEFILE))
|
||||
ifeq ($(compiler),gcc)
|
||||
override CXXFLAGS += -Wl,--enable-auto-import
|
||||
endif
|
||||
export CPATH := $(CPATH);$(tbb_root)/include
|
||||
export LIBRARY_PATH := $(LIBRARY_PATH);$(work_dir)_release;$(work_dir)_debug
|
||||
export RM = cmd /C del /Q /F
|
||||
else
|
||||
EXAMPLE_MAKEFILE = Makefile.windows
|
||||
EXAMPLES = $(wildcard */*/$(EXAMPLE_MAKEFILE))
|
||||
EXAMPLE_MAKEFILE := $(if $(EXAMPLES),Makefile.windows,Makefile)
|
||||
export INCLUDE := $(tbb_root)$(SLASH)include;$(INCLUDE)
|
||||
export LIB := $(work_dir)_release;$(work_dir)_debug;$(LIB)
|
||||
endif
|
||||
work_dir := $(subst /,$(SLASH),$(work_dir))
|
||||
export PATH := $(work_dir)_release;$(work_dir)_debug;$(PATH)
|
||||
export TBB_ARCH_PLATFORM = $(arch)\$(runtime)
|
||||
export TBB_TARGET_ARCH = $(arch)
|
||||
else
|
||||
EXAMPLE_MAKEFILE = Makefile
|
||||
EXAMPLES := $(wildcard */*/$(EXAMPLE_MAKEFILE))
|
||||
# platform-specific settings
|
||||
ifeq ($(arch),ia64)
|
||||
override CXXFLAGS += $(PIC_KEY)
|
||||
endif
|
||||
ifneq ($(filter suncc gcc clang,$(compiler)),)
|
||||
ifeq ($(compiler),suncc)
|
||||
override CXXFLAGS += -I$(tbb_root)$(SLASH)include -library=stlport4 -M$(tbb_root)/build/suncc.map.pause -erroff=unassigned,attrskipunsup,badargtype2w,badbinaryopw,wbadasg,wvarhidemem,wbadinit
|
||||
endif
|
||||
ifeq ($(arch),intel64)
|
||||
override CXXFLAGS += -m64
|
||||
endif
|
||||
ifeq ($(arch),ia32)
|
||||
override CXXFLAGS += -m32
|
||||
endif
|
||||
ifeq ($(arch),ppc64)
|
||||
override CXXFLAGS += -m64
|
||||
endif
|
||||
ifeq ($(arch),ppc32)
|
||||
override CXXFLAGS += -m32
|
||||
endif
|
||||
ifeq ($(arch),sparc)
|
||||
override CXXFLAGS += -mcpu=v9 -m64
|
||||
endif
|
||||
endif
|
||||
ifeq ($(compiler),xl)
|
||||
# -qsuppress=1540-0198 suppresses warnings like "1540-0198 (W) The omitted keyword "private" is assumed for base class "no_copy"."
|
||||
# -qsuppress=1540-1401 suppresses warnings like "1540-1401 (I) An unknown "pragma ivdep" is specified."
|
||||
override CXXFLAGS += -I$(tbb_root)$(SLASH)include -qsuppress=1540-0198:1540-1401 -L$(work_dir)_release -L$(work_dir)_debug
|
||||
ifeq ($(arch),intel64)
|
||||
override CXXFLAGS += -q64
|
||||
endif
|
||||
ifeq ($(arch),ia32)
|
||||
override CXXFLAGS += -q32
|
||||
endif
|
||||
ifeq ($(arch),ppc64)
|
||||
override CXXFLAGS += -q64
|
||||
endif
|
||||
ifeq ($(arch),ppc32)
|
||||
override CXXFLAGS += -q32
|
||||
endif
|
||||
endif
|
||||
ifeq ($(tbb_os),macos)
|
||||
export DYLD_LIBRARY_PATH := $(DYLD_LIBRARY_PATH):$(work_dir)_release:$(work_dir)_debug
|
||||
override CXXFLAGS += -Wl,-rpath,$(work_dir)_release -Wl,-rpath,$(work_dir)_debug
|
||||
else
|
||||
export LD_LIBRARY_PATH := $(LD_LIBRARY_PATH):$(work_dir)_release:$(work_dir)_debug
|
||||
ifeq ($(findstring mic,$(offload) $(target)),mic)
|
||||
mic_path=$(tbb_build_dir)$(SLASH)$(mic_tbb_build_prefix)
|
||||
export MIC_LIBRARY_PATH := $(mic_path)_release:$(mic_path)_debug:$(MIC_LIBRARY_PATH)
|
||||
export MIC_LD_LIBRARY_PATH := $(mic_path)_release:$(mic_path)_debug:$(MIC_LD_LIBRARY_PATH)
|
||||
else
|
||||
# -L necessary for non-native compilers which don't search $LIBRARY_PATH
|
||||
override CXXFLAGS += -L$(work_dir)_release -L$(work_dir)_debug
|
||||
endif
|
||||
endif
|
||||
export LIBS
|
||||
export LIBRARY_PATH := $(LIBRARY_PATH):$(work_dir)_release:$(work_dir)_debug
|
||||
export CPATH := $(CPATH):$(tbb_root)/include
|
||||
endif
|
||||
|
||||
export CXXFLAGS
|
||||
COMMON_TARGETS := all clean release debug test perf_build perf_run
|
||||
# list of directories of examples
|
||||
EXAMPLES_DIRS := $(foreach T,$(EXAMPLES),$(dir $(T)))
|
||||
# targets to explicitly call example have format: {example's dir}/{example's target}
|
||||
EXAMPLES_TARGETS := $(foreach T,$(COMMON_TARGETS),$(addsuffix $(T),$(EXAMPLES_DIRS)))
|
||||
|
||||
.PHONY: $(COMMON_TARGETS) $(EXAMPLES_TARGETS)
|
||||
|
||||
.DEFAULT: all
|
||||
|
||||
# execute standard targets for all examples
|
||||
$(COMMON_TARGETS):: % : $(addsuffix %,$(EXAMPLES_DIRS))
|
||||
|
||||
# proxy rule for calling appropriate example
|
||||
$(EXAMPLES_TARGETS)::
|
||||
@echo ------------------------ $@ ------------------------
|
||||
-$(MAKE) -C $(@D) -f $(EXAMPLE_MAKEFILE) $(notdir $@) CXX="$(CPLUS)" $(if $(run_cmd),run_cmd="$(run_cmd)",) $(if $(args),ARGS="$(args)",) $(if $(UI),UI="$(UI)")
|
||||
|
||||
printenv:
|
||||
ifeq ($(tbb_os),windows)
|
||||
@cmd /C set PATH
|
||||
@cmd /C set LIB
|
||||
@cmd /C set INCLUDE
|
||||
else
|
||||
@env | grep PATH
|
||||
endif
|
||||
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче