Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <fishandfrolick@gmail.com>2012-06-27 00:30:17 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-06-27 00:30:17 +0400
commita4f69bb18722e8c2fbfac0c246bb6e874945b4de (patch)
tree4493508fdb9f6c6560e0eaf0289f5b1cdf914ca9 /contrib
parentfbd54800c6492302581cb50d5eea9f682cf1ce18 (diff)
xcode for threaded mert
Diffstat (limited to 'contrib')
-rw-r--r--contrib/other-builds/mert.xcodeproj/project.pbxproj16
-rw-r--r--contrib/other-builds/mert_lib.xcodeproj/project.pbxproj14
2 files changed, 30 insertions, 0 deletions
diff --git a/contrib/other-builds/mert.xcodeproj/project.pbxproj b/contrib/other-builds/mert.xcodeproj/project.pbxproj
index 051405632..d652bd293 100644
--- a/contrib/other-builds/mert.xcodeproj/project.pbxproj
+++ b/contrib/other-builds/mert.xcodeproj/project.pbxproj
@@ -196,10 +196,20 @@
1EB0AF101593A2180007E2A4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ WITH_THREADS,
+ );
HEADER_SEARCH_PATHS = (
../..,
/opt/local/include,
);
+ LIBRARY_SEARCH_PATHS = /opt/local/lib/;
+ OTHER_LDFLAGS = (
+ "-lz",
+ "-lboost_thread-mt",
+ );
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
@@ -207,10 +217,16 @@
1EB0AF111593A2180007E2A4 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ GCC_PREPROCESSOR_DEFINITIONS = WITH_THREADS;
HEADER_SEARCH_PATHS = (
../..,
/opt/local/include,
);
+ LIBRARY_SEARCH_PATHS = /opt/local/lib/;
+ OTHER_LDFLAGS = (
+ "-lz",
+ "-lboost_thread-mt",
+ );
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
diff --git a/contrib/other-builds/mert_lib.xcodeproj/project.pbxproj b/contrib/other-builds/mert_lib.xcodeproj/project.pbxproj
index ccaca528b..2729d67fa 100644
--- a/contrib/other-builds/mert_lib.xcodeproj/project.pbxproj
+++ b/contrib/other-builds/mert_lib.xcodeproj/project.pbxproj
@@ -105,6 +105,8 @@
1E3962231594D0FF006FE978 /* SentenceLevelScorer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1E3962221594D0FF006FE978 /* SentenceLevelScorer.cpp */; };
1E3962251594D12C006FE978 /* SentenceLevelScorer.h in Headers */ = {isa = PBXBuildFile; fileRef = 1E3962241594D12C006FE978 /* SentenceLevelScorer.h */; };
1E43CA3415973474000E29D3 /* PermutationScorer.h in Headers */ = {isa = PBXBuildFile; fileRef = 1E43CA3315973474000E29D3 /* PermutationScorer.h */; };
+ 1E689F21159A529C00DD995A /* ThreadPool.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1E689F1F159A529C00DD995A /* ThreadPool.cpp */; };
+ 1E689F22159A529C00DD995A /* ThreadPool.h in Headers */ = {isa = PBXBuildFile; fileRef = 1E689F20159A529C00DD995A /* ThreadPool.h */; };
1EE52B561596B3E4006DC938 /* StatisticsBasedScorer.h in Headers */ = {isa = PBXBuildFile; fileRef = 1EE52B551596B3E4006DC938 /* StatisticsBasedScorer.h */; };
1EE52B591596B3FC006DC938 /* StatisticsBasedScorer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1EE52B581596B3FC006DC938 /* StatisticsBasedScorer.cpp */; };
/* End PBXBuildFile section */
@@ -209,6 +211,8 @@
1E3962221594D0FF006FE978 /* SentenceLevelScorer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SentenceLevelScorer.cpp; path = ../../mert/SentenceLevelScorer.cpp; sourceTree = "<group>"; };
1E3962241594D12C006FE978 /* SentenceLevelScorer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentenceLevelScorer.h; path = ../../mert/SentenceLevelScorer.h; sourceTree = "<group>"; };
1E43CA3315973474000E29D3 /* PermutationScorer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PermutationScorer.h; path = ../../mert/PermutationScorer.h; sourceTree = "<group>"; };
+ 1E689F1F159A529C00DD995A /* ThreadPool.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ThreadPool.cpp; path = ../../moses/src/ThreadPool.cpp; sourceTree = "<group>"; };
+ 1E689F20159A529C00DD995A /* ThreadPool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ThreadPool.h; path = ../../moses/src/ThreadPool.h; sourceTree = "<group>"; };
1EE52B551596B3E4006DC938 /* StatisticsBasedScorer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = StatisticsBasedScorer.h; path = ../../mert/StatisticsBasedScorer.h; sourceTree = "<group>"; };
1EE52B581596B3FC006DC938 /* StatisticsBasedScorer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = StatisticsBasedScorer.cpp; path = ../../mert/StatisticsBasedScorer.cpp; sourceTree = "<group>"; };
/* End PBXFileReference section */
@@ -227,6 +231,8 @@
1E2CCF2815939E2D00D858D1 = {
isa = PBXGroup;
children = (
+ 1E689F1F159A529C00DD995A /* ThreadPool.cpp */,
+ 1E689F20159A529C00DD995A /* ThreadPool.h */,
1EE52B581596B3FC006DC938 /* StatisticsBasedScorer.cpp */,
1EE52B551596B3E4006DC938 /* StatisticsBasedScorer.h */,
1E3962241594D12C006FE978 /* SentenceLevelScorer.h */,
@@ -408,6 +414,7 @@
1E3962251594D12C006FE978 /* SentenceLevelScorer.h in Headers */,
1EE52B561596B3E4006DC938 /* StatisticsBasedScorer.h in Headers */,
1E43CA3415973474000E29D3 /* PermutationScorer.h in Headers */,
+ 1E689F22159A529C00DD995A /* ThreadPool.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -505,6 +512,7 @@
1E3962201594CFF9006FE978 /* Permutation.cpp in Sources */,
1E3962231594D0FF006FE978 /* SentenceLevelScorer.cpp in Sources */,
1EE52B591596B3FC006DC938 /* StatisticsBasedScorer.cpp in Sources */,
+ 1E689F21159A529C00DD995A /* ThreadPool.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -560,6 +568,11 @@
isa = XCBuildConfiguration;
buildSettings = {
EXECUTABLE_PREFIX = lib;
+ "GCC_PREPROCESSOR_DEFINITIONS[arch=*]" = (
+ "DEBUG=1",
+ "$(inherited)",
+ WITH_THREADS,
+ );
HEADER_SEARCH_PATHS = (
../..,
/opt/local/include,
@@ -572,6 +585,7 @@
isa = XCBuildConfiguration;
buildSettings = {
EXECUTABLE_PREFIX = lib;
+ GCC_PREPROCESSOR_DEFINITIONS = WITH_THREADS;
HEADER_SEARCH_PATHS = (
../..,
/opt/local/include,