Commit Graph

278 Commits

Author SHA1 Message Date
Corentin Le Molgat
e737b10a9a archive: Fix Fz archive 2018-07-13 15:23:12 +02:00
Corentin Le Molgat
7f453a0475 archive: unix: Check if protobuf is in lib or lib64 2018-07-13 15:23:11 +02:00
Corentin Le Molgat
5d8c4f0cb1 archive: Add ortools/data/*.h to archive
- needed by jobshop_sat
2018-07-13 14:40:18 +02:00
Corentin Le Molgat
9536db9a98 cc: Fix examples/tests/*.cc
- Add them to test_cc
  except issue173.cc which takes few dozen of seconds
2018-07-13 08:55:40 +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
6485017458 cc: Fix missing port/*.h in install_cc 2018-07-10 11:16:20 +02:00
Corentin Le Molgat
ca6e697788 cc: use MKDIR_P to create the install_cc root dir 2018-07-10 11:16:20 +02:00
Corentin Le Molgat
3085fcbf81 cpp: add FLATZINC_PATH 2018-07-10 11:16:20 +02:00
Corentin Le Molgat
4f24443b17 Move windows tools to tools/win 2018-07-10 11:16:20 +02:00
Corentin Le Molgat
f5f176d496 cpp: Add library path variable 2018-07-05 14:56:04 +02:00
Corentin Le Molgat
b32dafacc6 Makefile: cc java python dotnet become idempotent
- Remove implicit rules
- Fix python obj/swig deps
- Keep intermediate file and dir
- remove MISSING_BUILD_DIRECTORIES
- Use GEN_DIR and GEN_PATH
- Remove GMake SUFFIXES
2018-07-03 22:27:35 +02:00
Corentin Le Molgat
25afec5599 Add test_fz 2018-06-15 13:43:19 +02:00
Laurent Perron
7c8463e76a fix fz compilation on mac 2018-06-15 11:40:37 +02:00
Corentin Le Molgat
c59f4e8a84 Add missing util/*.pb.h to install rules 2018-06-04 17:24:22 +02:00
Corentin Le Molgat
8430b64c61 Add missing flexible_jobshop to cc target 2018-06-01 17:40:55 +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
Laurent Perron
ca579c649f add code samples in C++ for sat 2018-05-30 10:03:49 -07:00
Corentin Le Molgat
6cd8da56ce [CPP] Rework cc to use dynamic dependencies
libortools:
- Rename LD_FLAGS to LDFLAGS
- Update LDFLAGS
- Add install_name to LDFLAGS on MacOS
- use OR_TOOLS_LIBS as target name

libraries:
- Rename OR_TOOLS_LD_FLAGS to OR_TOOLS_LDFLAGS
- Add OR_TOOLS_LNK and OR_TOOLS_LDFLAGS
- add install_name on MacOS

Misc:
- Rework LINK_FLAGS
- Replace ortools$Sgen by $(GEN_DIR)
- Fix install_cc rules
- Update detect_cc 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
6b36617506 Makefile: Fix $S -> / in prerequisite
$S is for Makefile shell cmd not target or prerequisite syntax.
i.e. always use / in path.
2018-05-28 08:08:49 +02:00
Corentin Le Molgat
3605506924 Fix help_cc on windows
- typo tab instead of space
2018-05-04 08:57:28 +02:00
Corentin Le Molgat
db17e75c48 Rework install_cc recipe 2018-04-26 17:59:03 +02:00
Corentin Le Molgat
88639db551 Makefile: Update detect_cc recipe 2018-04-26 17:59:03 +02:00
Corentin Le Molgat
8b34288ea0 Makefile.cpp: fix .PHONY 2018-04-26 17:59:03 +02:00
Corentin Le Molgat
61507da995 Add dynamic lib to OR_TOOLS_LNK 2018-04-26 17:59:03 +02:00
Corentin Le Molgat
8bba9eb62c Refactor build dirs Makefile management 2018-04-18 14:12:22 +02:00
Corentin Le Molgat
699ee5c088 Remove Flatzink bin/parser_main in clean_cc 2018-03-16 16:13:55 +01:00
Corentin Le Molgat
8f69f0b3aa Remove C++ examples in clean_cc 2018-03-16 16:13:55 +01:00
Corentin Le Molgat
1265d1d5b4 Fix clean_cc
Still remains example binaries
2018-03-16 16:13:55 +01:00
Corentin Le Molgat
11a22957a4 Fix echo blankline on windows 2018-03-06 15:03:40 +01:00
Corentin Le Molgat
9b41cae639 Update detect_* targets 2018-03-06 14:34:41 +01:00
Corentin Le Molgat
6eff7e4476 Add newline at end of each help_* targets 2018-03-06 14:23:47 +01:00
Laurent Perron
a4f4c2d5a6 move check_third_party into ortoolslib target; avoid rebuilding C# all the time 2018-03-06 11:42:06 +01:00
Corentin Le Molgat
8bfd7fb96e Add DEPENDENCIES_LNK to detect_cc 2018-03-05 09:17:28 +01:00
Corentin Le Molgat
51b56430f5 Rework Makefile help 2018-03-05 09:17:28 +01:00
Corentin Le Molgat
80e8676b21 Add detect_cc 2018-03-05 09:17:28 +01:00
Corentin Le Molgat
32f5c8c52a Add help_cc target 2018-02-28 15:20:56 +01:00
Laurent Perron
b091adaf3f improve make clean* 2017-11-14 14:28:23 +01:00
Laurent Perron
e14ee86de3 move rcpsp parser to ortools/data; continue working on SAT 2017-11-07 15:45:52 +01:00
Laurent Perron
c8ff0ffc03 regenerate lex/yacc files 2017-09-08 13:20:30 +02:00
Laurent Perron
bada79303d clean objs/port/ 2017-08-02 14:22:23 -07:00
Laurent Perron
9c92556791 minor adjustments with internal code 2017-08-02 14:15:55 -07:00
Laurent Perron
4033496f0e fix compilation of fz 2017-07-01 10:26:01 +02:00
Laurent Perron
40ce0077f5 cp_model (sat) flatzinc solver 2017-05-29 14:49:34 +02:00
Laurent Perron
66b8d23079 move src to ortools; simplified python generation; remove some namespaces in the ortools/base helper files 2017-04-26 17:30:25 +02:00
Laurent Perron
c9b8b7b3e6 Fix routing deps 2017-04-09 21:56:47 +02:00
Laurent Perron
2cf3850457 remove dependency on flex/bison; store golden parser file in github 2017-03-31 09:58:07 +02:00
Driss Lahlou
9ab847c540 add cvrptw_with_breaks in archive 2017-01-26 21:39:17 +01:00
Driss Lahlou
66b017de36 add cvrptw_with_breaks 2017-01-26 21:22:42 +01:00