Commit Graph

300 Commits

Author SHA1 Message Date
Corentin Le Molgat
4d76f05c06 manylinux build: fix make pypi_archive 2018-07-18 17:11:35 +02:00
Corentin Le Molgat
77645fa402 docker: Add PKG_CONFIG_PATH 2018-07-18 16:20:09 +02:00
Corentin Le Molgat
67a19ef4ea docker: rework manylinux dockerfile 2018-07-18 15:58:24 +02:00
Corentin Le Molgat
84ceaf526b delivery: Fix build.log 2018-07-18 15:58:24 +02:00
Corentin Le Molgat
71044a5142 docker: rework python package generation 2018-07-18 10:35:15 +02:00
Corentin Le Molgat
c5a2a6f216 build delivery win: remove nuget check
now use `dotnet pack` or `dotnet nuget`
2018-07-18 10:34:31 +02:00
Corentin Le Molgat
4c76ba7927 Update release tools 2018-07-18 10:33:23 +02:00
Corentin Le Molgat
e92b949e11 Update build delivery unix
only target python2 and python3 on unix
i.e. version will vary according to distro where it is run...
2018-07-18 10:21:47 +02:00
Corentin Le Molgat
40c10beaa1 Add build delivery mac:
only target python2.7 and python3.7 which are the current version on brew
2018-07-18 10:20:44 +02:00
Corentin Le Molgat
e7d78905e6 fix build delivery script on unix 2018-07-17 21:47:09 +02:00
Corentin Le Molgat
7f6dcf4b31 Rework Docker
- Add ubuntu-18.04
- add pkg-config to ubuntu(s)
- Rework Docker Makefile
- Add test job to verify archive
  - Add cc.Dockerfile
  - Add java.Dockerfile
  - Add dotnet.Dockerfile
- Build ortools in docker_<lang>
- Build archive and fz_archive in two separate containers
- Add dependencies to makefiles when building docker image
- Suppress previous archive if any
- Improve docker build by using export/archive when building language images
- Reduce build context using export/$* instead of .
  note: when running `docker build ... foo`, all files in `foo` are recursively
  send to the docker daemon before building. Since we have tons of Go of images
  it could take time to "upload".
2018-07-17 15:08:13 +02:00
Corentin Le Molgat
cb3972c6db java: use J for .jar extension 2018-07-17 15:03:10 +02:00
Corentin Le Molgat
d5d4b48657 dotnet: add examples to test_dotnet 2018-07-17 15:03:10 +02:00
Laurent Perron
6b99d86fac add docker image for the minizinc challenge 2018-07-16 11:52:57 -07:00
Corentin Le Molgat
9eef8edf59 Makefile.cc.java.dotnet: trim so ifeq() 2018-07-13 19:11:16 +02:00
Corentin Le Molgat
8e651f5979 Release win: replace csharp/fsharp by dotnet 2018-07-13 15:23:11 +02:00
Corentin Le Molgat
5339045842 Win Release: Add Python3.7 support 2018-07-13 14:40:19 +02:00
Corentin Le Molgat
c48e626fc3 archive: Fix compilation of frequency_assignment_problem
- need custom rule to use $(FAP_LNK)
2018-07-13 14:40:19 +02:00
Corentin Le Molgat
6cd212b442 dotnet: rework CLR_KEYFILE management
- Move tools/netstandard to tools/dotnet
- Create Strong Name Keyfile using dotnet.
- Protect against space in DOTNET_BIN
2018-07-13 08:55:41 +02:00
Corentin Le Molgat
13b8633df4 dotnet: netcoreapp 2.0 -> 2.1
- On netcoreapp2.0 seems to have some issue with the "current working dir".
2018-07-13 08:55:41 +02:00
Corentin Le Molgat
59db6cb2d8 cpp: Cleaning cpp rules
- Use pattern rules
- Remove dead code (CP_BINARIES and LP_BINARIES doesn't exist anymore)
- Expose fz and test_fz in help_cc
- Relayout makefile.cc.mk
- Move CVRP Problem rule before generic ones (needed for make < 4.0)
2018-07-13 08:55:40 +02:00
Corentin Le Molgat
ef5a2a2775 Archive: Rework cc/java/dotnet (Fix #723)
- Rename [Makefile|Readme].cc.java.dotnet
- Add missing dynamic lib on unix archive (Fix #723)
- Add rpah to lib64 for centos
- Use CXX, CXXFLAGS and LDFLAGS
  src: https://www.gnu.org/software/make/manual/make.html#Catalogue-of-Rules
- Add which.exe to archive on windows
- Add test_archive to .PHONY
- Add detect_archive
2018-07-10 15:45:04 +02:00
Corentin Le Molgat
4f24443b17 Move windows tools to tools/win 2018-07-10 11:16:20 +02:00
Corentin Le Molgat
e809e085e8 Cleanup: move delivery scripts to tools/release 2018-07-10 11:16:19 +02:00
Corentin Le Molgat
ddf7995827 Make generate_deps.sh output identical everywhere
- By default MacOS and gLinux don't behave the same concerning '_' & '-' when sorting
2018-07-04 09:13:32 +02:00
Corentin Le Molgat
a225cf63c8 Update generate_deps.h
- Create empty rules for all source file
  - Add Empty recipe for ALL ortools/*/*.h
  - Add Empty recipe for ALL ortools/*/*.cc
  - Add Empty recipe for ALL ortools/*/*.proto
- Compute .$O prerequisite using .cc AND .h
- Add all pb.h for each associated *_DEPS
- Add all pb.h as prerequisite to associated .$O object
- Generate_deps on MacOS
- Add missing "-e" to echo
- Cleaning comments
- Remove uneeded space before *.cc prerequisite
2018-07-03 22:37:09 +02:00
Corentin Le Molgat
7b08d73133 Update Dockerfile 2018-06-06 10:59:21 +02:00
Corentin Le Molgat
18c1fdd7a7 Fix mono name on OSX in archive Makefile (Fix #712) 2018-06-05 14:44:53 +02:00
Corentin Le Molgat
efc46ca1bf Add documentation to C++ and Python Package
For C++ doc:
/usr/share/doc/ortools
ref: https://www.debian.org/doc/manuals/debian-reference/debian-reference.en.txt

For Python doc:
ref: https://www.python.org/dev/peps/pep-0427/#the-data-directory
ref: https://www.python.org/dev/peps/pep-0491/#install-paths
/!\ Please not bdist_wheel command ignore MANIFEST.in and
 there is no 'doc_dir' option in class Distribution cf.
https://github.com/pypa/setuptools/blob/master/setuptools/dist.py
2018-05-31 15:12:02 +02:00
Corentin Le Molgat
85bd99092b [PYTHON] Rework to use dynamic dependencies
- Fix DYNAMIC_LD on MacOS
- Fixup @rpath in python wrapper
- Rework clean_python target
- Cleaning rpy target
- Echo test_python rules
- Add all *vrp* samples to test_python
- Rework pypi_archive target
  - Copy shared library to python tempDir
  - Update setup.py
- Echo install_python rules (i.e. remove of @)
- Add uninstall_python target
- Update detect_python target
2018-05-28 08:08:49 +02:00
Corentin Le Molgat
02877e28f1 [UNIX][DEPS] Build dependencies as dynamic libs
Unix:
- Rename install_directories rule
  this target creates dependencies/install dir not ortools install dir
- replace $(LIB_SUFFIX) by $L to be consistent with $E and $O suffix
- fix rpath, no need anymore patchelf
  -> remove prerequisite $(PATCHELF) in install_cc
- use build_cmake as build directory
  note: MacOS is case insensitive when creating directory
  and bazel file is named BUILD -> `mkdir build` won't work
- Fix CMD_LNK on mac
- Fix MacOS LINK_FLAGS
- MacOS also use LIB_DIR = lib

Win:
- Fix windows lib suffix $L

Protobuf:
- Need to use PROTOC (like MONO) to add LD_LIBRARY_PATH hack
  -> PROTOC = LD_LIBARY_PATH="..." protoc
  -> replace $(PROTOBUF_DIR)/bin/protoc by $(PROTOC)
- Remove uneeded PROTOBUF_DIR defs
- Apply patch to protobuf to use @rpath on MacOS
- Add rpath to protobuf install rules

Coin-OR
- Use coin-or github repos mirror instead of the svn repo (Fix #379)
- Use the splited Cbc (CoinUtils, Osi, Clp, Cgl, Cbc)
note: usually distro use this layout cf https://repology.org/metapackage/coin-or-cbc/badges
- Fix rpath for all coin-or libraries at post-install using patchelf (linux) or otools (osx)
2018-05-28 08:08:49 +02:00
Corentin Le Molgat
b44277aff6 Fix protoc call on windows
Need to use PROTOBUF_PROTOC_INC instead of PROTOBUF_INC
because protoc don't understand /Ipath windows style for include dirs
2018-05-04 10:02:02 +02:00
Laurent Perron
3656e78877 fix jssp proto compilation 2018-04-19 11:33:20 +02:00
Corentin Le Molgat
1292f58e7b Fix wheel pure lib generation (#616) 2018-03-08 17:52:29 +01:00
Corentin Le Molgat
547663ff78 Rework tools\build_delivery_win.cmd (#613) 2018-03-07 16:31:11 +01:00
Corentin Le Molgat
03c9749a8d Rework build_delivery_unix.sh (#613) 2018-03-07 16:31:11 +01:00
Corentin Le Molgat
aa6d614c90 Fix Python2.7 setup.py (#551) 2018-03-07 13:35:57 +01:00
Corentin Le Molgat
79f01620e0 Fix Docker delivery targets (#609)
- missing wget need to download Cbc
2018-03-06 17:09:33 +01:00
Corentin Le Molgat
c79da1fd3c Fix debian-9 docker build (#606) 2018-03-06 10:52:09 +01:00
Corentin Le Molgat
a9ab55e3e6 Rework AppVeyor CI jobs 2018-02-28 15:20:56 +01:00
Corentin Le Molgat
f3c4a017d2 Add publish_delivery_win.cmd 2018-02-27 13:42:22 +01:00
Corentin Le Molgat
95bdd4c1cc Rework build_delivery_win.cmd 2018-02-27 13:42:22 +01:00
Corentin Le Molgat
b62e978656 Update build_delivery_mac 2018-02-27 13:42:22 +01:00
Corentin Le Molgat
80f5ebf789 Update Google.Protobuf.dll to 3.5.1 net45 2018-02-27 13:42:22 +01:00
ziad
2f368aaa60 add sat folder to netstandard library
fix signing key path and target
2018-02-08 06:10:06 -08:00
ziad
6207fbed49 fix bugs in osx build
create tool to generate signing key when sn.exe is not present
add build info to readme
add DOTNET_INSTALL_PATH to Makefile.local and try to detect
2018-02-08 05:41:08 -08:00
ziad
06843c9e01 create readme for .net standard
update archive makefile to include .netstandard binaries and examples
fix .netstandard version and signing
2018-02-08 01:23:13 -08:00
ziad
5e9268e1c8 basic support for .netstandard libraries 2018-02-06 06:11:21 -08:00
Laurent Perron
238386a0f9 export util/optional_boolean in python module 2018-01-16 14:35:25 +01:00
Corentin Le Molgat
34d94e9983 Fix _pywrapsat.so and _pywraprcpsp.so rpath on linux (#556) 2018-01-10 23:16:18 +01:00