Author: chug
Date: Thu Jun  5 18:59:54 2014
New Revision: 1600727

URL: http://svn.apache.org/r1600727
Log:
PROTON-596: Add config.bat environment settings for windows.
* Bug-for-bug compatible with config.sh 
** adds new paths after old paths
** uses fixed \build folder for builds
* For use with debug builds only (pending conversion to cmake configure .in 
file)
To use:
  > cd proton
  > call config.bat
  > cd build
  > ctest

Added:
    qpid/proton/trunk/config.bat

Added: qpid/proton/trunk/config.bat
URL: 
http://svn.apache.org/viewvc/qpid/proton/trunk/config.bat?rev=1600727&view=auto
==============================================================================
--- qpid/proton/trunk/config.bat (added)
+++ qpid/proton/trunk/config.bat Thu Jun  5 18:59:54 2014
@@ -0,0 +1,70 @@
+REM
+REM Licensed to the Apache Software Foundation (ASF) under one
+REM or more contributor license agreements.  See the NOTICE file
+REM distributed with this work for additional information
+REM regarding copyright ownership.  The ASF licenses this file
+REM to you under the Apache License, Version 2.0 (the
+REM "License"); you may not use this file except in compliance
+REM with 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,
+REM software distributed under the License is distributed on an
+REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+REM KIND, either express or implied.  See the License for the
+REM specific language governing permissions and limitations
+REM under the License.
+REM
+
+REM HACK ALERT: This script supports debug builds in $PROTON_HOME\build only.
+
+set PROTON_HOME=%~dp0
+set PROTON_HOME=%PROTON_HOME:~0,-1%
+
+if "%CPROTON_BUILD%"=="" (
+    if EXIST %PROTON_HOME%\build\proton-c (
+        set PROTON_BINDINGS=%PROTON_HOME%\build\proton-c\bindings
+    ) else (
+        set PROTON_BINDINGS=%PROTON_HOME%\proton-c\bindings
+    )
+    if EXIST %PROTON_HOME%\build\proton-j (
+        set PROTON_JARS=%PROTON_HOME%\build\proton-j\proton-j.jar
+    ) else (
+        set PROTON_JARS=%PROTON_HOME%\proton-j\proton-j.jar
+    )
+) else (
+    set PROTON_BINDINGS=%CPROTON_BUILD%\bindings
+)
+echo PROTON_BINDINGS = %PROTON_BINDINGS%
+
+REM Python & Jython
+set PYTHON_BINDINGS=%PROTON_BINDINGS%\python
+set 
COMMON_PYPATH=%PROTON_HOME%\tests\python:%PROTON_HOM%\proton-c\bindings\python
+set PYTHONPATH=%COMMON_PYPATH%:%PYTHON_BINDINGS%
+set 
JYTHONPATH=%COMMON_PYPATH%:%PROTON_HOM%\proton-j\src\main\resources:%PROTON_JARS%
+set CLASSPATH=%PROTON_JARS%
+
+REM PHP
+set PHP_BINDINGS=%PROTON_BINDINGS%\php
+if EXIST %PHP_BINDINGS% (
+    echo include_path="%PHP_BINDINGS%:%PROTON_HOME%\proton-c\bindings\php" >  
%PHP_BINDINGS%\php.ini
+    echo extension="%PHP_BINDINGS%\cproton.so"                             >> 
%PHP_BINDINGS%\php.ini
+    set PHPRC=%PHP_BINDINGS%\php.ini
+)
+
+REM Ruby
+set RUBY_BINDINGS=%PROTON_BINDINGS%\ruby
+set 
RUBYLIB=%RUBY_BINDINGS%:%PROTON_HOME%\proton-c\bindings\ruby\lib:%PROTON_HOME%\tests\ruby
+
+REM Perl
+set PERL_BINDINGS=%PROTON_BINDINGS%\perl
+set 
PERL5LIB=%PERL5LIB%:%PERL_BINDINGS%:%PROTON_HOME%\proton-c\bindings\perl\lib
+
+REM test applications
+if EXIST %PROTON_HOME%\build\tests\tools\apps\c set 
PATH=%PATH%;%PROTON_HOME%\build\tests\tools\apps\c
+
+if EXIST %PROTON_HOME%\tests\tools\apps\python set 
PATH=%PATH%;%PROTON_HOME%\tests\tools\apps\python
+
+REM test applications
+set PATH=%PATH%;%PROTON_HOME%\tests\python;%PROTON_HOME%\build\proton-c\debug



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to