From e2fd36db652d99063a6b0ec939606a0932e872b1 Mon Sep 17 00:00:00 2001 From: "dsites@google.com" Date: Tue, 30 Jul 2013 19:19:02 +0000 Subject: [PATCH] Add script to compile shared libraries git-svn-id: https://cld2.googlecode.com/svn/trunk@58 b252ecd4-b096-bf77-eb8e-91563289f87e --- internal/compile_libs.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 internal/compile_libs.sh diff --git a/internal/compile_libs.sh b/internal/compile_libs.sh new file mode 100644 index 0000000..c2ced9c --- /dev/null +++ b/internal/compile_libs.sh @@ -0,0 +1,40 @@ +#!/bin/sh +# +# Copyright 2013 Google Inc. All Rights Reserved. +# +# 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. + +g++ -shared -fPIC -O2 -m64 compact_lang_det_test.cc \ + cldutil.cc cldutil_shared.cc compact_lang_det.cc compact_lang_det_hint_code.cc \ + compact_lang_det_impl.cc debug.cc fixunicodevalue.cc \ + generated_entities.cc generated_language.cc generated_ulscript.cc \ + getonescriptspan.cc lang_script.cc offsetmap.cc scoreonescriptspan.cc \ + tote.cc utf8statetable.cc \ + cld_generated_cjk_uni_prop_80.cc cld2_generated_cjk_compatible.cc \ + cld_generated_cjk_delta_bi_4.cc generated_distinct_bi_0.cc \ + cld2_generated_quadchrome0715.cc cld2_generated_deltaoctachrome0614.cc \ + cld2_generated_distinctoctachrome0604.cc cld_generated_score_quad_octa_1024_256.cc \ + -o libcld2.so + +g++ -shared -fPIC -O2 -m64 compact_lang_det_test.cc \ + cldutil.cc cldutil_shared.cc compact_lang_det.cc compact_lang_det_hint_code.cc \ + compact_lang_det_impl.cc debug.cc fixunicodevalue.cc \ + generated_entities.cc generated_language.cc generated_ulscript.cc \ + getonescriptspan.cc lang_script.cc offsetmap.cc scoreonescriptspan.cc \ + tote.cc utf8statetable.cc \ + cld_generated_cjk_uni_prop_80.cc cld2_generated_cjk_compatible.cc \ + cld_generated_cjk_delta_bi_32.cc generated_distinct_bi_0.cc \ + cld2_generated_quad0720.cc cld2_generated_deltaocta0527.cc \ + cld2_generated_distinctocta0527.cc cld_generated_score_quad_octa_1024_256.cc \ + -o libcld2_full.so +