You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/02/12 23:21:06 UTC

[lucy-commits] [3/3] git commit: refs/heads/c-bindings-cfc - Add configure.bat for Windows build

Updated Branches:
  refs/heads/c-bindings-cfc 369a995c4 -> 8c5b06252


Add configure.bat for Windows build


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/8c5b0625
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/8c5b0625
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/8c5b0625

Branch: refs/heads/c-bindings-cfc
Commit: 8c5b062526f44c39605fab6d30c97631d7a540bb
Parents: 8e5363d
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Tue Feb 12 23:02:34 2013 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Tue Feb 12 23:08:00 2013 +0100

----------------------------------------------------------------------
 clownfish/compiler/c/configure.bat |   35 +++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/8c5b0625/clownfish/compiler/c/configure.bat
----------------------------------------------------------------------
diff --git a/clownfish/compiler/c/configure.bat b/clownfish/compiler/c/configure.bat
new file mode 100644
index 0000000..25d2749
--- /dev/null
+++ b/clownfish/compiler/c/configure.bat
@@ -0,0 +1,35 @@
+@echo off
+
+rem Licensed to the Apache Software Foundation (ASF) under one or more
+rem contributor license agreements.  See the NOTICE file distributed with
+rem this work for additional information regarding copyright ownership.
+rem The ASF licenses this file to You under the Apache License, Version 2.0
+rem (the "License"); you may not use this file except in compliance with
+rem the License.  You may obtain a copy of the License at
+rem
+rem     http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing, software
+rem distributed under the License is distributed on an "AS IS" BASIS,
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+rem See the License for the specific language governing permissions and
+rem limitations under the License.
+
+cl >nul 2>nul
+if not errorlevel 1 goto found_cl
+
+gcc -v >nul 2>nul
+if not errorlevel 1 goto found_gcc
+
+echo No C compiler found
+exit /b 1
+
+:found_cl
+cl /nologo ..\common\charmonizer.c
+charmonizer.exe --cc=cl --enable-c --enable-makefile %*
+exit /b
+
+:found_gcc
+gcc ..\common\charmonizer.c -o charmonizer.exe
+charmonizer.exe --cc=gcc --enable-c --enable-makefile %*
+exit /b