aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/README66
-rw-r--r--cpp/gtest.gyp58
-rw-r--r--cpp/libaddressinput.gyp57
-rw-r--r--cpp/test/main.cc20
4 files changed, 0 insertions, 201 deletions
diff --git a/cpp/README b/cpp/README
deleted file mode 100644
index 3905854..0000000
--- a/cpp/README
+++ /dev/null
@@ -1,66 +0,0 @@
-Intro
-=====
-
-The C++ version of libaddressinput library provides UI layout information and
-validation for address input forms.
-
-The library does not provide a UI. The user of the library must provide the user
-interface that uses libaddressinput. The user of the library must also provide a
-way to store data on disk and download data from the internet.
-
-The first client of the library is Chrome web browser. This motivates not
-providing UI or networking capabilities. Chrome will provide those.
-
-When including the library in your project, you can override the dependencies
-and include directories in libaddressinput.gypi to link with your own
-third-party libraries.
-
-Dependencies
-============
-
-The library depends on these tools and libraries:
-
-GYP: Generates the build files.
-Ninja: Executes the build files.
-GTest: Used for unit tests.
-
-Most of these packages are available on Debian-like distributions. You can
-install them with this command:
-
-$ sudo apt-get install gyp ninja-build libgtest-dev
-
-Make sure that your version of GYP is at least 0.1~svn1395. Older versions of
-GYP do not generate the Ninja build files correctly. You can download a
-new-enough version from http://packages.ubuntu.com/saucy/gyp.
-
-If your distribution does not include the binary packages for the dependencies,
-you can download them from these locations:
-
-http://packages.ubuntu.com/saucy/gyp
-http://packages.ubuntu.com/saucy/ninja-build
-http://packages.ubuntu.com/saucy/libgtest-dev
-
-Alternatively, you can download, build, and install these tools and libraries
-from source code. Their home pages contain information on how to accomplish
-that.
-
-https://code.google.com/p/gyp/
-http://martine.github.io/ninja/
-https://code.google.com/p/googletest/
-
-Build
-=====
-
-Building the library involves generating an out/Release/ninja.build file and
-running ninja:
-
-$ export GYP_GENERATORS=ninja
-$ gyp --depth .
-$ ninja -C out/Release
-
-Test
-====
-
-This command will execute the unit tests for the library:
-
-$ out/Release/libaddressinput_unittests
diff --git a/cpp/gtest.gyp b/cpp/gtest.gyp
deleted file mode 100644
index e7d63fb..0000000
--- a/cpp/gtest.gyp
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright (C) 2013 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-{
- 'variables': {
- # Default include directories. Override with your system's include paths or
- # paths to your own implementations.
- 'gtest_dir%': '/usr/include',
- 'gtest_src_dir%': '/usr/src/gtest',
- },
- 'targets': [
- {
- 'target_name': 'main',
- 'type': 'static_library',
- 'configurations': {
- 'Debug': {},
- 'Release': {},
- },
- 'sources': [
- '<(INTERMEDIATE_DIR)/src/gtest-all.cc',
- ],
- 'include_dirs': [
- '<(gtest_src_dir)',
- ],
- 'copies': [
- {
- 'destination': '<(INTERMEDIATE_DIR)/src',
- 'files': [
- '<(gtest_src_dir)/src/gtest-all.cc',
- ],
- },
- ],
- 'direct_dependent_settings': {
- 'include_dirs': [
- '<(gtest_dir)',
- ],
- 'conditions': [
- ['OS == "linux"', {
- 'ldflags': [
- # GTest needs to link to pthread on Linux.
- '-pthread',
- ],
- }],
- ],
- },
- },
- ],
-}
diff --git a/cpp/libaddressinput.gyp b/cpp/libaddressinput.gyp
deleted file mode 100644
index 1311762..0000000
--- a/cpp/libaddressinput.gyp
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright (C) 2013 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-{
- 'variables': {
- 'component%': 'shared_library',
- },
- 'target_defaults': {
- 'cflags': [
- '-std=c++03',
- ],
- 'configurations': {
- 'Debug': {
- 'cflags': [
- '-O0',
- '-g',
- ],
- },
- 'Release': {
- 'cflags': [
- '-O3',
- ],
- },
- },
- },
- 'targets': [
- {
- 'target_name': 'libaddressinput',
- 'type': '<(component)',
- 'cflags': [
- # http://gcc.gnu.org/wiki/Visibility
- '-fvisibility=hidden',
- ],
- },
- {
- 'target_name': 'libaddressinput_unittests',
- 'type': 'executable',
- 'sources': [
- 'test/main.cc',
- ],
- 'dependencies': [
- 'libaddressinput',
- 'gtest.gyp:main',
- ],
- },
- ],
-}
diff --git a/cpp/test/main.cc b/cpp/test/main.cc
deleted file mode 100644
index df532f0..0000000
--- a/cpp/test/main.cc
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright (C) 2013 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#include <gtest/gtest.h>
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
-}