diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
commit | 72231250ed81e10d66bfe70701e64fa5fe50f712 (patch) | |
tree | 2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /lowercasing_test/src/grouping_test |
Publish
Diffstat (limited to 'lowercasing_test/src/grouping_test')
7 files changed, 62 insertions, 0 deletions
diff --git a/lowercasing_test/src/grouping_test/hello-world-lib/.gitignore b/lowercasing_test/src/grouping_test/hello-world-lib/.gitignore new file mode 100644 index 00000000000..5dae353d999 --- /dev/null +++ b/lowercasing_test/src/grouping_test/hello-world-lib/.gitignore @@ -0,0 +1,2 @@ +.depend +Makefile diff --git a/lowercasing_test/src/grouping_test/hello-world-lib/CMakeLists.txt b/lowercasing_test/src/grouping_test/hello-world-lib/CMakeLists.txt new file mode 100644 index 00000000000..a6e6876f152 --- /dev/null +++ b/lowercasing_test/src/grouping_test/hello-world-lib/CMakeLists.txt @@ -0,0 +1,6 @@ +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +vespa_add_library(lowercasing_test_hello-world-lib STATIC + SOURCES + hello-world.cpp + DEPENDS +) diff --git a/lowercasing_test/src/grouping_test/hello-world-lib/hello-world.cpp b/lowercasing_test/src/grouping_test/hello-world-lib/hello-world.cpp new file mode 100644 index 00000000000..d280665ae7d --- /dev/null +++ b/lowercasing_test/src/grouping_test/hello-world-lib/hello-world.cpp @@ -0,0 +1,9 @@ +// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +#include "hello-world.h" +#include <stdio.h> + +void +HelloWorld::print() +{ + fprintf(stdout, "C++/lib/Hello World\n"); +} diff --git a/lowercasing_test/src/grouping_test/hello-world-lib/hello-world.h b/lowercasing_test/src/grouping_test/hello-world-lib/hello-world.h new file mode 100644 index 00000000000..4bca4064da0 --- /dev/null +++ b/lowercasing_test/src/grouping_test/hello-world-lib/hello-world.h @@ -0,0 +1,9 @@ +// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +#pragma once + +class HelloWorld +{ +public: + static void print(); +}; + diff --git a/lowercasing_test/src/grouping_test/hello-world/.gitignore b/lowercasing_test/src/grouping_test/hello-world/.gitignore new file mode 100644 index 00000000000..49082b83c4d --- /dev/null +++ b/lowercasing_test/src/grouping_test/hello-world/.gitignore @@ -0,0 +1,4 @@ +.depend +Makefile +hello-world +lowercasing_test_hello-world_app diff --git a/lowercasing_test/src/grouping_test/hello-world/CMakeLists.txt b/lowercasing_test/src/grouping_test/hello-world/CMakeLists.txt new file mode 100644 index 00000000000..2d6940ef4d8 --- /dev/null +++ b/lowercasing_test/src/grouping_test/hello-world/CMakeLists.txt @@ -0,0 +1,8 @@ +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +vespa_add_executable(lowercasing_test_hello-world_app + SOURCES + hello-world.cpp + INSTALL bin + DEPENDS + lowercasing_test_hello-world-lib +) diff --git a/lowercasing_test/src/grouping_test/hello-world/hello-world.cpp b/lowercasing_test/src/grouping_test/hello-world/hello-world.cpp new file mode 100644 index 00000000000..42504323bbe --- /dev/null +++ b/lowercasing_test/src/grouping_test/hello-world/hello-world.cpp @@ -0,0 +1,24 @@ +// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +#include <vespa/fastos/fastos.h> +#include <grouping_test/hello-world-lib/hello-world.h> + +class App : public FastOS_Application +{ +public: + int Main(); +}; + +int +App::Main() +{ + HelloWorld::print(); + fprintf(stdout, "C++/app/Hello World\n"); + return 0; +} + +int +main(int argc, char **argv) +{ + App myapp; + return myapp.Entry(argc, argv); +} |