From fa1616951dec43f326a0fa03c8e2f3dee450a300 Mon Sep 17 00:00:00 2001 From: Tino Didriksen Date: Thu, 15 Aug 2024 15:41:17 +0200 Subject: [PATCH] CMake instead of autotools; Windows fixes --- .github/workflows/build.yaml | 6 +- .gitignore | 32 +- CMakeLists.txt | 159 ++ Makefile.am | 17 - autogen.sh | 36 +- cmake.sh | 35 + configure | 1 + configure.ac | 109 -- lttoolbox/CMakeLists.txt | 152 ++ lttoolbox/Makefile.am | 64 - lttoolbox/cli.cc | 4 +- lttoolbox/lsx-comp.1 | 1 - lttoolbox/macosx/PLACEFRAMEWORKS.txt | 5 - .../lttoolbox.xcodeproj/project.pbxproj | 616 ------- .../lttoolbox.xcodeproj/sortiz.mode1v3 | 1425 ----------------- .../lttoolbox.xcodeproj/sortiz.pbxuser | 500 ------ lttoolbox/macosx/lttools_config.h | 123 -- lttoolbox/string_utils.cc | 12 +- lttoolbox/win32/Makefile.am | 1 - lttoolbox/win32/getopt.c | 81 - lttoolbox/win32/getopt.h | 19 - m4/ax_check_compile_flag.m4 | 74 - m4/ax_pthread.m4 | 522 ------ python/CMakeLists.txt | 39 + python/Makefile.am | 9 - python/setup.py.in | 2 +- 26 files changed, 406 insertions(+), 3638 deletions(-) create mode 100644 CMakeLists.txt delete mode 100644 Makefile.am mode change 100755 => 120000 autogen.sh create mode 100755 cmake.sh create mode 120000 configure delete mode 100644 configure.ac create mode 100644 lttoolbox/CMakeLists.txt delete mode 100644 lttoolbox/Makefile.am delete mode 120000 lttoolbox/lsx-comp.1 delete mode 100644 lttoolbox/macosx/PLACEFRAMEWORKS.txt delete mode 100644 lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/project.pbxproj delete mode 100644 lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/sortiz.mode1v3 delete mode 100644 lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/sortiz.pbxuser delete mode 100644 lttoolbox/macosx/lttools_config.h delete mode 100644 lttoolbox/win32/Makefile.am delete mode 100644 lttoolbox/win32/getopt.c delete mode 100644 lttoolbox/win32/getopt.h delete mode 100644 m4/ax_check_compile_flag.m4 delete mode 100644 m4/ax_pthread.m4 create mode 100644 python/CMakeLists.txt delete mode 100644 python/Makefile.am diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 24399e06..e00e7ffc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,11 +10,9 @@ jobs: - name: dependencies run: | sudo apt-get -qy update - sudo apt-get -qfy install --no-install-recommends build-essential automake autotools-dev pkg-config libutfcpp-dev libxml2-dev libxml2-utils python3-dev python3-setuptools swig - - name: autoreconf - run: autoreconf -fvi + sudo apt-get -qfy install --no-install-recommends build-essential cmake pkg-config libutfcpp-dev libxml2-dev libxml2-utils python3-dev python3-setuptools swig - name: configure - run: ./configure --disable-static --enable-python-bindings + run: cmake -DENABLE_PYTHON_BINDINGS=ON . - name: build run: make -j4 V=1 VERBOSE=1 - name: tests diff --git a/.gitignore b/.gitignore index bda2353a..41f84aa9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,30 +1,13 @@ *.pyc -**/*.deps/ -/build/ +/build*/ /.ccls-cache/ /*.pc -/aclocal.m4 -/autom4te.cache -/compile -/config.guess -/config.log -/config.status -/config.sub -/configure -/depcomp -/INSTALL -/install-sh -/libtool -/ltmain.sh -/lttoolbox/.libs -/m4/libtool.m4 -/m4/lt~obsolete.m4 -/m4/ltoptions.m4 -/m4/ltsugar.m4 -/m4/ltversion.m4 -/Makefile -/Makefile.in -/missing +Makefile +CMakeCache.txt +CMakeFiles +CTestTestfile.cmake +cmake_install.cmake +install_manifest.txt # Prerequisites *.d @@ -75,6 +58,7 @@ /lttoolbox/lt-expand /lttoolbox/lt-append /lttoolbox/lsx-comp +/lttoolbox/lsx-comp.1 /lttoolbox/lt-paradigm /lttoolbox/lt-invert /lttoolbox/lt-restrict diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..419644be --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,159 @@ +cmake_minimum_required(VERSION 3.12 FATAL_ERROR) +cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}) +project(lttoolbox + VERSION 3.7.11 + LANGUAGES CXX C + ) +set(VERSION ${PROJECT_VERSION}) +set(VERSION_ABI 3) +set(PACKAGE_NAME ${PROJECT_NAME}) +set(PACKAGE_BUGREPORT "apertium-stuff@lists.sourceforge.net") + +add_definitions("-DPACKAGE_VERSION=\"${PROJECT_VERSION}\"") + +set(MASTER_PROJECT OFF) +if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) + set(MASTER_PROJECT ON) +endif () + +# Release or Debug +if(MASTER_PROJECT AND NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release") +endif() + +set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) +set(CMAKE_MACOSX_RPATH ON) + +include(GNUInstallDirs) + +option(BUILD_SHARED_LIBS "Set to OFF to use static library" ON) +option(BUILD_TESTING "Set to OFF to disable tests" ON) +option(ENABLE_PYTHON_BINDINGS "Set to ON to build the Python wrapper" OFF) + +if(MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8 /std:c++latest /Zc:__cplusplus /permissive- /W4 /MP") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /O2") + set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG") + set(CMAKE_C_FLAGS ${CMAKE_CXX_FLAGS}) + set(CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}) +else() + set(_FLAGS_COMMON "-Wall -Wextra -Wno-missing-field-initializers -Wno-deprecated -Wno-unused-parameter -fPIC") + + include(CheckCCompilerFlag) + include(CheckCXXCompilerFlag) + + foreach(flag "-Wno-unused-result" "-flto") + string(REGEX REPLACE "[^A-Za-z0-9]" "-" _flag ${flag}) + CHECK_CXX_COMPILER_FLAG(${flag} COMPILER_SUPPORTS_${_flag}) + if(COMPILER_SUPPORTS_${_flag}) + set(_FLAGS_COMMON "${_FLAGS_COMMON} ${flag}") + endif() + endforeach() + if(COMPILER_SUPPORTS_flto) + set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -flto") + endif() + + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_FLAGS_COMMON} -fvisibility-inlines-hidden") + + # Enable latest possible C standard + foreach(flag "-std=c2x" "-std=c11" "-std=c1x" "-std=c99") + string(REGEX REPLACE "[^a-z0-9]" "-" _flag ${flag}) + CHECK_C_COMPILER_FLAG(${flag} COMPILER_SUPPORTS_${_flag}) + if(COMPILER_SUPPORTS_${_flag}) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${flag}") + break() + endif() + endforeach() + + # Require latest possible C++ standard + foreach(flag "-std=c++23" "-std=c++2b" "-std=c++20" "-std=c++2a" "-std=c++17") + string(REGEX REPLACE "[^a-z0-9]" "-" _flag ${flag}) + CHECK_CXX_COMPILER_FLAG(${flag} COMPILER_SUPPORTS_${_flag}) + if(COMPILER_SUPPORTS_${_flag}) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}") + set(_ENABLED_CXX ${flag}) + break() + endif() + endforeach() + if(NOT _ENABLED_CXX) + message(FATAL_ERROR "Could not enable at least C++17 - upgrade your compiler") + endif() + + # Generate pkg-config file + set(prefix ${CMAKE_INSTALL_PREFIX}) + set(exec_prefix "\${prefix}") + set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}") + set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}") + configure_file(lttoolbox.pc.in lttoolbox.pc @ONLY) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lttoolbox.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/") +endif() + +try_compile(SIZET_NOT_CSTDINT ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/lttoolbox/check-cstdint.cc) +if(SIZET_NOT_CSTDINT) + add_definitions(-DSIZET_NOT_CSTDINT) +endif() + +find_package(LibXml2 REQUIRED) +include_directories(${LIBXML2_INCLUDE_DIR}) + +if(WIN32) + add_definitions(-D_SECURE_SCL=0 -D_ITERATOR_DEBUG_LEVEL=0 -D_CRT_SECURE_NO_DEPRECATE -DWIN32_LEAN_AND_MEAN -DVC_EXTRALEAN -DNOMINMAX) + add_definitions(-DSTDC_HEADERS -DREGEX_MALLOC) + include_directories("lttoolbox/win32") +else() + add_definitions(-D_POSIX_C_SOURCE=200112 -D_GNU_SOURCE) +endif() + +if(NOT APPLE) + find_package(Threads REQUIRED) +endif() + +# Unlocked I/O functions +include(CheckSymbolExists) +set(CMAKE_REQUIRED_DEFINITIONS -D_POSIX_C_SOURCE=200112 -D_GNU_SOURCE) +foreach(func fread_unlocked fwrite_unlocked fgetc_unlocked fputc_unlocked fputs_unlocked fmemopen) + string(TOUPPER ${func} _uc) + CHECK_SYMBOL_EXISTS(${func} "stdio.h" HAVE_DECL_${_uc}) + if(HAVE_DECL_${_uc}) + add_definitions(-DHAVE_DECL_${_uc}) + endif() +endforeach() +unset(CMAKE_REQUIRED_DEFINITIONS) + +# getopt +find_path(GETOPT_INCLUDE getopt.h) +include_directories(${GETOPT_INCLUDE}) +if(VCPKG_TOOLCHAIN) + find_library(GETOPT_LIB NAMES getopt REQUIRED) + add_definitions(-DHAVE_GETOPT_LONG) +else() + set(GETOPT_LIB) + CHECK_SYMBOL_EXISTS(getopt_long "getopt.h" HAVE_DECL_GETOPT_LONG) + if(HAVE_DECL_GETOPT_LONG) + add_definitions(-DHAVE_GETOPT_LONG) + endif() +endif() + +# ICU +find_package(ICU COMPONENTS i18n io uc REQUIRED) + +# utf8cpp / utfcpp +find_path(UTFCPP_INCLUDE_DIRS utf8.h PATH_SUFFIXES utf8cpp utfcpp utf8 REQUIRED) +include_directories(${UTFCPP_INCLUDE_DIRS}) + +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) + +if(BUILD_TESTING) + enable_testing() + find_package(Python 3.8 REQUIRED) + set(PYTHON_EXECUTABLE ${Python_EXECUTABLE}) + set(ENV{CTEST_OUTPUT_ON_FAILURE} 1) + set(CMAKE_CTEST_ARGUMENTS "-VV") +endif() + +add_subdirectory(lttoolbox) + +if(ENABLE_PYTHON_BINDINGS) + add_subdirectory(python) +endif() diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 75ee74f9..00000000 --- a/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -ACLOCAL_AMFLAGS=-I m4 - -SUBDIRS = $(PACKAGE_NAME) -DIST_SUBDIRS = $(PACKAGE_NAME) - -if HAVE_PYTHON_BINDINGS -SUBDIRS += python -endif - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = lttoolbox.pc - -EXTRA_DIST=autogen.sh tests - -# TODO: the below will use python3 if you run it on Arch Linux with no python2 installed -test: tests/run_tests.py all - $(PYTHON) $< diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index f9f430ae..00000000 --- a/autogen.sh +++ /dev/null @@ -1,35 +0,0 @@ -#! /bin/sh - -# If the user specified a --prefix, take that, otherwise /usr/local/ -# is the default. -PREFIX=/usr/local -prefixnext=false -for i in "$@"; do - case $i in - --prefix=*) # equals separated: - PREFIX="${i#*=}" - ;; - --prefix) # space separated: - prefixnext=true - ;; - *) - $prefixnext && PREFIX="$i" && prefixnext=false - ;; - esac -done - -# Set the paths needed by libtool/pkg-config/aclocal etc. By inferring -# them based on --prefix , users don't have to edit ~/.bashrc. We only -# append, so if a user has some other preference, that will override. -PATH="${PATH}:/usr/local/bin" -export PATH -LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PREFIX}/lib" -export LD_LIBRARY_PATH -PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${PREFIX}/share/pkgconfig:${PREFIX}/lib/pkgconfig" -export PKG_CONFIG_PATH -ACLOCAL_PATH="${ACLOCAL_PATH}:${PREFIX}/share/aclocal" -export ACLOCAL_PATH - - -# Pass on all args to configure -autoreconf -fi && ./configure "$@" diff --git a/autogen.sh b/autogen.sh new file mode 120000 index 00000000..d400e9f0 --- /dev/null +++ b/autogen.sh @@ -0,0 +1 @@ +cmake.sh \ No newline at end of file diff --git a/cmake.sh b/cmake.sh new file mode 100755 index 00000000..da6f5342 --- /dev/null +++ b/cmake.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +set -e +args=() + +while [[ $# > 0 ]]; +do + case "$1" in + --prefix) + args+=("-DCMAKE_INSTALL_PREFIX=$2") + shift 2 + ;; + --prefix=*) + args+=("-DCMAKE_INSTALL_PREFIX=${1#*=}") + shift + ;; + --enable-python-bindings) + args+=("-DENABLE_PYTHON_BINDINGS=ON") + shift + ;; + *) + args+=("$1") + shift + ;; + esac +done + +set -- "${args[@]}" + +D=$(dirname "$0") + +echo "- rm -rf CMake caches" +rm -rf install_manifest.txt CMakeCache.txt *.cmake CMakeFiles [sp]*/CMakeFiles [sp]*/*.cmake _CPack_Packages Testing +echo "- cmake " "$@" "$D" +cmake "$@" "$D" +echo "- You may now perform: make -j8" diff --git a/configure b/configure new file mode 120000 index 00000000..d400e9f0 --- /dev/null +++ b/configure @@ -0,0 +1 @@ +cmake.sh \ No newline at end of file diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 395d3452..00000000 --- a/configure.ac +++ /dev/null @@ -1,109 +0,0 @@ -AC_PREREQ(2.52) - -m4_define([PKG_VERSION_MAJOR], [3]) -m4_define([PKG_VERSION_MINOR], [7]) -m4_define([PKG_VERSION_PATCH], [12]) - -# Bump if the ABI (not API) changed in a backwards-incompatible manner -m4_define([PKG_VERSION_ABI], [3]) - -AC_INIT([lttoolbox], [PKG_VERSION_MAJOR.PKG_VERSION_MINOR.PKG_VERSION_PATCH], [apertium-stuff@lists.sourceforge.net], [lttoolbox], [https://wiki.apertium.org/wiki/Lttoolbox]) - -VERSION=$PACKAGE_VERSION -VERSION_ABI=PKG_VERSION_ABI - -AC_SUBST(PACKAGE_NAME) -AC_SUBST(PACKAGE_VERSION) -AC_SUBST(VERSION_ABI) - -AM_INIT_AUTOMAKE -AC_CONFIG_MACRO_DIR([m4]) - -AC_CANONICAL_HOST -AC_PROG_CXX -AM_PROG_LIBTOOL -AM_SANITY_CHECK -AC_LANG_CPLUSPLUS - -CFLAGS="-Wall -Wextra $CFLAGS" -CXXFLAGS="-Wall -Wextra $CXXFLAGS" - -AC_ARG_ENABLE(debug, - [ --enable-debug Enable "-g -Wall" compiler options], - [CXXFLAGS="-g -Wall";CFLAGS="-g -Wall"]) - -AC_ARG_ENABLE(profile, - [ --enable-profile Enable "-pg -g -Wall" compiler options], - [CXXFLAGS="-pg -g -Wall"; CFLAGS="-pg -g -Wall"; LDFLAGS="-pg"]) - - -PKG_CHECK_MODULES(LIBXML, [libxml-2.0 >= 2.6.17]) -PKG_CHECK_MODULES(ICU, [icu-i18n, icu-io, icu-uc]) - -# Checks for libraries. -AC_CHECK_LIB(xml2, xmlReaderForFile) - -# Checks for header files. -AC_HEADER_STDC -AC_CHECK_HEADERS([stdlib.h string.h unistd.h stddef.h]) -AC_CHECK_HEADER(["$HOMEBREW_PREFIX/include/utf8cpp/utf8.h"], [CPPFLAGS="-I$HOMEBREW_PREFIX/include/utf8cpp/ $CPPFLAGS"], [ - AC_CHECK_HEADER([utf8cpp/utf8.h], [CPPFLAGS="-I/usr/include/utf8cpp/ $CPPFLAGS"], [ - AC_CHECK_HEADER([utf8.h], [], [AC_MSG_ERROR([You don't have utfcpp installed.])]) - ]) -]) - -# Checks for POSIX thread support -AX_PTHREAD([], [AC_MSG_ERROR([Can't find libpthread])]) - -# Checks for typedefs, structures, and compiler characteristics. -AC_HEADER_STDBOOL -AC_C_CONST -AC_TYPE_SIZE_T - -# Checks for library functions. -AC_FUNC_ERROR_AT_LINE - -AC_CHECK_DECLS([fread_unlocked, fwrite_unlocked, fgetc_unlocked, fputc_unlocked, fputs_unlocked, fmemopen]) - -AC_CHECK_FUNCS([setlocale strdup getopt_long]) - -AM_CONDITIONAL([WINDOWS], [test x$version_type = xwindows]) - -# Require highest supported C++ standard -AC_LANG(C++) -for version in 23 2b 20 2a 17; do - version_flag="-std=c++${version}" - AX_CHECK_COMPILE_FLAG([${version_flag}], [break], [version_flag=none]) -done -AS_IF([test "$version_flag" = none], [ - AC_MSG_ERROR([Could not enable at least C++17 - upgrade your compiler]) -]) -CXXFLAGS="$CXXFLAGS ${version_flag}" - -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ -#include -#include -#include -]],[[ -static_assert(!std::is_same::value, "size_t == uint32_t"); -static_assert(!std::is_same::value, "size_t == uint64_t"); - ]])], [AC_DEFINE([SIZET_NOT_CSTDINT], [1], [size_t != (uint32_t, uint64_t)])]) - -AM_PATH_PYTHON([3.4], [], [AC_MSG_WARN([Can't generate SWIG wrapper or run tests without Python])]) - -AC_CONFIG_FILES([python/lttoolbox.i python/setup.py]) - -AC_ARG_ENABLE([python-bindings], - AS_HELP_STRING([--enable-python-bindings], - [build python bindings (default=disabled)]), - [enable_python_bindings=$enableval], - [enable_python_bindings=no]) -AM_CONDITIONAL([HAVE_PYTHON_BINDINGS], [test x$enable_python_bindings = xyes]) - -AC_ARG_VAR([PYTHON_INSTALL_PARAMS], [Parameters to pass to the Python 3 module install step]) -if test "x$PYTHON_INSTALL_PARAMS" = "x" -then - PYTHON_INSTALL_PARAMS="--prefix=\$(prefix) --root=\$(DESTDIR)/" -fi - -AC_OUTPUT([Makefile lttoolbox.pc lttoolbox/Makefile python/Makefile]) diff --git a/lttoolbox/CMakeLists.txt b/lttoolbox/CMakeLists.txt new file mode 100644 index 00000000..92b08a33 --- /dev/null +++ b/lttoolbox/CMakeLists.txt @@ -0,0 +1,152 @@ +set(LIBLTTOOLBOX_HEADERS + acx.h + alphabet.h + att_compiler.h + buffer.h + cli.h + compiler.h + compression.h + deserialiser.h + entry_token.h + exception.h + expander.h + file_utils.h + fst_processor.h + input_file.h + lt_locale.h + match_exe.h + match_node.h + match_state.h + my_stdio.h + node.h + pattern_list.h + regexp_compiler.h + serialiser.h + sorted_vector.h + sorted_vector.hpp + state.h + string_utils.h + symbol_iter.h + tmx_compiler.h + transducer.h + trans_exe.h + ustring.h + xml_parse_util.h + xml_walk_util.h + ) +set(LIBLTTOOLBOX_SOURCES + acx.cc + alphabet.cc + att_compiler.cc + cli.cc + compiler.cc + compression.cc + entry_token.cc + expander.cc + file_utils.cc + fst_processor.cc + input_file.cc + lt_locale.cc + match_exe.cc + match_node.cc + match_state.cc + node.cc + pattern_list.cc + regexp_compiler.cc + sorted_vector.cc + state.cc + string_utils.cc + symbol_iter.cc + tmx_compiler.cc + transducer.cc + trans_exe.cc + ustring.cc + xml_parse_util.cc + xml_walk_util.cc + ${LIBLTTOOLBOX_HEADERS} + ) +if(WIN32) + set(LIBLTTOOLBOX_SOURCES + win32/libgen.c + win32/libgen.h + win32/regex.c + win32/regex.h + win32/unistd.h + ${LIBLTTOOLBOX_SOURCES} + ) +endif() + +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) + +add_library(lttoolbox ${LIBLTTOOLBOX_SOURCES}) +target_compile_definitions(lttoolbox PRIVATE LTTOOLBOX_EXPORTS) +set_target_properties(lttoolbox PROPERTIES VERSION ${VERSION_ABI}.0.0 SOVERSION ${VERSION_ABI}) +target_link_libraries(lttoolbox ${LIBXML2_LIBRARIES} ${ICU_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${GETOPT_LIB}) + +add_executable(lt-append lt_append.cc) +target_link_libraries(lt-append lttoolbox ${GETOPT_LIB}) + +add_executable(lt-print lt_print.cc) +target_link_libraries(lt-print lttoolbox ${GETOPT_LIB}) + +add_executable(lt-trim lt_trim.cc) +target_link_libraries(lt-trim lttoolbox ${GETOPT_LIB}) + +add_executable(lt-compose lt_compose.cc) +target_link_libraries(lt-compose lttoolbox ${GETOPT_LIB}) + +add_executable(lt-comp lt_comp.cc) +target_link_libraries(lt-comp lttoolbox ${GETOPT_LIB}) + +add_executable(lt-proc lt_proc.cc) +target_link_libraries(lt-proc lttoolbox ${GETOPT_LIB}) + +add_executable(lt-expand lt_expand.cc) +target_link_libraries(lt-expand lttoolbox ${GETOPT_LIB}) + +add_executable(lt-paradigm lt_paradigm.cc) +target_link_libraries(lt-paradigm lttoolbox ${GETOPT_LIB}) + +add_executable(lt-tmxcomp lt_tmxcomp.cc) +target_link_libraries(lt-tmxcomp lttoolbox ${GETOPT_LIB}) + +add_executable(lt-tmxproc lt_tmxproc.cc) +target_link_libraries(lt-tmxproc lttoolbox ${GETOPT_LIB}) + +add_executable(lt-invert lt_invert.cc) +target_link_libraries(lt-invert lttoolbox ${GETOPT_LIB}) + +add_executable(lt-restrict lt_restrict.cc) +target_link_libraries(lt-restrict lttoolbox ${GETOPT_LIB}) + +add_executable(lt-apply-acx lt_apply_acx.cc) +target_link_libraries(lt-apply-acx lttoolbox ${GETOPT_LIB}) + +if(BUILD_TESTING) + add_test(NAME tests COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_SOURCE_DIR}/tests/run_tests.py" $) + set_tests_properties(tests PROPERTIES FAIL_REGULAR_EXPRESSION "FAILED") +endif() + +if(WIN32) + add_custom_target(lsx-comp ALL COMMAND ${CMAKE_COMMAND} -E copy_if_different $ lsx-comp.exe DEPENDS lt-comp) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lsx-comp.exe DESTINATION ${CMAKE_INSTALL_BINDIR}) + add_custom_target(lsx-comp-man ALL COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/lt-comp.1 lsx-comp.1 DEPENDS lt-comp) +else() + add_custom_target(lsx-comp ALL COMMAND ${CMAKE_COMMAND} -E create_symlink lt-comp lsx-comp DEPENDS lt-comp) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lsx-comp DESTINATION ${CMAKE_INSTALL_BINDIR}) + add_custom_target(lsx-comp-man ALL COMMAND ${CMAKE_COMMAND} -E create_symlink lt-comp.1 lsx-comp.1 DEPENDS lt-comp) +endif() +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lsx-comp.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) + +install(TARGETS lttoolbox + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +install(FILES ${LIBLTTOOLBOX_HEADERS} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lttoolbox) +install(TARGETS lt-append lt-print lt-trim lt-compose lt-comp lt-proc lt-expand lt-paradigm lt-tmxcomp lt-tmxproc lt-invert lt-restrict lt-apply-acx + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + +install(FILES dix.dtd dix.rng dix.rnc acx.rng xsd/dix.xsd xsd/acx.xsd + DESTINATION ${CMAKE_INSTALL_DATADIR}/lttoolbox) + +install(FILES lt-append.1 lt-comp.1 lt-expand.1 lt-paradigm.1 lt-proc.1 lt-tmxcomp.1 lt-tmxproc.1 lt-print.1 lt-trim.1 lt-compose.1 + DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) diff --git a/lttoolbox/Makefile.am b/lttoolbox/Makefile.am deleted file mode 100644 index e4c1b657..00000000 --- a/lttoolbox/Makefile.am +++ /dev/null @@ -1,64 +0,0 @@ - -h_sources = acx.h alphabet.h att_compiler.h buffer.h cli.h compiler.h compression.h \ - deserialiser.h entry_token.h expander.h file_utils.h fst_processor.h input_file.h lt_locale.h \ - match_exe.h match_node.h match_state.h my_stdio.h node.h \ - pattern_list.h regexp_compiler.h serialiser.h sorted_vector.h state.h string_utils.h symbol_iter.h \ - transducer.h trans_exe.h xml_parse_util.h xml_walk_util.h exception.h tmx_compiler.h \ - ustring.h sorted_vector.hpp -cc_sources = acx.cc alphabet.cc att_compiler.cc cli.cc compiler.cc compression.cc entry_token.cc \ - expander.cc file_utils.cc fst_processor.cc input_file.cc lt_locale.cc match_exe.cc \ - match_node.cc match_state.cc node.cc pattern_list.cc \ - regexp_compiler.cc sorted_vector.cc state.cc string_utils.cc symbol_iter.cc transducer.cc \ - trans_exe.cc xml_parse_util.cc xml_walk_util.cc tmx_compiler.cc ustring.cc - -library_includedir = $(includedir)/$(PACKAGE_NAME) -library_include_HEADERS = $(h_sources) - -bin_PROGRAMS = lt-comp lt-proc lt-expand lt-paradigm lt-tmxcomp lt-tmxproc lt-print lt-trim lt-compose lt-append lsx-comp lt-invert lt-restrict lt-apply-acx -instdir = lttoolbox - -lib_LTLIBRARIES= liblttoolbox.la -liblttoolbox_la_SOURCES= $(h_sources) $(cc_sources) -liblttoolbox_la_LDFLAGS= -version-info $(VERSION_ABI) -liblttoolbox_la_LIBADD= $(ICU_LIBS) - -lttoolboxdir = $(prefix)/share/lttoolbox -lttoolboxinclude = $(prefix)/include -lttoolboxlib = $(prefix)/lib - -lttoolbox_DATA = dix.dtd dix.rng dix.rnc acx.rng xsd/dix.xsd xsd/acx.xsd - -LDADD = liblttoolbox.la $(PTHREAD_LIBS) -AM_LDFLAGS = -llttoolbox $(LIBXML_LIBS) $(ICU_LIBS) - -lt_append_SOURCES = lt_append.cc -lt_print_SOURCES = lt_print.cc -lt_trim_SOURCES = lt_trim.cc -lt_compose_SOURCES = lt_compose.cc -lt_comp_SOURCES = lt_comp.cc -lt_proc_SOURCES = lt_proc.cc -lt_expand_SOURCES = lt_expand.cc -lt_paradigm_SOURCES = lt_paradigm.cc -lt_tmxcomp_SOURCES = lt_tmxcomp.cc -lt_tmxproc_SOURCES = lt_tmxproc.cc -lsx_comp_SOURCES = lt_comp.cc -lt_invert_SOURCES = lt_invert.cc -lt_restrict_SOURCES = lt_restrict.cc -lt_apply_acx_SOURCES = lt_apply_acx.cc - -#lt-validate-dictionary: Makefile.am validate-header.sh -# @echo "Creating lt-validate-dictionary script" -# @echo "#!$(BASH)" > $@ -# @cat validate-header.sh >> $@ -# @echo "$(XMLLINT) --dtdvalid $(apertiumdir)/dix.dtd --noout \$$FILE1 && exit 0;" >> $@ -# @echo "exit 1;" >> $@ -# @chmod a+x $@ - - - -man_MANS = lt-append.1 lt-comp.1 lt-expand.1 lt-paradigm.1 lt-proc.1 lt-tmxcomp.1 lt-tmxproc.1 lt-print.1 lt-trim.1 lt-compose.1 lsx-comp.1 - -INCLUDES = -I$(top_srcdir) $(LIBXML_CFLAGS) $(ICU_CFLAGS) $(PTHREAD_CFLAGS) -CLEANFILES = *~ - -EXTRA_DIST = dix.dtd dix.rng dix.rnc acx.rng xsd/dix.xsd xsd/acx.xsd $(man_MANS) diff --git a/lttoolbox/cli.cc b/lttoolbox/cli.cc index ef079493..c1a78bb9 100644 --- a/lttoolbox/cli.cc +++ b/lttoolbox/cli.cc @@ -124,7 +124,7 @@ void CLI::parse_args(int argc, char* argv[]) prog_name = basename(argv[0]); std::string arg_str; #if HAVE_GETOPT_LONG - struct option long_options[options.size()]; + std::vector long_options(options.size()); int option_index = 0; #endif for (size_t i = 0; i < options.size(); i++) { @@ -140,7 +140,7 @@ void CLI::parse_args(int argc, char* argv[]) while (true) { #if HAVE_GETOPT_LONG - int cnt = getopt_long(argc, argv, arg_str.c_str(), long_options, &option_index); + int cnt = getopt_long(argc, argv, arg_str.c_str(), long_options.data(), &option_index); #else int cnt = getopt(argc, argv, arg_str.c_str()); #endif diff --git a/lttoolbox/lsx-comp.1 b/lttoolbox/lsx-comp.1 deleted file mode 120000 index e58f594e..00000000 --- a/lttoolbox/lsx-comp.1 +++ /dev/null @@ -1 +0,0 @@ -lt-comp.1 \ No newline at end of file diff --git a/lttoolbox/macosx/PLACEFRAMEWORKS.txt b/lttoolbox/macosx/PLACEFRAMEWORKS.txt deleted file mode 100644 index d1c92dc3..00000000 --- a/lttoolbox/macosx/PLACEFRAMEWORKS.txt +++ /dev/null @@ -1,5 +0,0 @@ -Place frameworks in this directory: - -libexslt.framework -libxml.framework -libxslt.framework diff --git a/lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/project.pbxproj b/lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/project.pbxproj deleted file mode 100644 index c55a9318..00000000 --- a/lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/project.pbxproj +++ /dev/null @@ -1,616 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 44; - objects = { - -/* Begin PBXBuildFile section */ - ACE777E50E20008300F7C0C6 /* lt_expand.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE777E40E20008300F7C0C6 /* lt_expand.cc */; }; - ACE777ED0E20009B00F7C0C6 /* lt_proc.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE777EC0E20009B00F7C0C6 /* lt_proc.cc */; }; - ACE777F00E2000B700F7C0C6 /* lt_comp.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE777EF0E2000B700F7C0C6 /* lt_comp.cc */; }; - ACE777F40E2000D800F7C0C6 /* libexslt.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ACE777F10E2000D800F7C0C6 /* libexslt.framework */; }; - ACE777F50E2000D800F7C0C6 /* libxml.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ACE777F20E2000D800F7C0C6 /* libxml.framework */; }; - ACE777F60E2000D800F7C0C6 /* libxslt.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ACE777F30E2000D800F7C0C6 /* libxslt.framework */; }; - ACE778290E20013F00F7C0C6 /* alphabet.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE777FE0E20013F00F7C0C6 /* alphabet.cc */; }; - ACE7782A0E20013F00F7C0C6 /* alphabet.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE777FF0E20013F00F7C0C6 /* alphabet.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE7782B0E20013F00F7C0C6 /* buffer.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778000E20013F00F7C0C6 /* buffer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE7782C0E20013F00F7C0C6 /* compiler.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE778010E20013F00F7C0C6 /* compiler.cc */; }; - ACE7782D0E20013F00F7C0C6 /* compiler.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778020E20013F00F7C0C6 /* compiler.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE7782E0E20013F00F7C0C6 /* compression.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE778030E20013F00F7C0C6 /* compression.cc */; }; - ACE7782F0E20013F00F7C0C6 /* compression.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778040E20013F00F7C0C6 /* compression.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778300E20013F00F7C0C6 /* endian_util.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778060E20013F00F7C0C6 /* endian_util.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778310E20013F00F7C0C6 /* entry_token.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE778070E20013F00F7C0C6 /* entry_token.cc */; }; - ACE778320E20013F00F7C0C6 /* entry_token.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778080E20013F00F7C0C6 /* entry_token.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778330E20013F00F7C0C6 /* exception.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778090E20013F00F7C0C6 /* exception.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778340E20013F00F7C0C6 /* expander.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE7780A0E20013F00F7C0C6 /* expander.cc */; }; - ACE778350E20013F00F7C0C6 /* expander.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE7780B0E20013F00F7C0C6 /* expander.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778360E20013F00F7C0C6 /* fst_processor.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE7780C0E20013F00F7C0C6 /* fst_processor.cc */; }; - ACE778370E20013F00F7C0C6 /* fst_processor.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE7780D0E20013F00F7C0C6 /* fst_processor.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778380E20013F00F7C0C6 /* lt_locale.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE7780E0E20013F00F7C0C6 /* lt_locale.cc */; }; - ACE778390E20013F00F7C0C6 /* lt_locale.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE7780F0E20013F00F7C0C6 /* lt_locale.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE7783A0E20013F00F7C0C6 /* ltstr.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778100E20013F00F7C0C6 /* ltstr.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE7783B0E20013F00F7C0C6 /* match_exe.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE778110E20013F00F7C0C6 /* match_exe.cc */; }; - ACE7783C0E20013F00F7C0C6 /* match_exe.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778120E20013F00F7C0C6 /* match_exe.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE7783D0E20013F00F7C0C6 /* match_node.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE778130E20013F00F7C0C6 /* match_node.cc */; }; - ACE7783E0E20013F00F7C0C6 /* match_node.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778140E20013F00F7C0C6 /* match_node.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE7783F0E20013F00F7C0C6 /* match_state.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE778150E20013F00F7C0C6 /* match_state.cc */; }; - ACE778400E20013F00F7C0C6 /* match_state.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778160E20013F00F7C0C6 /* match_state.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778410E20013F00F7C0C6 /* my_stdio.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778170E20013F00F7C0C6 /* my_stdio.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778420E20013F00F7C0C6 /* node.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE778180E20013F00F7C0C6 /* node.cc */; }; - ACE778430E20013F00F7C0C6 /* node.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778190E20013F00F7C0C6 /* node.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778440E20013F00F7C0C6 /* pattern_list.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE7781A0E20013F00F7C0C6 /* pattern_list.cc */; }; - ACE778450E20013F00F7C0C6 /* pattern_list.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE7781B0E20013F00F7C0C6 /* pattern_list.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778460E20013F00F7C0C6 /* pool.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE7781C0E20013F00F7C0C6 /* pool.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778470E20013F00F7C0C6 /* regexp_compiler.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE7781D0E20013F00F7C0C6 /* regexp_compiler.cc */; }; - ACE778480E20013F00F7C0C6 /* regexp_compiler.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE7781E0E20013F00F7C0C6 /* regexp_compiler.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778490E20013F00F7C0C6 /* sorted_vector.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE7781F0E20013F00F7C0C6 /* sorted_vector.cc */; }; - ACE7784A0E20013F00F7C0C6 /* sorted_vector.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778200E20013F00F7C0C6 /* sorted_vector.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE7784B0E20013F00F7C0C6 /* state.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE778210E20013F00F7C0C6 /* state.cc */; }; - ACE7784C0E20013F00F7C0C6 /* state.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778220E20013F00F7C0C6 /* state.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE7784D0E20013F00F7C0C6 /* trans_exe.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE778230E20013F00F7C0C6 /* trans_exe.cc */; }; - ACE7784E0E20013F00F7C0C6 /* trans_exe.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778240E20013F00F7C0C6 /* trans_exe.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE7784F0E20013F00F7C0C6 /* transducer.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE778250E20013F00F7C0C6 /* transducer.cc */; }; - ACE778500E20013F00F7C0C6 /* transducer.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778260E20013F00F7C0C6 /* transducer.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778510E20013F00F7C0C6 /* xml_parse_util.cc in Sources */ = {isa = PBXBuildFile; fileRef = ACE778270E20013F00F7C0C6 /* xml_parse_util.cc */; }; - ACE778520E20013F00F7C0C6 /* xml_parse_util.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778280E20013F00F7C0C6 /* xml_parse_util.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE778590E20015E00F7C0C6 /* lttools_config.h in Headers */ = {isa = PBXBuildFile; fileRef = ACE778580E20015E00F7C0C6 /* lttools_config.h */; settings = {ATTRIBUTES = (Public, ); }; }; - ACE7785D0E2001CD00F7C0C6 /* liblttoolbox.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D2AAC0630554660B00DB518D /* liblttoolbox.dylib */; }; - ACE7785E0E2001D300F7C0C6 /* liblttoolbox.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D2AAC0630554660B00DB518D /* liblttoolbox.dylib */; }; - ACE7785F0E2001E000F7C0C6 /* liblttoolbox.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D2AAC0630554660B00DB518D /* liblttoolbox.dylib */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - ACE777D10E20003F00F7C0C6 /* lt-comp */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "lt-comp"; sourceTree = BUILT_PRODUCTS_DIR; }; - ACE777D80E20005300F7C0C6 /* lt-proc */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "lt-proc"; sourceTree = BUILT_PRODUCTS_DIR; }; - ACE777DF0E20006600F7C0C6 /* lt-expand */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "lt-expand"; sourceTree = BUILT_PRODUCTS_DIR; }; - ACE777E30E20008300F7C0C6 /* lt-expand.1 */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.man; name = "lt-expand.1"; path = "../../lt-expand.1"; sourceTree = SOURCE_ROOT; }; - ACE777E40E20008300F7C0C6 /* lt_expand.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = lt_expand.cc; path = ../../lt_expand.cc; sourceTree = SOURCE_ROOT; }; - ACE777EB0E20009B00F7C0C6 /* lt-proc.1 */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.man; name = "lt-proc.1"; path = "../../lt-proc.1"; sourceTree = SOURCE_ROOT; }; - ACE777EC0E20009B00F7C0C6 /* lt_proc.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = lt_proc.cc; path = ../../lt_proc.cc; sourceTree = SOURCE_ROOT; }; - ACE777EE0E2000B700F7C0C6 /* lt-comp.1 */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.man; name = "lt-comp.1"; path = "../../lt-comp.1"; sourceTree = SOURCE_ROOT; }; - ACE777EF0E2000B700F7C0C6 /* lt_comp.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = lt_comp.cc; path = ../../lt_comp.cc; sourceTree = SOURCE_ROOT; }; - ACE777F10E2000D800F7C0C6 /* libexslt.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = libexslt.framework; path = ../libexslt.framework; sourceTree = SOURCE_ROOT; }; - ACE777F20E2000D800F7C0C6 /* libxml.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = libxml.framework; path = ../libxml.framework; sourceTree = SOURCE_ROOT; }; - ACE777F30E2000D800F7C0C6 /* libxslt.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = libxslt.framework; path = ../libxslt.framework; sourceTree = SOURCE_ROOT; }; - ACE777FD0E20013F00F7C0C6 /* acx.rng */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = acx.rng; path = ../../acx.rng; sourceTree = SOURCE_ROOT; }; - ACE777FE0E20013F00F7C0C6 /* alphabet.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = alphabet.cc; path = ../../alphabet.cc; sourceTree = SOURCE_ROOT; }; - ACE777FF0E20013F00F7C0C6 /* alphabet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = alphabet.h; path = ../../alphabet.h; sourceTree = SOURCE_ROOT; }; - ACE778000E20013F00F7C0C6 /* buffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = buffer.h; path = ../../buffer.h; sourceTree = SOURCE_ROOT; }; - ACE778010E20013F00F7C0C6 /* compiler.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = compiler.cc; path = ../../compiler.cc; sourceTree = SOURCE_ROOT; }; - ACE778020E20013F00F7C0C6 /* compiler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = compiler.h; path = ../../compiler.h; sourceTree = SOURCE_ROOT; }; - ACE778030E20013F00F7C0C6 /* compression.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = compression.cc; path = ../../compression.cc; sourceTree = SOURCE_ROOT; }; - ACE778040E20013F00F7C0C6 /* compression.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = compression.h; path = ../../compression.h; sourceTree = SOURCE_ROOT; }; - ACE778050E20013F00F7C0C6 /* dix.dtd */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = dix.dtd; path = ../../dix.dtd; sourceTree = SOURCE_ROOT; }; - ACE778060E20013F00F7C0C6 /* endian_util.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = endian_util.h; path = ../../endian_util.h; sourceTree = SOURCE_ROOT; }; - ACE778070E20013F00F7C0C6 /* entry_token.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = entry_token.cc; path = ../../entry_token.cc; sourceTree = SOURCE_ROOT; }; - ACE778080E20013F00F7C0C6 /* entry_token.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = entry_token.h; path = ../../entry_token.h; sourceTree = SOURCE_ROOT; }; - ACE778090E20013F00F7C0C6 /* exception.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = exception.h; path = ../../exception.h; sourceTree = SOURCE_ROOT; }; - ACE7780A0E20013F00F7C0C6 /* expander.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = expander.cc; path = ../../expander.cc; sourceTree = SOURCE_ROOT; }; - ACE7780B0E20013F00F7C0C6 /* expander.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = expander.h; path = ../../expander.h; sourceTree = SOURCE_ROOT; }; - ACE7780C0E20013F00F7C0C6 /* fst_processor.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = fst_processor.cc; path = ../../fst_processor.cc; sourceTree = SOURCE_ROOT; }; - ACE7780D0E20013F00F7C0C6 /* fst_processor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fst_processor.h; path = ../../fst_processor.h; sourceTree = SOURCE_ROOT; }; - ACE7780E0E20013F00F7C0C6 /* lt_locale.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = lt_locale.cc; path = ../../lt_locale.cc; sourceTree = SOURCE_ROOT; }; - ACE7780F0E20013F00F7C0C6 /* lt_locale.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = lt_locale.h; path = ../../lt_locale.h; sourceTree = SOURCE_ROOT; }; - ACE778100E20013F00F7C0C6 /* ltstr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ltstr.h; path = ../../ltstr.h; sourceTree = SOURCE_ROOT; }; - ACE778110E20013F00F7C0C6 /* match_exe.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = match_exe.cc; path = ../../match_exe.cc; sourceTree = SOURCE_ROOT; }; - ACE778120E20013F00F7C0C6 /* match_exe.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = match_exe.h; path = ../../match_exe.h; sourceTree = SOURCE_ROOT; }; - ACE778130E20013F00F7C0C6 /* match_node.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = match_node.cc; path = ../../match_node.cc; sourceTree = SOURCE_ROOT; }; - ACE778140E20013F00F7C0C6 /* match_node.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = match_node.h; path = ../../match_node.h; sourceTree = SOURCE_ROOT; }; - ACE778150E20013F00F7C0C6 /* match_state.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = match_state.cc; path = ../../match_state.cc; sourceTree = SOURCE_ROOT; }; - ACE778160E20013F00F7C0C6 /* match_state.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = match_state.h; path = ../../match_state.h; sourceTree = SOURCE_ROOT; }; - ACE778170E20013F00F7C0C6 /* my_stdio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = my_stdio.h; path = ../../my_stdio.h; sourceTree = SOURCE_ROOT; }; - ACE778180E20013F00F7C0C6 /* node.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = node.cc; path = ../../node.cc; sourceTree = SOURCE_ROOT; }; - ACE778190E20013F00F7C0C6 /* node.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = node.h; path = ../../node.h; sourceTree = SOURCE_ROOT; }; - ACE7781A0E20013F00F7C0C6 /* pattern_list.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = pattern_list.cc; path = ../../pattern_list.cc; sourceTree = SOURCE_ROOT; }; - ACE7781B0E20013F00F7C0C6 /* pattern_list.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = pattern_list.h; path = ../../pattern_list.h; sourceTree = SOURCE_ROOT; }; - ACE7781C0E20013F00F7C0C6 /* pool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = pool.h; path = ../../pool.h; sourceTree = SOURCE_ROOT; }; - ACE7781D0E20013F00F7C0C6 /* regexp_compiler.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = regexp_compiler.cc; path = ../../regexp_compiler.cc; sourceTree = SOURCE_ROOT; }; - ACE7781E0E20013F00F7C0C6 /* regexp_compiler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = regexp_compiler.h; path = ../../regexp_compiler.h; sourceTree = SOURCE_ROOT; }; - ACE7781F0E20013F00F7C0C6 /* sorted_vector.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = sorted_vector.cc; path = ../../sorted_vector.cc; sourceTree = SOURCE_ROOT; }; - ACE778200E20013F00F7C0C6 /* sorted_vector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = sorted_vector.h; path = ../../sorted_vector.h; sourceTree = SOURCE_ROOT; }; - ACE778210E20013F00F7C0C6 /* state.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = state.cc; path = ../../state.cc; sourceTree = SOURCE_ROOT; }; - ACE778220E20013F00F7C0C6 /* state.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = state.h; path = ../../state.h; sourceTree = SOURCE_ROOT; }; - ACE778230E20013F00F7C0C6 /* trans_exe.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = trans_exe.cc; path = ../../trans_exe.cc; sourceTree = SOURCE_ROOT; }; - ACE778240E20013F00F7C0C6 /* trans_exe.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = trans_exe.h; path = ../../trans_exe.h; sourceTree = SOURCE_ROOT; }; - ACE778250E20013F00F7C0C6 /* transducer.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = transducer.cc; path = ../../transducer.cc; sourceTree = SOURCE_ROOT; }; - ACE778260E20013F00F7C0C6 /* transducer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = transducer.h; path = ../../transducer.h; sourceTree = SOURCE_ROOT; }; - ACE778270E20013F00F7C0C6 /* xml_parse_util.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = xml_parse_util.cc; path = ../../xml_parse_util.cc; sourceTree = SOURCE_ROOT; }; - ACE778280E20013F00F7C0C6 /* xml_parse_util.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = xml_parse_util.h; path = ../../xml_parse_util.h; sourceTree = SOURCE_ROOT; }; - ACE778580E20015E00F7C0C6 /* lttools_config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = lttools_config.h; path = ../lttools_config.h; sourceTree = SOURCE_ROOT; }; - D2AAC0630554660B00DB518D /* liblttoolbox.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = liblttoolbox.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - ACE777CF0E20003F00F7C0C6 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ACE7785D0E2001CD00F7C0C6 /* liblttoolbox.dylib in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ACE777D60E20005300F7C0C6 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ACE7785F0E2001E000F7C0C6 /* liblttoolbox.dylib in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ACE777DD0E20006600F7C0C6 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ACE7785E0E2001D300F7C0C6 /* liblttoolbox.dylib in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D289988505E68E00004EDB86 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ACE777F40E2000D800F7C0C6 /* libexslt.framework in Frameworks */, - ACE777F50E2000D800F7C0C6 /* libxml.framework in Frameworks */, - ACE777F60E2000D800F7C0C6 /* libxslt.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 08FB7794FE84155DC02AAC07 /* lttoolbox */ = { - isa = PBXGroup; - children = ( - ACE778580E20015E00F7C0C6 /* lttools_config.h */, - ACE777FD0E20013F00F7C0C6 /* acx.rng */, - ACE777FE0E20013F00F7C0C6 /* alphabet.cc */, - ACE777FF0E20013F00F7C0C6 /* alphabet.h */, - ACE778000E20013F00F7C0C6 /* buffer.h */, - ACE778010E20013F00F7C0C6 /* compiler.cc */, - ACE778020E20013F00F7C0C6 /* compiler.h */, - ACE778030E20013F00F7C0C6 /* compression.cc */, - ACE778040E20013F00F7C0C6 /* compression.h */, - ACE778050E20013F00F7C0C6 /* dix.dtd */, - ACE778060E20013F00F7C0C6 /* endian_util.h */, - ACE778070E20013F00F7C0C6 /* entry_token.cc */, - ACE778080E20013F00F7C0C6 /* entry_token.h */, - ACE778090E20013F00F7C0C6 /* exception.h */, - ACE7780A0E20013F00F7C0C6 /* expander.cc */, - ACE7780B0E20013F00F7C0C6 /* expander.h */, - ACE7780C0E20013F00F7C0C6 /* fst_processor.cc */, - ACE7780D0E20013F00F7C0C6 /* fst_processor.h */, - ACE7780E0E20013F00F7C0C6 /* lt_locale.cc */, - ACE7780F0E20013F00F7C0C6 /* lt_locale.h */, - ACE778100E20013F00F7C0C6 /* ltstr.h */, - ACE778110E20013F00F7C0C6 /* match_exe.cc */, - ACE778120E20013F00F7C0C6 /* match_exe.h */, - ACE778130E20013F00F7C0C6 /* match_node.cc */, - ACE778140E20013F00F7C0C6 /* match_node.h */, - ACE778150E20013F00F7C0C6 /* match_state.cc */, - ACE778160E20013F00F7C0C6 /* match_state.h */, - ACE778170E20013F00F7C0C6 /* my_stdio.h */, - ACE778180E20013F00F7C0C6 /* node.cc */, - ACE778190E20013F00F7C0C6 /* node.h */, - ACE7781A0E20013F00F7C0C6 /* pattern_list.cc */, - ACE7781B0E20013F00F7C0C6 /* pattern_list.h */, - ACE7781C0E20013F00F7C0C6 /* pool.h */, - ACE7781D0E20013F00F7C0C6 /* regexp_compiler.cc */, - ACE7781E0E20013F00F7C0C6 /* regexp_compiler.h */, - ACE7781F0E20013F00F7C0C6 /* sorted_vector.cc */, - ACE778200E20013F00F7C0C6 /* sorted_vector.h */, - ACE778210E20013F00F7C0C6 /* state.cc */, - ACE778220E20013F00F7C0C6 /* state.h */, - ACE778230E20013F00F7C0C6 /* trans_exe.cc */, - ACE778240E20013F00F7C0C6 /* trans_exe.h */, - ACE778250E20013F00F7C0C6 /* transducer.cc */, - ACE778260E20013F00F7C0C6 /* transducer.h */, - ACE778270E20013F00F7C0C6 /* xml_parse_util.cc */, - ACE778280E20013F00F7C0C6 /* xml_parse_util.h */, - ACE777F10E2000D800F7C0C6 /* libexslt.framework */, - ACE777F20E2000D800F7C0C6 /* libxml.framework */, - ACE777F30E2000D800F7C0C6 /* libxslt.framework */, - ACE777EE0E2000B700F7C0C6 /* lt-comp.1 */, - ACE777EF0E2000B700F7C0C6 /* lt_comp.cc */, - ACE777EB0E20009B00F7C0C6 /* lt-proc.1 */, - ACE777EC0E20009B00F7C0C6 /* lt_proc.cc */, - ACE777E30E20008300F7C0C6 /* lt-expand.1 */, - ACE777E40E20008300F7C0C6 /* lt_expand.cc */, - 08FB7795FE84155DC02AAC07 /* Source */, - 1AB674ADFE9D54B511CA2CBB /* Products */, - ); - name = lttoolbox; - sourceTree = ""; - }; - 08FB7795FE84155DC02AAC07 /* Source */ = { - isa = PBXGroup; - children = ( - ); - name = Source; - sourceTree = ""; - }; - 1AB674ADFE9D54B511CA2CBB /* Products */ = { - isa = PBXGroup; - children = ( - D2AAC0630554660B00DB518D /* liblttoolbox.dylib */, - ACE777D10E20003F00F7C0C6 /* lt-comp */, - ACE777D80E20005300F7C0C6 /* lt-proc */, - ACE777DF0E20006600F7C0C6 /* lt-expand */, - ); - name = Products; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - D2AAC0600554660B00DB518D /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ACE7782A0E20013F00F7C0C6 /* alphabet.h in Headers */, - ACE7782B0E20013F00F7C0C6 /* buffer.h in Headers */, - ACE7782D0E20013F00F7C0C6 /* compiler.h in Headers */, - ACE7782F0E20013F00F7C0C6 /* compression.h in Headers */, - ACE778300E20013F00F7C0C6 /* endian_util.h in Headers */, - ACE778320E20013F00F7C0C6 /* entry_token.h in Headers */, - ACE778330E20013F00F7C0C6 /* exception.h in Headers */, - ACE778350E20013F00F7C0C6 /* expander.h in Headers */, - ACE778370E20013F00F7C0C6 /* fst_processor.h in Headers */, - ACE778390E20013F00F7C0C6 /* lt_locale.h in Headers */, - ACE7783A0E20013F00F7C0C6 /* ltstr.h in Headers */, - ACE7783C0E20013F00F7C0C6 /* match_exe.h in Headers */, - ACE7783E0E20013F00F7C0C6 /* match_node.h in Headers */, - ACE778400E20013F00F7C0C6 /* match_state.h in Headers */, - ACE778410E20013F00F7C0C6 /* my_stdio.h in Headers */, - ACE778430E20013F00F7C0C6 /* node.h in Headers */, - ACE778450E20013F00F7C0C6 /* pattern_list.h in Headers */, - ACE778460E20013F00F7C0C6 /* pool.h in Headers */, - ACE778480E20013F00F7C0C6 /* regexp_compiler.h in Headers */, - ACE7784A0E20013F00F7C0C6 /* sorted_vector.h in Headers */, - ACE7784C0E20013F00F7C0C6 /* state.h in Headers */, - ACE7784E0E20013F00F7C0C6 /* trans_exe.h in Headers */, - ACE778500E20013F00F7C0C6 /* transducer.h in Headers */, - ACE778520E20013F00F7C0C6 /* xml_parse_util.h in Headers */, - ACE778590E20015E00F7C0C6 /* lttools_config.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - ACE777D00E20003F00F7C0C6 /* lt-comp */ = { - isa = PBXNativeTarget; - buildConfigurationList = ACE777E60E20008300F7C0C6 /* Build configuration list for PBXNativeTarget "lt-comp" */; - buildPhases = ( - ACE777CE0E20003F00F7C0C6 /* Sources */, - ACE777CF0E20003F00F7C0C6 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "lt-comp"; - productName = "lt-comp"; - productReference = ACE777D10E20003F00F7C0C6 /* lt-comp */; - productType = "com.apple.product-type.tool"; - }; - ACE777D70E20005300F7C0C6 /* lt-proc */ = { - isa = PBXNativeTarget; - buildConfigurationList = ACE777E70E20008300F7C0C6 /* Build configuration list for PBXNativeTarget "lt-proc" */; - buildPhases = ( - ACE777D50E20005300F7C0C6 /* Sources */, - ACE777D60E20005300F7C0C6 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "lt-proc"; - productName = "lt-proc"; - productReference = ACE777D80E20005300F7C0C6 /* lt-proc */; - productType = "com.apple.product-type.tool"; - }; - ACE777DE0E20006600F7C0C6 /* lt-expand */ = { - isa = PBXNativeTarget; - buildConfigurationList = ACE777E80E20008300F7C0C6 /* Build configuration list for PBXNativeTarget "lt-expand" */; - buildPhases = ( - ACE777DC0E20006600F7C0C6 /* Sources */, - ACE777DD0E20006600F7C0C6 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "lt-expand"; - productName = "lt-expand"; - productReference = ACE777DF0E20006600F7C0C6 /* lt-expand */; - productType = "com.apple.product-type.tool"; - }; - D2AAC0620554660B00DB518D /* lttoolbox */ = { - isa = PBXNativeTarget; - buildConfigurationList = 1DEB914A08733D8E0010E9CD /* Build configuration list for PBXNativeTarget "lttoolbox" */; - buildPhases = ( - D2AAC0600554660B00DB518D /* Headers */, - D2AAC0610554660B00DB518D /* Sources */, - D289988505E68E00004EDB86 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = lttoolbox; - productName = lttoolbox; - productReference = D2AAC0630554660B00DB518D /* liblttoolbox.dylib */; - productType = "com.apple.product-type.library.dynamic"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 08FB7793FE84155DC02AAC07 /* Project object */ = { - isa = PBXProject; - buildConfigurationList = 1DEB914E08733D8E0010E9CD /* Build configuration list for PBXProject "lttoolbox" */; - compatibilityVersion = "Xcode 3.0"; - hasScannedForEncodings = 1; - mainGroup = 08FB7794FE84155DC02AAC07 /* lttoolbox */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - D2AAC0620554660B00DB518D /* lttoolbox */, - ACE777D00E20003F00F7C0C6 /* lt-comp */, - ACE777D70E20005300F7C0C6 /* lt-proc */, - ACE777DE0E20006600F7C0C6 /* lt-expand */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXSourcesBuildPhase section */ - ACE777CE0E20003F00F7C0C6 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ACE777F00E2000B700F7C0C6 /* lt_comp.cc in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ACE777D50E20005300F7C0C6 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ACE777ED0E20009B00F7C0C6 /* lt_proc.cc in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ACE777DC0E20006600F7C0C6 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ACE777E50E20008300F7C0C6 /* lt_expand.cc in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - D2AAC0610554660B00DB518D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ACE778290E20013F00F7C0C6 /* alphabet.cc in Sources */, - ACE7782C0E20013F00F7C0C6 /* compiler.cc in Sources */, - ACE7782E0E20013F00F7C0C6 /* compression.cc in Sources */, - ACE778310E20013F00F7C0C6 /* entry_token.cc in Sources */, - ACE778340E20013F00F7C0C6 /* expander.cc in Sources */, - ACE778360E20013F00F7C0C6 /* fst_processor.cc in Sources */, - ACE778380E20013F00F7C0C6 /* lt_locale.cc in Sources */, - ACE7783B0E20013F00F7C0C6 /* match_exe.cc in Sources */, - ACE7783D0E20013F00F7C0C6 /* match_node.cc in Sources */, - ACE7783F0E20013F00F7C0C6 /* match_state.cc in Sources */, - ACE778420E20013F00F7C0C6 /* node.cc in Sources */, - ACE778440E20013F00F7C0C6 /* pattern_list.cc in Sources */, - ACE778470E20013F00F7C0C6 /* regexp_compiler.cc in Sources */, - ACE778490E20013F00F7C0C6 /* sorted_vector.cc in Sources */, - ACE7784B0E20013F00F7C0C6 /* state.cc in Sources */, - ACE7784D0E20013F00F7C0C6 /* trans_exe.cc in Sources */, - ACE7784F0E20013F00F7C0C6 /* transducer.cc in Sources */, - ACE778510E20013F00F7C0C6 /* xml_parse_util.cc in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 1DEB914B08733D8E0010E9CD /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = NO; - EXECUTABLE_PREFIX = lib; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SRCROOT)/..\"", - ); - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; - GCC_MODEL_TUNING = G5; - GCC_OPTIMIZATION_LEVEL = 0; - INSTALL_PATH = /usr/local/lib; - PRODUCT_NAME = lttoolbox; - ZERO_LINK = YES; - }; - name = Debug; - }; - 1DEB914C08733D8E0010E9CD /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - EXECUTABLE_PREFIX = lib; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SRCROOT)/..\"", - ); - GCC_MODEL_TUNING = G5; - INSTALL_PATH = /usr/local/lib; - PRODUCT_NAME = lttoolbox; - }; - name = Release; - }; - 1DEB914F08733D8E0010E9CD /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - PREBINDING = NO; - SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk"; - }; - name = Debug; - }; - 1DEB915008733D8E0010E9CD /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ( - ppc, - i386, - ); - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - PREBINDING = NO; - SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk"; - }; - name = Release; - }; - ACE777D30E20003F00F7C0C6 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; - GCC_MODEL_TUNING = G5; - GCC_OPTIMIZATION_LEVEL = 0; - INSTALL_PATH = /usr/local/bin; - PREBINDING = NO; - PRODUCT_NAME = "lt-comp"; - ZERO_LINK = YES; - }; - name = Debug; - }; - ACE777D40E20003F00F7C0C6 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_MODEL_TUNING = G5; - INSTALL_PATH = /usr/local/bin; - PREBINDING = NO; - PRODUCT_NAME = "lt-comp"; - ZERO_LINK = NO; - }; - name = Release; - }; - ACE777DA0E20005300F7C0C6 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; - GCC_MODEL_TUNING = G5; - GCC_OPTIMIZATION_LEVEL = 0; - INSTALL_PATH = /usr/local/bin; - PREBINDING = NO; - PRODUCT_NAME = "lt-proc"; - ZERO_LINK = YES; - }; - name = Debug; - }; - ACE777DB0E20005300F7C0C6 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_MODEL_TUNING = G5; - INSTALL_PATH = /usr/local/bin; - PREBINDING = NO; - PRODUCT_NAME = "lt-proc"; - ZERO_LINK = NO; - }; - name = Release; - }; - ACE777E10E20006600F7C0C6 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; - GCC_MODEL_TUNING = G5; - GCC_OPTIMIZATION_LEVEL = 0; - INSTALL_PATH = /usr/local/bin; - PREBINDING = NO; - PRODUCT_NAME = "lt-expand"; - ZERO_LINK = YES; - }; - name = Debug; - }; - ACE777E20E20006600F7C0C6 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_MODEL_TUNING = G5; - INSTALL_PATH = /usr/local/bin; - PREBINDING = NO; - PRODUCT_NAME = "lt-expand"; - ZERO_LINK = NO; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 1DEB914A08733D8E0010E9CD /* Build configuration list for PBXNativeTarget "lttoolbox" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1DEB914B08733D8E0010E9CD /* Debug */, - 1DEB914C08733D8E0010E9CD /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 1DEB914E08733D8E0010E9CD /* Build configuration list for PBXProject "lttoolbox" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1DEB914F08733D8E0010E9CD /* Debug */, - 1DEB915008733D8E0010E9CD /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - ACE777E60E20008300F7C0C6 /* Build configuration list for PBXNativeTarget "lt-comp" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - ACE777D30E20003F00F7C0C6 /* Debug */, - ACE777D40E20003F00F7C0C6 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - ACE777E70E20008300F7C0C6 /* Build configuration list for PBXNativeTarget "lt-proc" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - ACE777DA0E20005300F7C0C6 /* Debug */, - ACE777DB0E20005300F7C0C6 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - ACE777E80E20008300F7C0C6 /* Build configuration list for PBXNativeTarget "lt-expand" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - ACE777E10E20006600F7C0C6 /* Debug */, - ACE777E20E20006600F7C0C6 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 08FB7793FE84155DC02AAC07 /* Project object */; -} diff --git a/lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/sortiz.mode1v3 b/lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/sortiz.mode1v3 deleted file mode 100644 index 92d7a34a..00000000 --- a/lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/sortiz.mode1v3 +++ /dev/null @@ -1,1425 +0,0 @@ - - - - - ActivePerspectiveName - Project - AllowedModules - - - BundleLoadPath - - MaxInstances - n - Module - PBXSmartGroupTreeModule - Name - Groups and Files Outline View - - - BundleLoadPath - - MaxInstances - n - Module - PBXNavigatorGroup - Name - Editor - - - BundleLoadPath - - MaxInstances - n - Module - XCTaskListModule - Name - Task List - - - BundleLoadPath - - MaxInstances - n - Module - XCDetailModule - Name - File and Smart Group Detail Viewer - - - BundleLoadPath - - MaxInstances - 1 - Module - PBXBuildResultsModule - Name - Detailed Build Results Viewer - - - BundleLoadPath - - MaxInstances - 1 - Module - PBXProjectFindModule - Name - Project Batch Find Tool - - - BundleLoadPath - - MaxInstances - n - Module - XCProjectFormatConflictsModule - Name - Project Format Conflicts List - - - BundleLoadPath - - MaxInstances - n - Module - PBXBookmarksModule - Name - Bookmarks Tool - - - BundleLoadPath - - MaxInstances - n - Module - PBXClassBrowserModule - Name - Class Browser - - - BundleLoadPath - - MaxInstances - n - Module - PBXCVSModule - Name - Source Code Control Tool - - - BundleLoadPath - - MaxInstances - n - Module - PBXDebugBreakpointsModule - Name - Debug Breakpoints Tool - - - BundleLoadPath - - MaxInstances - n - Module - XCDockableInspector - Name - Inspector - - - BundleLoadPath - - MaxInstances - n - Module - PBXOpenQuicklyModule - Name - Open Quickly Tool - - - BundleLoadPath - - MaxInstances - 1 - Module - PBXDebugSessionModule - Name - Debugger - - - BundleLoadPath - - MaxInstances - 1 - Module - PBXDebugCLIModule - Name - Debug Console - - - BundleLoadPath - - MaxInstances - n - Module - XCSnapshotModule - Name - Snapshots Tool - - - BundlePath - /Developer/Library/PrivateFrameworks/DevToolsInterface.framework/Resources - Description - DefaultDescriptionKey - DockingSystemVisible - - Extension - mode1v3 - FavBarConfig - - PBXProjectModuleGUID - ACE778650E20020B00F7C0C6 - XCBarModuleItemNames - - XCBarModuleItems - - - FirstTimeWindowDisplayed - - Identifier - com.apple.perspectives.project.mode1v3 - MajorVersion - 33 - MinorVersion - 0 - Name - Default - Notifications - - OpenEditors - - - Content - - PBXProjectModuleGUID - AC11C8A60E20DCD400B07E6D - PBXProjectModuleLabel - ltstr.h - PBXSplitModuleInNavigatorKey - - Split0 - - PBXProjectModuleGUID - AC11C8A70E20DCD400B07E6D - PBXProjectModuleLabel - ltstr.h - _historyCapacity - 0 - bookmark - AC3AA9820E212BD6003FADD9 - history - - ACA8B8880E2118AF00634D8F - - - SplitCount - 1 - - StatusBarVisibility - - - Geometry - - Frame - {{0, 20}, {918, 697}} - PBXModuleWindowStatusBarHidden2 - - RubberWindowFrame - 769 282 918 738 0 0 1680 1028 - - - - PerspectiveWidths - - -1 - -1 - - Perspectives - - - ChosenToolbarItems - - active-target-popup - active-buildstyle-popup - action - NSToolbarFlexibleSpaceItem - buildOrClean - build-and-goOrGo - com.apple.ide.PBXToolbarStopButton - get-info - toggle-editor - NSToolbarFlexibleSpaceItem - com.apple.pbx.toolbar.searchfield - - ControllerClassBaseName - - IconName - WindowOfProjectWithEditor - Identifier - perspective.project - IsVertical - - Layout - - - ContentConfiguration - - PBXBottomSmartGroupGIDs - - 1C37FBAC04509CD000000102 - 1C37FAAC04509CD000000102 - 1C08E77C0454961000C914BD - 1C37FABC05509CD000000102 - 1C37FABC05539CD112110102 - E2644B35053B69B200211256 - 1C37FABC04509CD000100104 - 1CC0EA4004350EF90044410B - 1CC0EA4004350EF90041110B - - PBXProjectModuleGUID - 1CE0B1FE06471DED0097A5F4 - PBXProjectModuleLabel - Files - PBXProjectStructureProvided - yes - PBXSmartGroupTreeModuleColumnData - - PBXSmartGroupTreeModuleColumnWidthsKey - - 186 - - PBXSmartGroupTreeModuleColumnsKey_v4 - - MainColumn - - - PBXSmartGroupTreeModuleOutlineStateKey_v7 - - PBXSmartGroupTreeModuleOutlineStateExpansionKey - - 1C37FAAC04509CD000000102 - 1C37FABC05509CD000000102 - - PBXSmartGroupTreeModuleOutlineStateSelectionKey - - - 0 - - - PBXSmartGroupTreeModuleOutlineStateVisibleRectKey - {{0, 0}, {186, 342}} - - PBXTopSmartGroupGIDs - - XCIncludePerspectivesSwitch - - XCSharingToken - com.apple.Xcode.GFSharingToken - - GeometryConfiguration - - Frame - {{0, 0}, {203, 360}} - GroupTreeTableConfiguration - - MainColumn - 186 - - RubberWindowFrame - 763 427 821 401 0 0 1680 1028 - - Module - PBXSmartGroupTreeModule - Proportion - 203pt - - - Dock - - - ContentConfiguration - - PBXProjectModuleGUID - 1CE0B20306471E060097A5F4 - PBXProjectModuleLabel - MyNewFile14.java - PBXSplitModuleInNavigatorKey - - Split0 - - PBXProjectModuleGUID - 1CE0B20406471E060097A5F4 - PBXProjectModuleLabel - MyNewFile14.java - - SplitCount - 1 - - StatusBarVisibility - - - GeometryConfiguration - - Frame - {{0, 0}, {613, 0}} - RubberWindowFrame - 763 427 821 401 0 0 1680 1028 - - Module - PBXNavigatorGroup - Proportion - 0pt - - - BecomeActive - - ContentConfiguration - - PBXProjectModuleGUID - 1CE0B20506471E060097A5F4 - PBXProjectModuleLabel - Detail - - GeometryConfiguration - - Frame - {{0, 5}, {613, 355}} - RubberWindowFrame - 763 427 821 401 0 0 1680 1028 - - Module - XCDetailModule - Proportion - 355pt - - - Proportion - 613pt - - - Name - Project - ServiceClasses - - XCModuleDock - PBXSmartGroupTreeModule - XCModuleDock - PBXNavigatorGroup - XCDetailModule - - TableOfContents - - AC3AA9610E2125C9003FADD9 - 1CE0B1FE06471DED0097A5F4 - AC3AA9620E2125C9003FADD9 - 1CE0B20306471E060097A5F4 - 1CE0B20506471E060097A5F4 - - ToolbarConfiguration - xcode.toolbar.config.defaultV3 - - - ControllerClassBaseName - - IconName - WindowOfProject - Identifier - perspective.morph - IsVertical - 0 - Layout - - - BecomeActive - 1 - ContentConfiguration - - PBXBottomSmartGroupGIDs - - 1C37FBAC04509CD000000102 - 1C37FAAC04509CD000000102 - 1C08E77C0454961000C914BD - 1C37FABC05509CD000000102 - 1C37FABC05539CD112110102 - E2644B35053B69B200211256 - 1C37FABC04509CD000100104 - 1CC0EA4004350EF90044410B - 1CC0EA4004350EF90041110B - - PBXProjectModuleGUID - 11E0B1FE06471DED0097A5F4 - PBXProjectModuleLabel - Files - PBXProjectStructureProvided - yes - PBXSmartGroupTreeModuleColumnData - - PBXSmartGroupTreeModuleColumnWidthsKey - - 186 - - PBXSmartGroupTreeModuleColumnsKey_v4 - - MainColumn - - - PBXSmartGroupTreeModuleOutlineStateKey_v7 - - PBXSmartGroupTreeModuleOutlineStateExpansionKey - - 29B97314FDCFA39411CA2CEA - 1C37FABC05509CD000000102 - - PBXSmartGroupTreeModuleOutlineStateSelectionKey - - - 0 - - - PBXSmartGroupTreeModuleOutlineStateVisibleRectKey - {{0, 0}, {186, 337}} - - PBXTopSmartGroupGIDs - - XCIncludePerspectivesSwitch - 1 - XCSharingToken - com.apple.Xcode.GFSharingToken - - GeometryConfiguration - - Frame - {{0, 0}, {203, 355}} - GroupTreeTableConfiguration - - MainColumn - 186 - - RubberWindowFrame - 373 269 690 397 0 0 1440 878 - - Module - PBXSmartGroupTreeModule - Proportion - 100% - - - Name - Morph - PreferredWidth - 300 - ServiceClasses - - XCModuleDock - PBXSmartGroupTreeModule - - TableOfContents - - 11E0B1FE06471DED0097A5F4 - - ToolbarConfiguration - xcode.toolbar.config.default.shortV3 - - - PerspectivesBarVisible - - ShelfIsVisible - - SourceDescription - file at '/Developer/Library/PrivateFrameworks/DevToolsInterface.framework/Resources/XCPerspectivesSpecificationMode1.xcperspec' - StatusbarIsVisible - - TimeStamp - 0.0 - ToolbarDisplayMode - 1 - ToolbarIsVisible - - ToolbarSizeMode - 1 - Type - Perspectives - UpdateMessage - The Default Workspace in this version of Xcode now includes support to hide and show the detail view (what has been referred to as the "Metro-Morph" feature). You must discard your current Default Workspace settings and update to the latest Default Workspace in order to gain this feature. Do you wish to update to the latest Workspace defaults for project '%@'? - WindowJustification - 5 - WindowOrderList - - ACE778560E20015500F7C0C6 - AC11C8A60E20DCD400B07E6D - 1CD10A99069EF8BA00B06720 - /Users/sortiz/Devel/paquetes/lttoolbox/lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj - - WindowString - 763 427 821 401 0 0 1680 1028 - WindowToolsV3 - - - FirstTimeWindowDisplayed - - Identifier - windowTool.build - IsVertical - - Layout - - - Dock - - - ContentConfiguration - - PBXProjectModuleGUID - 1CD0528F0623707200166675 - PBXProjectModuleLabel - - StatusBarVisibility - - - GeometryConfiguration - - Frame - {{0, 0}, {500, 218}} - RubberWindowFrame - 516 378 500 500 0 0 1680 1028 - - Module - PBXNavigatorGroup - Proportion - 218pt - - - ContentConfiguration - - PBXProjectModuleGUID - XCMainBuildResultsModuleGUID - PBXProjectModuleLabel - Build - XCBuildResultsTrigger_Collapse - 1021 - XCBuildResultsTrigger_Open - 1011 - - GeometryConfiguration - - Frame - {{0, 223}, {500, 236}} - RubberWindowFrame - 516 378 500 500 0 0 1680 1028 - - Module - PBXBuildResultsModule - Proportion - 236pt - - - Proportion - 459pt - - - Name - Build Results - ServiceClasses - - PBXBuildResultsModule - - StatusbarIsVisible - - TableOfContents - - ACE778560E20015500F7C0C6 - AC3AA9680E2125C9003FADD9 - 1CD0528F0623707200166675 - XCMainBuildResultsModuleGUID - - ToolbarConfiguration - xcode.toolbar.config.buildV3 - WindowString - 516 378 500 500 0 0 1680 1028 - WindowToolGUID - ACE778560E20015500F7C0C6 - WindowToolIsVisible - - - - FirstTimeWindowDisplayed - - Identifier - windowTool.debugger - IsVertical - - Layout - - - Dock - - - ContentConfiguration - - Debugger - - HorizontalSplitView - - _collapsingFrameDimension - 0.0 - _indexOfCollapsedView - 0 - _percentageOfCollapsedView - 0.0 - isCollapsed - yes - sizes - - {{0, 0}, {442, 285}} - {{442, 0}, {528, 285}} - - - VerticalSplitView - - _collapsingFrameDimension - 0.0 - _indexOfCollapsedView - 0 - _percentageOfCollapsedView - 0.0 - isCollapsed - yes - sizes - - {{0, 0}, {970, 285}} - {{0, 285}, {970, 256}} - - - - LauncherConfigVersion - 8 - PBXProjectModuleGUID - 1C162984064C10D400B95A72 - PBXProjectModuleLabel - Debug - GLUTExamples (Underwater) - - GeometryConfiguration - - DebugConsoleVisible - None - DebugConsoleWindowFrame - {{200, 200}, {500, 300}} - DebugSTDIOWindowFrame - {{200, 200}, {500, 300}} - Frame - {{0, 0}, {970, 541}} - PBXDebugSessionStackFrameViewKey - - DebugVariablesTableConfiguration - - Name - 235 - Value - 85 - Summary - 183 - - Frame - {{442, 0}, {528, 285}} - RubberWindowFrame - 111 405 970 582 0 0 1680 1028 - - RubberWindowFrame - 111 405 970 582 0 0 1680 1028 - - Module - PBXDebugSessionModule - Proportion - 541pt - - - Proportion - 541pt - - - Name - Debugger - ServiceClasses - - PBXDebugSessionModule - - StatusbarIsVisible - - TableOfContents - - 1CD10A99069EF8BA00B06720 - AC3AA9690E2125C9003FADD9 - 1C162984064C10D400B95A72 - AC3AA96A0E2125C9003FADD9 - AC3AA96B0E2125C9003FADD9 - AC3AA96C0E2125C9003FADD9 - AC3AA96D0E2125C9003FADD9 - AC3AA96E0E2125C9003FADD9 - - ToolbarConfiguration - xcode.toolbar.config.debugV3 - WindowString - 111 405 970 582 0 0 1680 1028 - WindowToolGUID - 1CD10A99069EF8BA00B06720 - WindowToolIsVisible - - - - Identifier - windowTool.find - Layout - - - Dock - - - Dock - - - ContentConfiguration - - PBXProjectModuleGUID - 1CDD528C0622207200134675 - PBXProjectModuleLabel - <No Editor> - PBXSplitModuleInNavigatorKey - - Split0 - - PBXProjectModuleGUID - 1CD0528D0623707200166675 - - SplitCount - 1 - - StatusBarVisibility - 1 - - GeometryConfiguration - - Frame - {{0, 0}, {781, 167}} - RubberWindowFrame - 62 385 781 470 0 0 1440 878 - - Module - PBXNavigatorGroup - Proportion - 781pt - - - Proportion - 50% - - - BecomeActive - 1 - ContentConfiguration - - PBXProjectModuleGUID - 1CD0528E0623707200166675 - PBXProjectModuleLabel - Project Find - - GeometryConfiguration - - Frame - {{8, 0}, {773, 254}} - RubberWindowFrame - 62 385 781 470 0 0 1440 878 - - Module - PBXProjectFindModule - Proportion - 50% - - - Proportion - 428pt - - - Name - Project Find - ServiceClasses - - PBXProjectFindModule - - StatusbarIsVisible - 1 - TableOfContents - - 1C530D57069F1CE1000CFCEE - 1C530D58069F1CE1000CFCEE - 1C530D59069F1CE1000CFCEE - 1CDD528C0622207200134675 - 1C530D5A069F1CE1000CFCEE - 1CE0B1FE06471DED0097A5F4 - 1CD0528E0623707200166675 - - WindowString - 62 385 781 470 0 0 1440 878 - WindowToolGUID - 1C530D57069F1CE1000CFCEE - WindowToolIsVisible - 0 - - - Identifier - MENUSEPARATOR - - - FirstTimeWindowDisplayed - - Identifier - windowTool.debuggerConsole - IsVertical - - Layout - - - Dock - - - BecomeActive - - ContentConfiguration - - PBXProjectModuleGUID - 1C78EAAC065D492600B07095 - PBXProjectModuleLabel - Debugger Console - - GeometryConfiguration - - Frame - {{0, 0}, {650, 209}} - RubberWindowFrame - 1064 255 650 250 0 0 1680 1028 - - Module - PBXDebugCLIModule - Proportion - 209pt - - - Proportion - 209pt - - - Name - Debugger Console - ServiceClasses - - PBXDebugCLIModule - - StatusbarIsVisible - - TableOfContents - - 1C78EAAD065D492600B07095 - AC11C85C0E2018A300B07E6D - 1C78EAAC065D492600B07095 - - ToolbarConfiguration - xcode.toolbar.config.consoleV3 - WindowString - 1064 255 650 250 0 0 1680 1028 - WindowToolGUID - 1C78EAAD065D492600B07095 - WindowToolIsVisible - - - - Identifier - windowTool.snapshots - Layout - - - Dock - - - Module - XCSnapshotModule - Proportion - 100% - - - Proportion - 100% - - - Name - Snapshots - ServiceClasses - - XCSnapshotModule - - StatusbarIsVisible - Yes - ToolbarConfiguration - xcode.toolbar.config.snapshots - WindowString - 315 824 300 550 0 0 1440 878 - WindowToolIsVisible - Yes - - - Identifier - windowTool.scm - Layout - - - Dock - - - ContentConfiguration - - PBXProjectModuleGUID - 1C78EAB2065D492600B07095 - PBXProjectModuleLabel - <No Editor> - PBXSplitModuleInNavigatorKey - - Split0 - - PBXProjectModuleGUID - 1C78EAB3065D492600B07095 - - SplitCount - 1 - - StatusBarVisibility - 1 - - GeometryConfiguration - - Frame - {{0, 0}, {452, 0}} - RubberWindowFrame - 743 379 452 308 0 0 1280 1002 - - Module - PBXNavigatorGroup - Proportion - 0pt - - - BecomeActive - 1 - ContentConfiguration - - PBXProjectModuleGUID - 1CD052920623707200166675 - PBXProjectModuleLabel - SCM - - GeometryConfiguration - - ConsoleFrame - {{0, 259}, {452, 0}} - Frame - {{0, 7}, {452, 259}} - RubberWindowFrame - 743 379 452 308 0 0 1280 1002 - TableConfiguration - - Status - 30 - FileName - 199 - Path - 197.09500122070312 - - TableFrame - {{0, 0}, {452, 250}} - - Module - PBXCVSModule - Proportion - 262pt - - - Proportion - 266pt - - - Name - SCM - ServiceClasses - - PBXCVSModule - - StatusbarIsVisible - 1 - TableOfContents - - 1C78EAB4065D492600B07095 - 1C78EAB5065D492600B07095 - 1C78EAB2065D492600B07095 - 1CD052920623707200166675 - - ToolbarConfiguration - xcode.toolbar.config.scm - WindowString - 743 379 452 308 0 0 1280 1002 - - - FirstTimeWindowDisplayed - - Identifier - windowTool.breakpoints - IsVertical - - Layout - - - Dock - - - BecomeActive - - ContentConfiguration - - PBXBottomSmartGroupGIDs - - 1C77FABC04509CD000000102 - - PBXProjectModuleGUID - 1CE0B1FE06471DED0097A5F4 - PBXProjectModuleLabel - Files - PBXProjectStructureProvided - no - PBXSmartGroupTreeModuleColumnData - - PBXSmartGroupTreeModuleColumnWidthsKey - - 168 - - PBXSmartGroupTreeModuleColumnsKey_v4 - - MainColumn - - - PBXSmartGroupTreeModuleOutlineStateKey_v7 - - PBXSmartGroupTreeModuleOutlineStateExpansionKey - - 1C77FABC04509CD000000102 - - PBXSmartGroupTreeModuleOutlineStateSelectionKey - - - 0 - - - PBXSmartGroupTreeModuleOutlineStateVisibleRectKey - {{0, 0}, {168, 350}} - - PBXTopSmartGroupGIDs - - XCIncludePerspectivesSwitch - - - GeometryConfiguration - - Frame - {{0, 0}, {185, 368}} - GroupTreeTableConfiguration - - MainColumn - 168 - - RubberWindowFrame - 132 555 744 409 0 0 1680 1028 - - Module - PBXSmartGroupTreeModule - Proportion - 185pt - - - ContentConfiguration - - PBXProjectModuleGUID - 1CA1AED706398EBD00589147 - PBXProjectModuleLabel - Detail - - GeometryConfiguration - - Frame - {{190, 0}, {554, 368}} - RubberWindowFrame - 132 555 744 409 0 0 1680 1028 - - Module - XCDetailModule - Proportion - 554pt - - - Proportion - 368pt - - - MajorVersion - 3 - MinorVersion - 0 - Name - Breakpoints - ServiceClasses - - PBXSmartGroupTreeModule - XCDetailModule - - StatusbarIsVisible - - TableOfContents - - AC11C8820E20A98D00B07E6D - AC11C8830E20A98D00B07E6D - 1CE0B1FE06471DED0097A5F4 - 1CA1AED706398EBD00589147 - - ToolbarConfiguration - xcode.toolbar.config.breakpointsV3 - WindowString - 132 555 744 409 0 0 1680 1028 - WindowToolGUID - AC11C8820E20A98D00B07E6D - WindowToolIsVisible - - - - Identifier - windowTool.debugAnimator - Layout - - - Dock - - - Module - PBXNavigatorGroup - Proportion - 100% - - - Proportion - 100% - - - Name - Debug Visualizer - ServiceClasses - - PBXNavigatorGroup - - StatusbarIsVisible - 1 - ToolbarConfiguration - xcode.toolbar.config.debugAnimatorV3 - WindowString - 100 100 700 500 0 0 1280 1002 - - - Identifier - windowTool.bookmarks - Layout - - - Dock - - - Module - PBXBookmarksModule - Proportion - 100% - - - Proportion - 100% - - - Name - Bookmarks - ServiceClasses - - PBXBookmarksModule - - StatusbarIsVisible - 0 - WindowString - 538 42 401 187 0 0 1280 1002 - - - Identifier - windowTool.projectFormatConflicts - Layout - - - Dock - - - Module - XCProjectFormatConflictsModule - Proportion - 100% - - - Proportion - 100% - - - Name - Project Format Conflicts - ServiceClasses - - XCProjectFormatConflictsModule - - StatusbarIsVisible - 0 - WindowContentMinSize - 450 300 - WindowString - 50 850 472 307 0 0 1440 877 - - - Identifier - windowTool.classBrowser - Layout - - - Dock - - - BecomeActive - 1 - ContentConfiguration - - OptionsSetName - Hierarchy, all classes - PBXProjectModuleGUID - 1CA6456E063B45B4001379D8 - PBXProjectModuleLabel - Class Browser - NSObject - - GeometryConfiguration - - ClassesFrame - {{0, 0}, {374, 96}} - ClassesTreeTableConfiguration - - PBXClassNameColumnIdentifier - 208 - PBXClassBookColumnIdentifier - 22 - - Frame - {{0, 0}, {630, 331}} - MembersFrame - {{0, 105}, {374, 395}} - MembersTreeTableConfiguration - - PBXMemberTypeIconColumnIdentifier - 22 - PBXMemberNameColumnIdentifier - 216 - PBXMemberTypeColumnIdentifier - 97 - PBXMemberBookColumnIdentifier - 22 - - PBXModuleWindowStatusBarHidden2 - 1 - RubberWindowFrame - 385 179 630 352 0 0 1440 878 - - Module - PBXClassBrowserModule - Proportion - 332pt - - - Proportion - 332pt - - - Name - Class Browser - ServiceClasses - - PBXClassBrowserModule - - StatusbarIsVisible - 0 - TableOfContents - - 1C0AD2AF069F1E9B00FABCE6 - 1C0AD2B0069F1E9B00FABCE6 - 1CA6456E063B45B4001379D8 - - ToolbarConfiguration - xcode.toolbar.config.classbrowser - WindowString - 385 179 630 352 0 0 1440 878 - WindowToolGUID - 1C0AD2AF069F1E9B00FABCE6 - WindowToolIsVisible - 0 - - - Identifier - windowTool.refactoring - IncludeInToolsMenu - 0 - Layout - - - Dock - - - BecomeActive - 1 - GeometryConfiguration - - Frame - {0, 0}, {500, 335} - RubberWindowFrame - {0, 0}, {500, 335} - - Module - XCRefactoringModule - Proportion - 100% - - - Proportion - 100% - - - Name - Refactoring - ServiceClasses - - XCRefactoringModule - - WindowString - 200 200 500 356 0 0 1920 1200 - - - - diff --git a/lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/sortiz.pbxuser b/lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/sortiz.pbxuser deleted file mode 100644 index 079b1ccc..00000000 --- a/lttoolbox/macosx/lttoolbox/lttoolbox.xcodeproj/sortiz.pbxuser +++ /dev/null @@ -1,500 +0,0 @@ -// !$*UTF8*$! -{ - 08FB7793FE84155DC02AAC07 /* Project object */ = { - activeArchitecture = i386; - activeBuildConfigurationName = Release; - activeExecutable = ACE777E00E20006600F7C0C6 /* lt-expand */; - activeTarget = D2AAC0620554660B00DB518D /* lttoolbox */; - addToTargets = ( - D2AAC0620554660B00DB518D /* lttoolbox */, - ); - breakpoints = ( - AC11C8410E2015CD00B07E6D /* lt_comp.cc:45 */, - AC11C8630E201F4F00B07E6D /* compiler.cc:121 */, - AC11C86A0E20212200B07E6D /* transducer.cc:293 */, - AC11C87E0E20A98200B07E6D /* transducer.cc:378 */, - AC11C8860E20AD7B00B07E6D /* transducer.cc:115 */, - AC11C88A0E20CA4500B07E6D /* compiler.cc:623 */, - AC11C88C0E20CAE100B07E6D /* compiler.cc:182 */, - AC11C88E0E20CCA800B07E6D /* compiler.cc:233 */, - ); - codeSenseManager = ACE777EA0E20008300F7C0C6 /* Code sense */; - executables = ( - ACE777D20E20003F00F7C0C6 /* lt-comp */, - ACE777D90E20005300F7C0C6 /* lt-proc */, - ACE777E00E20006600F7C0C6 /* lt-expand */, - ); - perUserDictionary = { - "PBXConfiguration.PBXBreakpointsDataSource.v1:1CA1AED706398EBD00589147" = { - PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; - PBXFileTableDataSourceColumnSortingKey = PBXBreakpointsDataSource_BreakpointID; - PBXFileTableDataSourceColumnWidthsKey = ( - 20, - 20, - 198, - 20, - 99, - 99, - 29, - 20, - ); - PBXFileTableDataSourceColumnsKey = ( - PBXBreakpointsDataSource_ActionID, - PBXBreakpointsDataSource_TypeID, - PBXBreakpointsDataSource_BreakpointID, - PBXBreakpointsDataSource_UseID, - PBXBreakpointsDataSource_LocationID, - PBXBreakpointsDataSource_ConditionID, - PBXBreakpointsDataSource_IgnoreCountID, - PBXBreakpointsDataSource_ContinueID, - ); - }; - PBXConfiguration.PBXFileTableDataSource3.PBXExecutablesDataSource = { - PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; - PBXFileTableDataSourceColumnSortingKey = PBXExecutablesDataSource_NameID; - PBXFileTableDataSourceColumnWidthsKey = ( - 22, - 300, - 262, - ); - PBXFileTableDataSourceColumnsKey = ( - PBXExecutablesDataSource_ActiveFlagID, - PBXExecutablesDataSource_NameID, - PBXExecutablesDataSource_CommentsID, - ); - }; - PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = { - PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; - PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; - PBXFileTableDataSourceColumnWidthsKey = ( - 20, - 374, - 20, - 48, - 43, - 43, - 20, - ); - PBXFileTableDataSourceColumnsKey = ( - PBXFileDataSource_FiletypeID, - PBXFileDataSource_Filename_ColumnID, - PBXFileDataSource_Built_ColumnID, - PBXFileDataSource_ObjectSize_ColumnID, - PBXFileDataSource_Errors_ColumnID, - PBXFileDataSource_Warnings_ColumnID, - PBXFileDataSource_Target_ColumnID, - ); - }; - PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = { - PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; - PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; - PBXFileTableDataSourceColumnWidthsKey = ( - 20, - 334, - 60, - 20, - 48, - 43, - 43, - ); - PBXFileTableDataSourceColumnsKey = ( - PBXFileDataSource_FiletypeID, - PBXFileDataSource_Filename_ColumnID, - PBXTargetDataSource_PrimaryAttribute, - PBXFileDataSource_Built_ColumnID, - PBXFileDataSource_ObjectSize_ColumnID, - PBXFileDataSource_Errors_ColumnID, - PBXFileDataSource_Warnings_ColumnID, - ); - }; - PBXPerProjectTemplateStateSaveDate = 237053231; - PBXWorkspaceStateSaveDate = 237053231; - }; - perUserProjectItems = { - AC3AA9820E212BD6003FADD9 /* PBXTextBookmark */ = AC3AA9820E212BD6003FADD9 /* PBXTextBookmark */; - ACA8B8880E2118AF00634D8F /* PBXTextBookmark */ = ACA8B8880E2118AF00634D8F /* PBXTextBookmark */; - }; - sourceControlManager = ACE777E90E20008300F7C0C6 /* Source Control */; - userBuildSettings = { - }; - }; - AC11C8410E2015CD00B07E6D /* lt_comp.cc:45 */ = { - isa = PBXFileBreakpoint; - actions = ( - ); - breakpointStyle = 0; - continueAfterActions = 0; - countType = 0; - delayBeforeContinue = 0; - fileReference = ACE777EF0E2000B700F7C0C6 /* lt_comp.cc */; - functionName = "main(int argc, char *argv[])"; - hitCount = 1; - ignoreCount = 0; - lineNumber = 45; - location = "lt-comp"; - modificationTime = 237031457.499251; - state = 1; - }; - AC11C8630E201F4F00B07E6D /* compiler.cc:121 */ = { - isa = PBXFileBreakpoint; - actions = ( - ); - breakpointStyle = 0; - continueAfterActions = 0; - countType = 0; - delayBeforeContinue = 0; - fileReference = ACE778010E20013F00F7C0C6 /* compiler.cc */; - functionName = "Compiler::parse(string const &fichero, wstring const &dir)"; - hitCount = 1; - ignoreCount = 0; - lineNumber = 121; - location = liblttoolbox.dylib; - modificationTime = 237031480.5613829; - state = 1; - }; - AC11C86A0E20212200B07E6D /* transducer.cc:293 */ = { - isa = PBXFileBreakpoint; - actions = ( - ); - breakpointStyle = 0; - continueAfterActions = 0; - countType = 0; - delayBeforeContinue = 0; - fileReference = ACE778250E20013F00F7C0C6 /* transducer.cc */; - functionName = "Transducer::determinize(int const epsilon_tag)"; - hitCount = 2; - ignoreCount = 0; - lineNumber = 293; - location = liblttoolbox.dylib; - modificationTime = 237031485.892191; - state = 1; - }; - AC11C87E0E20A98200B07E6D /* transducer.cc:378 */ = { - isa = PBXFileBreakpoint; - actions = ( - ); - breakpointStyle = 0; - continueAfterActions = 0; - countType = 0; - delayBeforeContinue = 0; - fileReference = ACE778250E20013F00F7C0C6 /* transducer.cc */; - functionName = "Transducer::minimize(int const epsilon_tag)"; - hitCount = 1; - ignoreCount = 0; - lineNumber = 378; - location = liblttoolbox.dylib; - modificationTime = 237031481.252296; - state = 1; - }; - AC11C8860E20AD7B00B07E6D /* transducer.cc:115 */ = { - isa = PBXFileBreakpoint; - actions = ( - ); - breakpointStyle = 0; - continueAfterActions = 0; - countType = 0; - delayBeforeContinue = 0; - fileReference = ACE778250E20013F00F7C0C6 /* transducer.cc */; - functionName = "Transducer::insertNewSingleTransduction(int const tag, int const source)"; - hitCount = 0; - ignoreCount = 0; - lineNumber = 115; - location = liblttoolbox.dylib; - modificationTime = 237031434.994582; - state = 1; - }; - AC11C88A0E20CA4500B07E6D /* compiler.cc:623 */ = { - isa = PBXFileBreakpoint; - actions = ( - ); - breakpointStyle = 0; - continueAfterActions = 0; - countType = 0; - delayBeforeContinue = 0; - fileReference = ACE778010E20013F00F7C0C6 /* compiler.cc */; - functionName = "Compiler::procEntry()"; - hitCount = 1; - ignoreCount = 0; - lineNumber = 623; - location = liblttoolbox.dylib; - modificationTime = 237031462.034278; - state = 1; - }; - AC11C88C0E20CAE100B07E6D /* compiler.cc:182 */ = { - isa = PBXFileBreakpoint; - actions = ( - ); - breakpointStyle = 0; - continueAfterActions = 0; - countType = 0; - delayBeforeContinue = 0; - fileReference = ACE778010E20013F00F7C0C6 /* compiler.cc */; - functionName = "Compiler::matchTransduction(list const &pi, list const &pd, int estado, Transducer &t)"; - hitCount = 1; - ignoreCount = 0; - lineNumber = 182; - location = liblttoolbox.dylib; - modificationTime = 237031462.47401; - state = 1; - }; - AC11C88E0E20CCA800B07E6D /* compiler.cc:233 */ = { - isa = PBXFileBreakpoint; - actions = ( - ); - breakpointStyle = 0; - continueAfterActions = 0; - countType = 0; - delayBeforeContinue = 0; - fileReference = ACE778010E20013F00F7C0C6 /* compiler.cc */; - functionName = "Compiler::matchTransduction(list const &pi, list const &pd, int estado, Transducer &t)"; - hitCount = 1; - ignoreCount = 0; - lineNumber = 233; - location = liblttoolbox.dylib; - modificationTime = 237031463.518671; - state = 1; - }; - AC3AA9820E212BD6003FADD9 /* PBXTextBookmark */ = { - isa = PBXTextBookmark; - fRef = ACE778100E20013F00F7C0C6 /* ltstr.h */; - name = "ltstr.h: 52"; - rLen = 0; - rLoc = 1365; - rType = 0; - vrLen = 1289; - vrLoc = 76; - }; - ACA8B8880E2118AF00634D8F /* PBXTextBookmark */ = { - isa = PBXTextBookmark; - fRef = ACE778100E20013F00F7C0C6 /* ltstr.h */; - name = "ltstr.h: 52"; - rLen = 0; - rLoc = 1365; - rType = 0; - vrLen = 1224; - vrLoc = 141; - }; - ACE777D00E20003F00F7C0C6 /* lt-comp */ = { - activeExec = 0; - executables = ( - ACE777D20E20003F00F7C0C6 /* lt-comp */, - ); - }; - ACE777D20E20003F00F7C0C6 /* lt-comp */ = { - isa = PBXExecutable; - activeArgIndices = ( - YES, - YES, - YES, - ); - argumentStrings = ( - lr, - "/Users/sortiz/Devel/paquetes/apertium-es-ca/tonto.dix", - /tmp/tonto.bin, - ); - autoAttachOnCrash = 1; - breakpointsEnabled = 1; - configStateDict = { - }; - customDataFormattersEnabled = 1; - debuggerPlugin = GDBDebugging; - disassemblyDisplayState = 0; - dylibVariantSuffix = ""; - enableDebugStr = 1; - environmentEntries = ( - ); - executableSystemSymbolLevel = 0; - executableUserSymbolLevel = 0; - libgmallocEnabled = 0; - name = "lt-comp"; - savedGlobals = { - }; - sourceDirectories = ( - ); - variableFormatDictionary = { - }; - }; - ACE777D70E20005300F7C0C6 /* lt-proc */ = { - activeExec = 0; - executables = ( - ACE777D90E20005300F7C0C6 /* lt-proc */, - ); - }; - ACE777D90E20005300F7C0C6 /* lt-proc */ = { - isa = PBXExecutable; - activeArgIndices = ( - ); - argumentStrings = ( - ); - autoAttachOnCrash = 1; - breakpointsEnabled = 1; - configStateDict = { - }; - customDataFormattersEnabled = 1; - debuggerPlugin = GDBDebugging; - disassemblyDisplayState = 0; - enableDebugStr = 1; - environmentEntries = ( - ); - executableSystemSymbolLevel = 0; - executableUserSymbolLevel = 0; - libgmallocEnabled = 0; - name = "lt-proc"; - sourceDirectories = ( - ); - }; - ACE777DE0E20006600F7C0C6 /* lt-expand */ = { - activeExec = 0; - executables = ( - ACE777E00E20006600F7C0C6 /* lt-expand */, - ); - }; - ACE777E00E20006600F7C0C6 /* lt-expand */ = { - isa = PBXExecutable; - activeArgIndices = ( - ); - argumentStrings = ( - ); - autoAttachOnCrash = 1; - breakpointsEnabled = 1; - configStateDict = { - }; - customDataFormattersEnabled = 1; - debuggerPlugin = GDBDebugging; - disassemblyDisplayState = 0; - dylibVariantSuffix = ""; - enableDebugStr = 1; - environmentEntries = ( - ); - executableSystemSymbolLevel = 0; - executableUserSymbolLevel = 0; - libgmallocEnabled = 0; - name = "lt-expand"; - sourceDirectories = ( - ); - }; - ACE777E40E20008300F7C0C6 /* lt_expand.cc */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {859, 1120}}"; - sepNavSelRange = "{1286, 0}"; - sepNavVisRange = "{797, 1042}"; - sepNavWindowFrame = "{{38, 208}, {918, 794}}"; - }; - }; - ACE777E90E20008300F7C0C6 /* Source Control */ = { - isa = PBXSourceControlManager; - fallbackIsa = XCSourceControlManager; - isSCMEnabled = 0; - scmConfiguration = { - }; - }; - ACE777EA0E20008300F7C0C6 /* Code sense */ = { - isa = PBXCodeSenseManager; - indexTemplatePath = ""; - }; - ACE777EF0E2000B700F7C0C6 /* lt_comp.cc */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {909, 1064}}"; - sepNavSelRange = "{1449, 0}"; - sepNavVisRange = "{1325, 229}"; - sepNavWindowFrame = "{{532, 61}, {918, 794}}"; - }; - }; - ACE777FE0E20013F00F7C0C6 /* alphabet.cc */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {859, 3136}}"; - sepNavSelRange = "{4591, 0}"; - sepNavVisRange = "{0, 1257}"; - sepNavWindowFrame = "{{84, 166}, {918, 794}}"; - }; - }; - ACE777FF0E20013F00F7C0C6 /* alphabet.h */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {859, 2198}}"; - sepNavSelRange = "{1292, 0}"; - sepNavVisRange = "{1028, 700}"; - sepNavWindowFrame = "{{176, 82}, {918, 794}}"; - }; - }; - ACE778010E20013F00F7C0C6 /* compiler.cc */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {909, 11578}}"; - sepNavSelRange = "{15625, 0}"; - sepNavVisRange = "{3795, 382}"; - sepNavWindowFrame = "{{84, 166}, {918, 794}}"; - }; - }; - ACE778070E20013F00F7C0C6 /* entry_token.cc */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {909, 1666}}"; - sepNavSelRange = "{2029, 0}"; - sepNavVisRange = "{1859, 193}"; - }; - }; - ACE778080E20013F00F7C0C6 /* entry_token.h */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {859, 2142}}"; - sepNavSelRange = "{0, 0}"; - sepNavVisRange = "{875, 798}"; - sepNavWindowFrame = "{{15, 229}, {918, 794}}"; - }; - }; - ACE778100E20013F00F7C0C6 /* ltstr.h */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {859, 728}}"; - sepNavSelRange = "{1365, 0}"; - sepNavVisRange = "{76, 1289}"; - sepNavWindowFrame = "{{769, 226}, {918, 794}}"; - }; - }; - ACE778110E20013F00F7C0C6 /* match_exe.cc */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {439, 1456}}"; - sepNavSelRange = "{831, 38}"; - sepNavVisRange = "{649, 313}"; - }; - }; - ACE7781D0E20013F00F7C0C6 /* regexp_compiler.cc */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {909, 6496}}"; - sepNavSelRange = "{1865, 2}"; - sepNavVisRange = "{2223, 238}"; - sepNavWindowFrame = "{{150, 111}, {918, 794}}"; - }; - }; - ACE7781E0E20013F00F7C0C6 /* regexp_compiler.h */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {859, 3080}}"; - sepNavSelRange = "{0, 0}"; - sepNavVisRange = "{2581, 895}"; - sepNavWindowFrame = "{{38, 208}, {918, 794}}"; - }; - }; - ACE778210E20013F00F7C0C6 /* state.cc */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {859, 4620}}"; - sepNavSelRange = "{3717, 0}"; - sepNavVisRange = "{3092, 1193}"; - sepNavWindowFrame = "{{985, 182}, {918, 794}}"; - }; - }; - ACE778250E20013F00F7C0C6 /* transducer.cc */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {859, 8764}}"; - sepNavSelRange = "{14104, 0}"; - sepNavVisRange = "{13400, 1344}"; - sepNavWindowFrame = "{{401, 234}, {918, 794}}"; - }; - }; - ACE778260E20013F00F7C0C6 /* transducer.h */ = { - uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {859, 3668}}"; - sepNavSelRange = "{6357, 0}"; - sepNavVisRange = "{73, 1171}"; - sepNavWindowFrame = "{{153, 103}, {918, 794}}"; - }; - }; - D2AAC0620554660B00DB518D /* lttoolbox */ = { - activeExec = 0; - }; -} diff --git a/lttoolbox/macosx/lttools_config.h b/lttoolbox/macosx/lttools_config.h deleted file mode 100644 index b1bda19e..00000000 --- a/lttoolbox/macosx/lttools_config.h +++ /dev/null @@ -1,123 +0,0 @@ -/* lttoolbox/lttools_config.h. Generated from lttools_config.h.in by configure. */ -/* lttoolbox/lttools_config.h.in. Generated from configure.ac by autoheader. */ - -/* Define to 1 if you have the declaration of `fgetc_unlocked', and to 0 if - you don't. */ -#define HAVE_DECL_FGETC_UNLOCKED 0 - -/* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if - you don't. */ -#define HAVE_DECL_FPUTS_UNLOCKED 0 - -/* Define to 1 if you have the declaration of `fputwc_unlocked', and to 0 if - you don't. */ -#define HAVE_DECL_FPUTWC_UNLOCKED 0 - -/* Define to 1 if you have the declaration of `fputws_unlocked', and to 0 if - you don't. */ -#define HAVE_DECL_FPUTWS_UNLOCKED 0 - -/* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if - you don't. */ -#define HAVE_DECL_FREAD_UNLOCKED 0 - -/* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if - you don't. */ -#define HAVE_DECL_FWRITE_UNLOCKED 0 - -/* Define to 1 if you have the declaration of ` fgetwc_unlocked', and to 0 if - you don't. */ -#define HAVE_DECL___________________FGETWC_UNLOCKED 0 - -/* Define to 1 if you have the declaration of `\ fputc_unlocked', and to 0 if - you don't. */ -#define HAVE_DECL____________________FPUTC_UNLOCKED 0 - -/* Define to 1 if you have the header file. */ -#define HAVE_DLFCN_H 1 - -/* Define to 1 if you have the `getopt_long' function. */ -#define HAVE_GETOPT_LONG 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_INTTYPES_H 1 - -/* Define to 1 if you have the `xml2' library (-lxml2). */ -#define HAVE_LIBXML2 1 - -/* Define to 1 if your system has a GNU libc compatible `malloc' function, and - to 0 otherwise. */ -#define HAVE_MALLOC 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_MEMORY_H 1 - -/* Define to 1 if your system has a GNU libc compatible `realloc' function, - and to 0 otherwise. */ -#define HAVE_REALLOC 1 - -/* Define to 1 if you have the `setlocale' function. */ -#define HAVE_SETLOCALE 1 - -/* Define to 1 if stdbool.h conforms to C99. */ -#define HAVE_STDBOOL_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDDEF_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDINT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDLIB_H 1 - -/* Define to 1 if you have the `strdup' function. */ -#define HAVE_STRDUP 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRINGS_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRING_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_STAT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TYPES_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_UNISTD_H 1 - -/* Define to 1 if the system has the type `_Bool'. */ -/* #undef HAVE__BOOL */ - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "sortiz@users.sourceforge.net" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "lttoolbox/lttoolbox.h" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "lttoolbox/lttoolbox.h 3.0.4" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "lttoolbox-lttoolbox-h" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "3.0.4" - -/* Define to 1 if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Define to empty if `const' does not conform to ANSI C. */ -/* #undef const */ - -/* Define to rpl_malloc if the replacement function should be used. */ -/* #undef malloc */ - -/* Define to rpl_realloc if the replacement function should be used. */ -/* #undef realloc */ - -/* Define to `unsigned int' if does not define. */ -/* #undef size_t */ diff --git a/lttoolbox/string_utils.cc b/lttoolbox/string_utils.cc index 3bdf40a3..1507eb21 100644 --- a/lttoolbox/string_utils.cc +++ b/lttoolbox/string_utils.cc @@ -174,9 +174,9 @@ StringUtils::stod(const UString& str) UString StringUtils::tolower(UStringView str) { - UChar buf[str.size()*2]; + UString buf(str.size()*2, 0); UErrorCode err = U_ZERO_ERROR; - u_strToLower(buf, str.size()*2, str.data(), str.size(), NULL, &err); + buf.resize(u_strToLower(&buf[0], str.size() * 2, str.data(), str.size(), NULL, &err)); if (U_FAILURE(err)) { std::cerr << "Error: unable to lowercase string '" << str << "'.\n"; std::cerr << "error code: " << u_errorName(err) << std::endl; @@ -188,9 +188,9 @@ StringUtils::tolower(UStringView str) UString StringUtils::toupper(UStringView str) { - UChar buf[str.size()*2]; + UString buf(str.size()*2, 0); UErrorCode err = U_ZERO_ERROR; - u_strToUpper(buf, str.size()*2, str.data(), str.size(), NULL, &err); + buf.resize(u_strToUpper(&buf[0], str.size()*2, str.data(), str.size(), NULL, &err)); if (U_FAILURE(err)) { std::cerr << "Error: unable to uppercase string '" << str << "'.\n"; std::cerr << "error code: " << u_errorName(err) << std::endl; @@ -202,9 +202,9 @@ StringUtils::toupper(UStringView str) UString StringUtils::totitle(UStringView str) { - UChar buf[str.size()*2]; + UString buf(str.size()*2, 0); UErrorCode err = U_ZERO_ERROR; - u_strToTitle(buf, str.size()*2, str.data(), str.size(), NULL, NULL, &err); + buf.resize(u_strToTitle(&buf[0], str.size()*2, str.data(), str.size(), NULL, NULL, &err)); if (U_FAILURE(err)) { std::cerr << "Error: unable to titlecase string '" << str << "'.\n"; std::cerr << "error code: " << u_errorName(err) << std::endl; diff --git a/lttoolbox/win32/Makefile.am b/lttoolbox/win32/Makefile.am deleted file mode 100644 index cd1ca0fa..00000000 --- a/lttoolbox/win32/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -EXTRA_DIST = getopt.c getopt.h libgen.c libgen.h regex.c regex.h unistd.h diff --git a/lttoolbox/win32/getopt.c b/lttoolbox/win32/getopt.c deleted file mode 100644 index caf6b10f..00000000 --- a/lttoolbox/win32/getopt.c +++ /dev/null @@ -1,81 +0,0 @@ -/* -Newsgroups: mod.std.unix -Subject: public domain AT&T getopt source -Date: 3 Nov 85 19:34:15 GMT - -Here's something you've all been waiting for: the AT&T public domain -source for getopt(3). It is the code which was given out at the 1985 -UNIFORUM conference in Dallas. I obtained it by electronic mail -directly from AT&T. The people there assure me that it is indeed -in the public domain. -*/ - -#include "getopt.h" - -/*LINTLIBRARY*/ - -extern unsigned int strlen(); -extern int strcmp(); -extern char *strchr(); -extern int write(); - -#define NULL 0 -#define EOF (-1) -#define ERR(s, c) if(opterr){\ - char errbuf[2];\ - errbuf[0] = c; errbuf[1] = '\n';\ - (void) write(2, argv[0], (unsigned)strlen(argv[0]));\ - (void) write(2, s, (unsigned)strlen(s));\ - (void) write(2, errbuf, 2);} - - -int opterr = 1; -int optind = 1; -int optopt; -char *optarg; - -int -getopt(argc, argv, opts) -int argc; -char **argv, *opts; -{ - static int sp = 1; - register int c; - register char *cp; - - if(sp == 1) - if(optind >= argc || - argv[optind][0] != '-' || argv[optind][1] == '\0') - return(EOF); - else if(strcmp(argv[optind], "--") == NULL) { - optind++; - return(EOF); - } - optopt = c = argv[optind][sp]; - if(c == ':' || (cp=strchr(opts, c)) == NULL) { - ERR(": illegal option -- ", c); - if(argv[optind][++sp] == '\0') { - optind++; - sp = 1; - } - return('?'); - } - if(*++cp == ':') { - if(argv[optind][sp+1] != '\0') - optarg = &argv[optind++][sp+1]; - else if(++optind >= argc) { - ERR(": option requires an argument -- ", c); - sp = 1; - return('?'); - } else - optarg = argv[optind++]; - sp = 1; - } else { - if(argv[optind][++sp] == '\0') { - sp = 1; - optind++; - } - optarg = NULL; - } - return(c); -} diff --git a/lttoolbox/win32/getopt.h b/lttoolbox/win32/getopt.h deleted file mode 100644 index 2a489970..00000000 --- a/lttoolbox/win32/getopt.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef GETOPT_H -#define GETOPT_H - -#ifdef __cplusplus - extern "C" { -#endif - -int getopt(int argc, char** argv, char* opts); - -extern int opterr; -extern int optind; -extern int optopt; -extern char *optarg; - -#ifdef __cplusplus - } -#endif - -#endif diff --git a/m4/ax_check_compile_flag.m4 b/m4/ax_check_compile_flag.m4 deleted file mode 100644 index 8d648042..00000000 --- a/m4/ax_check_compile_flag.m4 +++ /dev/null @@ -1,74 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT]) -# -# DESCRIPTION -# -# Check whether the given FLAG works with the current language's compiler -# or gives an error. (Warnings, however, are ignored) -# -# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on -# success/failure. -# -# If EXTRA-FLAGS is defined, it is added to the current language's default -# flags (e.g. CFLAGS) when the check is done. The check is thus made with -# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to -# force the compiler to issue an error when a bad flag is given. -# -# INPUT gives an alternative input source to AC_COMPILE_IFELSE. -# -# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this -# macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG. -# -# LICENSE -# -# Copyright (c) 2008 Guido U. Draheim -# Copyright (c) 2011 Maarten Bosmans -# -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation, either version 3 of the License, or (at your -# option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -# Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . -# -# As a special exception, the respective Autoconf Macro's copyright owner -# gives unlimited permission to copy, distribute and modify the configure -# scripts that are the output of Autoconf when processing the Macro. You -# need not follow the terms of the GNU General Public License when using -# or distributing such scripts, even though portions of the text of the -# Macro appear in them. The GNU General Public License (GPL) does govern -# all other use of the material that constitutes the Autoconf Macro. -# -# This special exception to the GPL applies to versions of the Autoconf -# Macro released by the Autoconf Archive. When you make and distribute a -# modified version of the Autoconf Macro, you may extend this special -# exception to the GPL to apply to your modified version as well. - -#serial 3 - -AC_DEFUN([AX_CHECK_COMPILE_FLAG], -[AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX -AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl -AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [ - ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS - _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1" - AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])], - [AS_VAR_SET(CACHEVAR,[yes])], - [AS_VAR_SET(CACHEVAR,[no])]) - _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags]) -AS_IF([test x"AS_VAR_GET(CACHEVAR)" = xyes], - [m4_default([$2], :)], - [m4_default([$3], :)]) -AS_VAR_POPDEF([CACHEVAR])dnl -])dnl AX_CHECK_COMPILE_FLAGS diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 deleted file mode 100644 index 9f35d139..00000000 --- a/m4/ax_pthread.m4 +++ /dev/null @@ -1,522 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_pthread.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) -# -# DESCRIPTION -# -# This macro figures out how to build C programs using POSIX threads. It -# sets the PTHREAD_LIBS output variable to the threads library and linker -# flags, and the PTHREAD_CFLAGS output variable to any special C compiler -# flags that are needed. (The user can also force certain compiler -# flags/libs to be tested by setting these environment variables.) -# -# Also sets PTHREAD_CC and PTHREAD_CXX to any special C compiler that is -# needed for multi-threaded programs (defaults to the value of CC -# respectively CXX otherwise). (This is necessary on e.g. AIX to use the -# special cc_r/CC_r compiler alias.) -# -# NOTE: You are assumed to not only compile your program with these flags, -# but also to link with them as well. For example, you might link with -# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS -# $PTHREAD_CXX $CXXFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS -# -# If you are only building threaded programs, you may wish to use these -# variables in your default LIBS, CFLAGS, and CC: -# -# LIBS="$PTHREAD_LIBS $LIBS" -# CFLAGS="$CFLAGS $PTHREAD_CFLAGS" -# CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" -# CC="$PTHREAD_CC" -# CXX="$PTHREAD_CXX" -# -# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant -# has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to -# that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX). -# -# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the -# PTHREAD_PRIO_INHERIT symbol is defined when compiling with -# PTHREAD_CFLAGS. -# -# ACTION-IF-FOUND is a list of shell commands to run if a threads library -# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it -# is not found. If ACTION-IF-FOUND is not specified, the default action -# will define HAVE_PTHREAD. -# -# Please let the authors know if this macro fails on any platform, or if -# you have any other suggestions or comments. This macro was based on work -# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help -# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by -# Alejandro Forero Cuervo to the autoconf macro repository. We are also -# grateful for the helpful feedback of numerous users. -# -# Updated for Autoconf 2.68 by Daniel Richard G. -# -# LICENSE -# -# Copyright (c) 2008 Steven G. Johnson -# Copyright (c) 2011 Daniel Richard G. -# Copyright (c) 2019 Marc Stevens -# -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation, either version 3 of the License, or (at your -# option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -# Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . -# -# As a special exception, the respective Autoconf Macro's copyright owner -# gives unlimited permission to copy, distribute and modify the configure -# scripts that are the output of Autoconf when processing the Macro. You -# need not follow the terms of the GNU General Public License when using -# or distributing such scripts, even though portions of the text of the -# Macro appear in them. The GNU General Public License (GPL) does govern -# all other use of the material that constitutes the Autoconf Macro. -# -# This special exception to the GPL applies to versions of the Autoconf -# Macro released by the Autoconf Archive. When you make and distribute a -# modified version of the Autoconf Macro, you may extend this special -# exception to the GPL to apply to your modified version as well. - -#serial 31 - -AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) -AC_DEFUN([AX_PTHREAD], [ -AC_REQUIRE([AC_CANONICAL_HOST]) -AC_REQUIRE([AC_PROG_CC]) -AC_REQUIRE([AC_PROG_SED]) -AC_LANG_PUSH([C]) -ax_pthread_ok=no - -# We used to check for pthread.h first, but this fails if pthread.h -# requires special compiler flags (e.g. on Tru64 or Sequent). -# It gets checked for in the link test anyway. - -# First of all, check if the user has set any of the PTHREAD_LIBS, -# etcetera environment variables, and if threads linking works using -# them: -if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then - ax_pthread_save_CC="$CC" - ax_pthread_save_CFLAGS="$CFLAGS" - ax_pthread_save_LIBS="$LIBS" - AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"]) - AS_IF([test "x$PTHREAD_CXX" != "x"], [CXX="$PTHREAD_CXX"]) - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - LIBS="$PTHREAD_LIBS $LIBS" - AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS]) - AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes]) - AC_MSG_RESULT([$ax_pthread_ok]) - if test "x$ax_pthread_ok" = "xno"; then - PTHREAD_LIBS="" - PTHREAD_CFLAGS="" - fi - CC="$ax_pthread_save_CC" - CFLAGS="$ax_pthread_save_CFLAGS" - LIBS="$ax_pthread_save_LIBS" -fi - -# We must check for the threads library under a number of different -# names; the ordering is very important because some systems -# (e.g. DEC) have both -lpthread and -lpthreads, where one of the -# libraries is broken (non-POSIX). - -# Create a list of thread flags to try. Items with a "," contain both -# C compiler flags (before ",") and linker flags (after ","). Other items -# starting with a "-" are C compiler flags, and remaining items are -# library names, except for "none" which indicates that we try without -# any flags at all, and "pthread-config" which is a program returning -# the flags for the Pth emulation library. - -ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" - -# The ordering *is* (sometimes) important. Some notes on the -# individual items follow: - -# pthreads: AIX (must check this before -lpthread) -# none: in case threads are in libc; should be tried before -Kthread and -# other compiler flags to prevent continual compiler warnings -# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) -# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 -# (Note: HP C rejects this with "bad form for `-t' option") -# -pthreads: Solaris/gcc (Note: HP C also rejects) -# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it -# doesn't hurt to check since this sometimes defines pthreads and -# -D_REENTRANT too), HP C (must be checked before -lpthread, which -# is present but should not be used directly; and before -mthreads, -# because the compiler interprets this as "-mt" + "-hreads") -# -mthreads: Mingw32/gcc, Lynx/gcc -# pthread: Linux, etcetera -# --thread-safe: KAI C++ -# pthread-config: use pthread-config program (for GNU Pth library) - -case $host_os in - - freebsd*) - - # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) - # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) - - ax_pthread_flags="-kthread lthread $ax_pthread_flags" - ;; - - hpux*) - - # From the cc(1) man page: "[-mt] Sets various -D flags to enable - # multi-threading and also sets -lpthread." - - ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" - ;; - - openedition*) - - # IBM z/OS requires a feature-test macro to be defined in order to - # enable POSIX threads at all, so give the user a hint if this is - # not set. (We don't define these ourselves, as they can affect - # other portions of the system API in unpredictable ways.) - - AC_EGREP_CPP([AX_PTHREAD_ZOS_MISSING], - [ -# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) - AX_PTHREAD_ZOS_MISSING -# endif - ], - [AC_MSG_WARN([IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support.])]) - ;; - - solaris*) - - # On Solaris (at least, for some versions), libc contains stubbed - # (non-functional) versions of the pthreads routines, so link-based - # tests will erroneously succeed. (N.B.: The stubs are missing - # pthread_cleanup_push, or rather a function called by this macro, - # so we could check for that, but who knows whether they'll stub - # that too in a future libc.) So we'll check first for the - # standard Solaris way of linking pthreads (-mt -lpthread). - - ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" - ;; -esac - -# Are we compiling with Clang? - -AC_CACHE_CHECK([whether $CC is Clang], - [ax_cv_PTHREAD_CLANG], - [ax_cv_PTHREAD_CLANG=no - # Note that Autoconf sets GCC=yes for Clang as well as GCC - if test "x$GCC" = "xyes"; then - AC_EGREP_CPP([AX_PTHREAD_CC_IS_CLANG], - [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ -# if defined(__clang__) && defined(__llvm__) - AX_PTHREAD_CC_IS_CLANG -# endif - ], - [ax_cv_PTHREAD_CLANG=yes]) - fi - ]) -ax_pthread_clang="$ax_cv_PTHREAD_CLANG" - - -# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) - -# Note that for GCC and Clang -pthread generally implies -lpthread, -# except when -nostdlib is passed. -# This is problematic using libtool to build C++ shared libraries with pthread: -# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 -# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 -# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 -# To solve this, first try -pthread together with -lpthread for GCC - -AS_IF([test "x$GCC" = "xyes"], - [ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"]) - -# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first - -AS_IF([test "x$ax_pthread_clang" = "xyes"], - [ax_pthread_flags="-pthread,-lpthread -pthread"]) - - -# The presence of a feature test macro requesting re-entrant function -# definitions is, on some systems, a strong hint that pthreads support is -# correctly enabled - -case $host_os in - darwin* | hpux* | linux* | osf* | solaris*) - ax_pthread_check_macro="_REENTRANT" - ;; - - aix*) - ax_pthread_check_macro="_THREAD_SAFE" - ;; - - *) - ax_pthread_check_macro="--" - ;; -esac -AS_IF([test "x$ax_pthread_check_macro" = "x--"], - [ax_pthread_check_cond=0], - [ax_pthread_check_cond="!defined($ax_pthread_check_macro)"]) - - -if test "x$ax_pthread_ok" = "xno"; then -for ax_pthread_try_flag in $ax_pthread_flags; do - - case $ax_pthread_try_flag in - none) - AC_MSG_CHECKING([whether pthreads work without any flags]) - ;; - - *,*) - PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` - PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` - AC_MSG_CHECKING([whether pthreads work with "$PTHREAD_CFLAGS" and "$PTHREAD_LIBS"]) - ;; - - -*) - AC_MSG_CHECKING([whether pthreads work with $ax_pthread_try_flag]) - PTHREAD_CFLAGS="$ax_pthread_try_flag" - ;; - - pthread-config) - AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no]) - AS_IF([test "x$ax_pthread_config" = "xno"], [continue]) - PTHREAD_CFLAGS="`pthread-config --cflags`" - PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" - ;; - - *) - AC_MSG_CHECKING([for the pthreads library -l$ax_pthread_try_flag]) - PTHREAD_LIBS="-l$ax_pthread_try_flag" - ;; - esac - - ax_pthread_save_CFLAGS="$CFLAGS" - ax_pthread_save_LIBS="$LIBS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - LIBS="$PTHREAD_LIBS $LIBS" - - # Check for various functions. We must include pthread.h, - # since some functions may be macros. (On the Sequent, we - # need a special flag -Kthread to make this header compile.) - # We check for pthread_join because it is in -lpthread on IRIX - # while pthread_create is in libc. We check for pthread_attr_init - # due to DEC craziness with -lpthreads. We check for - # pthread_cleanup_push because it is one of the few pthread - # functions on Solaris that doesn't have a non-functional libc stub. - # We try pthread_create on general principles. - - AC_LINK_IFELSE([AC_LANG_PROGRAM([#include -# if $ax_pthread_check_cond -# error "$ax_pthread_check_macro must be defined" -# endif - static void *some_global = NULL; - static void routine(void *a) - { - /* To avoid any unused-parameter or - unused-but-set-parameter warning. */ - some_global = a; - } - static void *start_routine(void *a) { return a; }], - [pthread_t th; pthread_attr_t attr; - pthread_create(&th, 0, start_routine, 0); - pthread_join(th, 0); - pthread_attr_init(&attr); - pthread_cleanup_push(routine, 0); - pthread_cleanup_pop(0) /* ; */])], - [ax_pthread_ok=yes], - []) - - CFLAGS="$ax_pthread_save_CFLAGS" - LIBS="$ax_pthread_save_LIBS" - - AC_MSG_RESULT([$ax_pthread_ok]) - AS_IF([test "x$ax_pthread_ok" = "xyes"], [break]) - - PTHREAD_LIBS="" - PTHREAD_CFLAGS="" -done -fi - - -# Clang needs special handling, because older versions handle the -pthread -# option in a rather... idiosyncratic way - -if test "x$ax_pthread_clang" = "xyes"; then - - # Clang takes -pthread; it has never supported any other flag - - # (Note 1: This will need to be revisited if a system that Clang - # supports has POSIX threads in a separate library. This tends not - # to be the way of modern systems, but it's conceivable.) - - # (Note 2: On some systems, notably Darwin, -pthread is not needed - # to get POSIX threads support; the API is always present and - # active. We could reasonably leave PTHREAD_CFLAGS empty. But - # -pthread does define _REENTRANT, and while the Darwin headers - # ignore this macro, third-party headers might not.) - - # However, older versions of Clang make a point of warning the user - # that, in an invocation where only linking and no compilation is - # taking place, the -pthread option has no effect ("argument unused - # during compilation"). They expect -pthread to be passed in only - # when source code is being compiled. - # - # Problem is, this is at odds with the way Automake and most other - # C build frameworks function, which is that the same flags used in - # compilation (CFLAGS) are also used in linking. Many systems - # supported by AX_PTHREAD require exactly this for POSIX threads - # support, and in fact it is often not straightforward to specify a - # flag that is used only in the compilation phase and not in - # linking. Such a scenario is extremely rare in practice. - # - # Even though use of the -pthread flag in linking would only print - # a warning, this can be a nuisance for well-run software projects - # that build with -Werror. So if the active version of Clang has - # this misfeature, we search for an option to squash it. - - AC_CACHE_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread], - [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG], - [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown - # Create an alternate version of $ac_link that compiles and - # links in two steps (.c -> .o, .o -> exe) instead of one - # (.c -> exe), because the warning occurs only in the second - # step - ax_pthread_save_ac_link="$ac_link" - ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' - ax_pthread_link_step=`AS_ECHO(["$ac_link"]) | sed "$ax_pthread_sed"` - ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" - ax_pthread_save_CFLAGS="$CFLAGS" - for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do - AS_IF([test "x$ax_pthread_try" = "xunknown"], [break]) - CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" - ac_link="$ax_pthread_save_ac_link" - AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])], - [ac_link="$ax_pthread_2step_ac_link" - AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])], - [break]) - ]) - done - ac_link="$ax_pthread_save_ac_link" - CFLAGS="$ax_pthread_save_CFLAGS" - AS_IF([test "x$ax_pthread_try" = "x"], [ax_pthread_try=no]) - ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" - ]) - - case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in - no | unknown) ;; - *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; - esac - -fi # $ax_pthread_clang = yes - - - -# Various other checks: -if test "x$ax_pthread_ok" = "xyes"; then - ax_pthread_save_CFLAGS="$CFLAGS" - ax_pthread_save_LIBS="$LIBS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - LIBS="$PTHREAD_LIBS $LIBS" - - # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. - AC_CACHE_CHECK([for joinable pthread attribute], - [ax_cv_PTHREAD_JOINABLE_ATTR], - [ax_cv_PTHREAD_JOINABLE_ATTR=unknown - for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do - AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], - [int attr = $ax_pthread_attr; return attr /* ; */])], - [ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break], - []) - done - ]) - AS_IF([test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ - test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ - test "x$ax_pthread_joinable_attr_defined" != "xyes"], - [AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE], - [$ax_cv_PTHREAD_JOINABLE_ATTR], - [Define to necessary symbol if this constant - uses a non-standard name on your system.]) - ax_pthread_joinable_attr_defined=yes - ]) - - AC_CACHE_CHECK([whether more special flags are required for pthreads], - [ax_cv_PTHREAD_SPECIAL_FLAGS], - [ax_cv_PTHREAD_SPECIAL_FLAGS=no - case $host_os in - solaris*) - ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" - ;; - esac - ]) - AS_IF([test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ - test "x$ax_pthread_special_flags_added" != "xyes"], - [PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" - ax_pthread_special_flags_added=yes]) - - AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT], - [ax_cv_PTHREAD_PRIO_INHERIT], - [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], - [[int i = PTHREAD_PRIO_INHERIT; - return i;]])], - [ax_cv_PTHREAD_PRIO_INHERIT=yes], - [ax_cv_PTHREAD_PRIO_INHERIT=no]) - ]) - AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ - test "x$ax_pthread_prio_inherit_defined" != "xyes"], - [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.]) - ax_pthread_prio_inherit_defined=yes - ]) - - CFLAGS="$ax_pthread_save_CFLAGS" - LIBS="$ax_pthread_save_LIBS" - - # More AIX lossage: compile with *_r variant - if test "x$GCC" != "xyes"; then - case $host_os in - aix*) - AS_CASE(["x/$CC"], - [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6], - [#handle absolute path differently from PATH based program lookup - AS_CASE(["x$CC"], - [x/*], - [ - AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"]) - AS_IF([test "x${CXX}" != "x"], [AS_IF([AS_EXECUTABLE_P([${CXX}_r])],[PTHREAD_CXX="${CXX}_r"])]) - ], - [ - AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC]) - AS_IF([test "x${CXX}" != "x"], [AC_CHECK_PROGS([PTHREAD_CXX],[${CXX}_r],[$CXX])]) - ] - ) - ]) - ;; - esac - fi -fi - -test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" -test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" - -AC_SUBST([PTHREAD_LIBS]) -AC_SUBST([PTHREAD_CFLAGS]) -AC_SUBST([PTHREAD_CC]) -AC_SUBST([PTHREAD_CXX]) - -# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: -if test "x$ax_pthread_ok" = "xyes"; then - ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1]) - : -else - ax_pthread_ok=no - $2 -fi -AC_LANG_POP -])dnl AX_PTHREAD diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt new file mode 100644 index 00000000..948b7283 --- /dev/null +++ b/python/CMakeLists.txt @@ -0,0 +1,39 @@ +find_package(SWIG 3.0 REQUIRED) +find_package(Python 3.8 REQUIRED) +set(PYTHON_EXECUTABLE ${Python_EXECUTABLE}) + +get_directory_property(_defs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMPILE_DEFINITIONS) +string(REPLACE ";" " -D" defs "-D${_defs}") + +set(PYTHON_FILE "lttoolbox.py") +set(CPP_WRAP_FILE "lttoolbox_wrap.cpp") +set(top_srcdir ${CMAKE_SOURCE_DIR}) +set(BUILD_LIBDIR $) +set(CXXFLAGS "${CMAKE_CXX_FLAGS} ${defs}") +set(PACKAGE ${PROJECT_NAME}) +set(PACKAGE_NAME ${PROJECT_NAME}) +set(PACKAGE_VERSION ${PROJECT_VERSION}) +set(LIBXML_CFLAGS ${LIBXML2_INCLUDE_DIR}) +set(ICU_CFLAGS ${ICU_INCLUDE_DIR}) + +configure_file(lttoolbox.i.in lttoolbox.i @ONLY) +configure_file(setup.py.in setup.py @ONLY) +file(GENERATE OUTPUT setup.py INPUT ${CMAKE_CURRENT_BINARY_DIR}/setup.py TARGET lttoolbox) + +add_custom_command(OUTPUT ${CPP_WRAP_FILE} ${PYTHON_FILE} + COMMAND ${PYTHON_EXECUTABLE} setup.py build + COMMENT "Building ${PYTHON_FILE}" + DEPENDS lttoolbox +) + +add_custom_target(wrapper ALL + DEPENDS ${CPP_WRAP_FILE} ${PYTHON_FILE} + VERBATIM +) + +if(NOT PYTHON_INSTALL_PARAMS) + set(PYTHON_INSTALL_PARAMS "--prefix=${CMAKE_INSTALL_PREFIX} --root=\$ENV{DESTDIR}/") +endif() + +set(INSTALL_WRAPPER "${PYTHON_EXECUTABLE} setup.py install ${PYTHON_INSTALL_PARAMS}") +install(CODE "execute_process(COMMAND ${INSTALL_WRAPPER} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})") diff --git a/python/Makefile.am b/python/Makefile.am deleted file mode 100644 index 39f031dd..00000000 --- a/python/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -SWIG_INTERFACE = lttoolbox.i - -BUILT_SOURCES = %_wrap.cpp.cpp - -%_wrap.cpp.cpp: $(SWIG_INTERFACE) setup.py - $(PYTHON) setup.py build - -install-exec-local: - $(PYTHON) setup.py install $(PYTHON_INSTALL_PARAMS) diff --git a/python/setup.py.in b/python/setup.py.in index a345d1e6..797e8844 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -18,7 +18,7 @@ lttoolbox_module = Extension( sources=['lttoolbox.i'], swig_opts = ["-c++", '-I..', "-I@top_srcdir@", "-Wall"], include_dirs=['@top_srcdir@', '@top_srcdir@/lttoolbox'] + '@LIBXML_CFLAGS@'.replace('-I', '').split() + '@ICU_CFLAGS@'.replace('-I', '').split(), - library_dirs=['@top_srcdir@/lttoolbox/.libs'], + library_dirs=['@BUILD_LIBDIR@'], libraries=['lttoolbox', 'xml2', 'icuio', 'icui18n', 'icuuc', 'icudata'], extra_compile_args=compile_args, extra_link_args=link_args,