From d7ec7480748f6b0aeb713f4d338d6150a085e9e9 Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Thu, 5 Jan 2017 15:23:38 +0000 Subject: [PATCH] build: Remove support for C++ building via ant --- build.py | 1 - build.xml | 89 ++++---------------------- components/antlib/resources/global.xml | 4 -- components/tools/OmeroCpp/build.xml | 70 -------------------- examples/TreeList/SConscript | 12 ---- 5 files changed, 12 insertions(+), 164 deletions(-) delete mode 100644 components/tools/OmeroCpp/build.xml diff --git a/build.py b/build.py index c85f80ac67d..ce66d8476fb 100755 --- a/build.py +++ b/build.py @@ -82,7 +82,6 @@ def handle_tools(args): additions = [] mappings = { "-top": _(["build.xml"]), - "-cpp": _(["components", "tools", "OmeroCpp", "build.xml"]), "-fs": _(["components", "tools", "OmeroFS", "build.xml"]), "-java": _(["components", "tools", "OmeroJava", "build.xml"]), "-py": _(["components", "tools", "OmeroPy", "build.xml"]), diff --git a/build.xml b/build.xml index 150777d629b..da8987d1292 100644 --- a/build.xml +++ b/build.xml @@ -21,31 +21,11 @@ build-* targets. --> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Top-level OMERO build. "./build.py" alone will suffice for most builds. -If you need OmeroCpp (the C++ bindings for OMERO) use "build-all" -or "build-cpp" targets: - - ./build.py build-all - -Relative paths --------------- -./build.py can be executed from any directory. All builds are proceeded by -changing the current working directory to the top of the source code. - -If a "build.xml" is present in the current working directory, then -"-f `pwd`/build.xml" will be added to the command-line. Otherwise, the top-level -build.xml will be used. If you would like to force use of the top-level -build.xml add "-top" as your first argument. Similarly, you can use "-py", "-java" -"-web", "-cpp", or "-fs" to choose specific components. - -Examples: - cd components/server && ../../build.py install - cd components/server && ../../build.py -top hot-server - cd components/tools/OmeroPy && ../../../build.py -py tools-dist +Top-level OMERO build. Eclipse ------- -To get started using Eclipse, execute "./build.py build-dev" and import the top-level +To get started using Eclipse, execute "ant build-dev" and import the top-level .project file. Eclipse projects also exist for each individual java component. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -173,7 +153,7 @@ To get started using Eclipse, execute "./build.py build-dev" and import the top- - + @@ -183,20 +163,14 @@ To get started using Eclipse, execute "./build.py build-dev" and import the top- - - - - - - - + - + @@ -254,30 +228,6 @@ To get started using Eclipse, execute "./build.py build-dev" and import the top- - - - - - - - - -+------------------------------------------------------------------------+ -| | -| ==================================================================== | -| | -| WARNING: NOMAKE was set. C++ bindings will not have built correctly. | -| | -| If you used, 'build-default build-cpp' either use two | -| commands './build.py build-default; ./build.py build-cpp' | -| or use './build.py build-all' | -| ==================================================================== | -| | -+------------------------------------------------------------------------- - - - - @@ -327,31 +277,28 @@ To get started using Eclipse, execute "./build.py build-dev" and import the top- - + - - + - + - - + - + - - + @@ -390,21 +337,15 @@ To get started using Eclipse, execute "./build.py build-dev" and import the top- - - - - - @@ -423,12 +364,6 @@ To get started using Eclipse, execute "./build.py build-dev" and import the top- - - - - - - diff --git a/components/antlib/resources/global.xml b/components/antlib/resources/global.xml index a4cebb59b40..1a9a9415662 100644 --- a/components/antlib/resources/global.xml +++ b/components/antlib/resources/global.xml @@ -68,7 +68,6 @@ - @@ -100,9 +99,6 @@ - - - diff --git a/components/tools/OmeroCpp/build.xml b/components/tools/OmeroCpp/build.xml deleted file mode 100644 index c0415505f33..00000000000 --- a/components/tools/OmeroCpp/build.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - Entering ${basedir}... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/TreeList/SConscript b/examples/TreeList/SConscript index 7581e66bb35..b9a6f267d8c 100644 --- a/examples/TreeList/SConscript +++ b/examples/TreeList/SConscript @@ -52,18 +52,6 @@ if env["run"] or env["run_py"]: env.AlwaysBuild(run) targets.append(run) -# -# C++ -# -if not env["no_cpp"]: - make = env.Program("TreeList.exe", "Main.cpp", LIBS = libs) - targets.append(make) - if env["run"] or env["run_cpp"]: - run = env.Command("TreeList.out", "TreeList.exe", _([".", "$SOURCE "]) + args) - env.Depends(run, make) - env.AlwaysBuild(run) - targets.append(run) - # PREPARING SCONS EXECUTION: ================================= # Default(targets)