├── .gitignore ├── .merlin ├── .ocp-indent.conf ├── .travis.yml ├── AUTHORS.md ├── CHANGES.txt ├── COPYING.txt ├── INSTALL.md ├── Makefile ├── README.md ├── TODO.txt ├── _headache.config ├── _header ├── _oasis ├── _tags ├── appveyor.yml ├── configure ├── deps.ml ├── doc-dist.sh ├── doc ├── CONTRIBUTE.md ├── FAQ.md ├── HACKING.md ├── MANUAL.mkd ├── QUICKSTART.md └── images │ ├── background-badge.png │ ├── logo.svg │ └── powered-by-oasis.svg ├── examples ├── custom │ ├── LICENSE │ ├── TopMakefile │ ├── _oasis │ ├── myconfigure │ ├── myconfigure.bat │ └── src │ │ ├── META │ │ ├── bar.ml │ │ ├── bar.mli │ │ ├── foo.ml │ │ └── foo.mli ├── findlib │ ├── LICENSE │ ├── _oasis │ └── src │ │ ├── META │ │ ├── bar.ml │ │ ├── bar.mli │ │ ├── foo.ml │ │ └── foo.mli ├── flags │ ├── LICENSE │ ├── _oasis │ └── src │ │ ├── simplelib │ │ ├── Bar.ml │ │ ├── Conf.ml.ab │ │ ├── Foo.ml │ │ └── META │ │ └── simplelibext │ │ ├── BarExt.ml │ │ ├── FooExt.ml │ │ └── META ├── interdepend-libraries │ ├── _oasis │ └── src │ │ ├── execa │ │ └── Main.ml │ │ ├── liba │ │ ├── A.ml │ │ └── intern │ │ │ ├── A2.ml │ │ │ ├── A_lexer.mll │ │ │ └── A_parser.mly │ │ ├── libb │ │ └── B.ml │ │ ├── libc │ │ └── C.ml │ │ ├── libd │ │ └── D.ml │ │ └── libe │ │ └── E.ml ├── oasis │ ├── cryptokit.oasis │ └── uuidm.oasis ├── object │ ├── _oasis │ ├── src1 │ │ ├── single.ml │ │ └── single.mli │ └── src2 │ │ ├── m1.ml │ │ ├── m2.ml │ │ └── m2.mli ├── ocamlbuild │ ├── _oasis │ ├── myocamlbuild.ml │ └── src │ │ └── test.ml ├── order-matter │ ├── _oasis │ └── src │ │ ├── bar │ │ └── Bar.ml │ │ ├── baz │ │ └── Baz.ml │ │ └── foo │ │ └── Foo.ml ├── packedlib │ ├── LICENSE │ ├── _oasis │ ├── src │ │ ├── Baz.ml │ │ ├── bar.ml │ │ ├── bar.mli │ │ ├── foo.ml │ │ └── foo.mli │ └── test │ │ └── main.ml ├── plugins │ ├── oasis-plugin-print-hello │ │ ├── _oasis │ │ └── src │ │ │ └── lib │ │ │ └── oasis-plugin-print-hello │ │ │ └── OASISPluginPrintHello.ml │ ├── oasis-plugin-versionfile │ │ ├── _oasis │ │ ├── myocamlbuild.ml │ │ └── src │ │ │ └── lib │ │ │ └── oasis-plugin-versionfile │ │ │ ├── MANUAL-template.mkd │ │ │ ├── OASISPluginVersionFile.ml │ │ │ ├── OASISPluginVersionFileConf.ml.ab │ │ │ ├── OASISPluginVersionFileData.mlify │ │ │ └── OASISPluginVersionFileGettext.ml │ └── with-plugin-versionfile │ │ └── _oasis ├── simplelib │ ├── LICENSE │ ├── _oasis │ └── src │ │ ├── META │ │ ├── bar.ml │ │ ├── bar.mli │ │ ├── foo.ml │ │ └── foo.mli ├── syntax-camlp4 │ ├── _oasis │ ├── src │ │ └── pi.ml │ └── test │ │ └── data │ │ ├── foo.ml │ │ └── foo.ml.exp ├── with-c │ ├── LICENSE │ ├── _oasis │ └── src │ │ ├── A.ml │ │ ├── A_header.h │ │ ├── A_stub.c │ │ ├── main.ml │ │ ├── main_custom.ml │ │ ├── main_custom_stub.c │ │ ├── main_native.ml │ │ ├── main_native_stub.c │ │ └── main_stub.c ├── with-data │ ├── LICENSE.txt │ ├── _oasis │ └── src │ │ ├── test.html │ │ ├── test.ml │ │ └── test.txt ├── with-interface-module │ ├── _oasis │ └── src │ │ ├── pim_impl.ml │ │ ├── pim_impl.mli │ │ ├── pim_intf.mli │ │ └── pim_types.mli ├── with-subpackage │ ├── _oasis │ └── src │ │ ├── A.ml │ │ ├── B.ml │ │ ├── main.ml │ │ └── syntax │ │ └── pa_test.ml └── with-test │ ├── LICENSE.txt │ ├── _oasis │ └── src │ ├── test.ml │ └── test.mli ├── myocamlbuild.ml ├── oasis.install ├── oasis.opam ├── setup.ml ├── src ├── OASISBuiltinPlugins.ml ├── api-oasis.odocl ├── base │ ├── BaseArgExt.ml │ ├── BaseArgExt.mli │ ├── BaseBuilt.ml │ ├── BaseBuilt.mli │ ├── BaseCheck.ml │ ├── BaseCheck.mli │ ├── BaseCompat.ml │ ├── BaseContext.ml │ ├── BaseContext.mli │ ├── BaseCustom.ml │ ├── BaseCustom.mli │ ├── BaseData.mli │ ├── BaseData.mlify │ ├── BaseDoc.ml │ ├── BaseDoc.mli │ ├── BaseDynVar.ml │ ├── BaseDynVar.mli │ ├── BaseEnv.ml │ ├── BaseEnv.mli │ ├── BaseEnvLight.ml │ ├── BaseEnvLight.mli │ ├── BaseFileAB.ml │ ├── BaseFileAB.mli │ ├── BaseGenerate.ml │ ├── BaseGenerate.mli │ ├── BaseLog.ml │ ├── BaseLog.mli │ ├── BaseMessage.ml │ ├── BaseMessage.mli │ ├── BaseOCamlcConfig.ml │ ├── BaseOCamlcConfig.mli │ ├── BaseSetup.ml │ ├── BaseSetup.mli │ ├── BaseStandardVar.ml │ ├── BaseStandardVar.mli │ ├── BaseSys.mod │ ├── BaseSysBundle.mod │ ├── BaseSysEnvironment.mod │ ├── BaseTest.ml │ ├── BaseTest.mli │ ├── base.mldylib │ ├── base.mllib │ ├── compiled_setup_ml.ml │ ├── dynrun.ml │ └── dynrun_for_release.ml ├── builtin-plugins.mldylib ├── builtin-plugins.mllib ├── cli │ ├── CLIArgExt.ml │ ├── CLICommon.ml │ ├── CLICommon.mli │ ├── CLIData.mlify │ ├── CLIPager.ml │ ├── CLIPluginLoader.ml │ ├── CLISubCommand.ml │ ├── CLISubCommand.mli │ ├── Check.ml │ ├── CheckHelp.mkd │ ├── Help.ml │ ├── HelpHelp.mkd │ ├── Main.ml │ ├── MainHelp.mkd │ ├── Manual.ml │ ├── ManualHelp.mkd │ ├── Query.ml │ ├── QueryHelp.mkd │ ├── Query_lexer.mll │ ├── Query_parser.mly │ ├── Query_types.ml │ ├── Quickstart.ml │ ├── QuickstartHelp.mkd │ ├── Setup.ml │ ├── SetupClean.ml │ ├── SetupCleanHelp.mkd │ ├── SetupDev.ml │ ├── SetupDevHelp.mkd │ ├── SetupHelp.mkd │ ├── Version.ml │ ├── VersionHelp.mkd │ ├── cli.mldylib │ └── cli.mllib ├── dynrun │ ├── OASISDynRun.ml │ ├── dynrun.mldylib │ └── dynrun.mllib ├── ext │ ├── README.txt │ └── plugin-loader │ │ ├── README.txt │ │ ├── src │ │ ├── META │ │ ├── PluginLoader.ml │ │ ├── plugin-loader.mldylib │ │ └── plugin-loader.mllib │ │ └── test │ │ ├── TestLoader.ml │ │ └── data │ │ ├── PluginLoaderMain.ml │ │ └── findlib │ │ ├── plugin1 │ │ ├── META │ │ ├── plugin1.ml │ │ ├── plugin1.mldylib │ │ └── plugin1.mllib │ │ ├── plugin2 │ │ ├── META │ │ ├── plugin2.ml │ │ ├── plugin2.mldylib │ │ └── plugin2.mllib │ │ ├── plugin3 │ │ ├── META │ │ ├── plugin3.ml │ │ ├── plugin3.mldylib │ │ └── plugin3.mllib │ │ └── pluginloaderLib │ │ ├── META │ │ ├── pluginloaderLib.ml │ │ ├── pluginloaderLib.mldylib │ │ └── pluginloaderLib.mllib ├── oasis │ ├── FormatExt.ml │ ├── FormatExt.mli │ ├── MANUAL-template.mkd │ ├── META │ ├── OASISAst.ml │ ├── OASISAst_lexer.mll │ ├── OASISAst_parser.mly │ ├── OASISAst_types.ml │ ├── OASISBuildSection.ml │ ├── OASISBuildSection.mli │ ├── OASISBuildSection_intern.ml │ ├── OASISCheck.ml │ ├── OASISConf.ml.ab │ ├── OASISContext.ml │ ├── OASISContext.mli │ ├── OASISCustom.ml │ ├── OASISData.mlify │ ├── OASISDataNotation.ml │ ├── OASISDocument.ml │ ├── OASISDocument.mli │ ├── OASISDocument_intern.ml │ ├── OASISExec.ml │ ├── OASISExec.mli │ ├── OASISExecutable.ml │ ├── OASISExecutable.mli │ ├── OASISExecutable_intern.ml │ ├── OASISExpr.ml │ ├── OASISExpr.mli │ ├── OASISFeatures.ml │ ├── OASISFileSystem.ml │ ├── OASISFileSystem.mli │ ├── OASISFileTemplate.ml │ ├── OASISFileTemplate.mli │ ├── OASISFileUtil.ml │ ├── OASISFileUtil.mli │ ├── OASISFindlib.ml │ ├── OASISFindlib.mli │ ├── OASISFlag.ml │ ├── OASISFlag.mli │ ├── OASISFlag_intern.ml │ ├── OASISFormat.ml │ ├── OASISGettext.ml │ ├── OASISGettext.mli │ ├── OASISGraph.ml │ ├── OASISHelp.ml │ ├── OASISHostPath.ml │ ├── OASISHostPath.mli │ ├── OASISLibrary.ml │ ├── OASISLibrary.mli │ ├── OASISLibrary_intern.ml │ ├── OASISLicense.ml │ ├── OASISLicense.mli │ ├── OASISLicense_lexer.mll │ ├── OASISLicense_parser.mly │ ├── OASISLicense_types.ml │ ├── OASISMessage.ml │ ├── OASISMessage.mli │ ├── OASISMutex.ml │ ├── OASISObject.ml │ ├── OASISObject.mli │ ├── OASISObject_intern.ml │ ├── OASISPackage.ml │ ├── OASISPackage.mli │ ├── OASISPackage_intern.ml │ ├── OASISParse.ml │ ├── OASISParse.mli │ ├── OASISPath_intern.ml │ ├── OASISPlugin.ml │ ├── OASISPlugin.mli │ ├── OASISQuickstart.ml │ ├── OASISSchema.ml │ ├── OASISSchema.mli │ ├── OASISSchema_intern.ml │ ├── OASISSection.ml │ ├── OASISSection.mli │ ├── OASISSection_intern.ml │ ├── OASISSetupUpdate.ml │ ├── OASISSourcePatterns.ml │ ├── OASISSourcePatterns.mli │ ├── OASISSourceRepository.ml │ ├── OASISSourceRepository.mli │ ├── OASISSourceRepository_intern.ml │ ├── OASISString.ml │ ├── OASISSys.mod │ ├── OASISSysBundle.mod │ ├── OASISSysLight.mod │ ├── OASISTest.ml │ ├── OASISTest.mli │ ├── OASISTest_intern.ml │ ├── OASISText.ml │ ├── OASISTypes.ml │ ├── OASISTypes.mli │ ├── OASISUnixPath.ml │ ├── OASISUnixPath.mli │ ├── OASISUtils.ml │ ├── OASISUtils.mli │ ├── OASISValues.ml │ ├── OASISValues.mli │ ├── OASISValues_lexer.mll │ ├── OASISVersion.ml │ ├── OASISVersion.mli │ ├── OASISVersion_lexer.mll │ ├── OASISVersion_parser.mly │ ├── OASISVersion_types.ml │ ├── PropList.ml │ ├── PropList.mli │ ├── oasis.mldylib │ └── oasis.mllib ├── plugins │ ├── custom │ │ ├── CustomData.mlify │ │ ├── CustomPlugin.ml │ │ ├── CustomSys.mod │ │ └── MANUAL-template.mkd │ ├── extra │ │ ├── META │ │ │ ├── MANUAL-template.mkd │ │ │ ├── METAData.mlify │ │ │ └── METAPlugin.ml │ │ ├── camlidl.ml │ │ ├── devfiles │ │ │ ├── DevFilesData.mlify │ │ │ ├── DevFilesPlugin.ml │ │ │ ├── MANUAL-template.mkd │ │ │ └── configure │ │ ├── docbook.ml │ │ └── stdfiles │ │ │ ├── INSTALL.txt │ │ │ ├── MANUAL-template.mkd │ │ │ ├── StdFilesData.mlify │ │ │ └── StdFilesPlugin.ml │ ├── internal │ │ ├── InternalConfigurePlugin.ml │ │ ├── InternalData.mlify │ │ ├── InternalId.ml │ │ ├── InternalInstallPlugin.ml │ │ ├── InternalSys.mod │ │ └── MANUAL-template.mkd │ ├── none │ │ ├── MANUAL-template.mkd │ │ ├── NoneData.mlify │ │ ├── NonePlugin.ml │ │ └── NoneSys.mod │ ├── ocamlbuild │ │ ├── MANUAL-template.mkd │ │ ├── MyOCamlbuildBase.ml │ │ ├── MyOCamlbuildFindlib.ml │ │ ├── MyOCamlbuildSys.mod │ │ ├── OCamlbuildCommon.ml │ │ ├── OCamlbuildData.mlify │ │ ├── OCamlbuildDocPlugin.ml │ │ ├── OCamlbuildId.ml │ │ ├── OCamlbuildPlugin.ml │ │ └── OCamlbuildSys.mod │ └── omake │ │ ├── MANUAL-template.mkd │ │ ├── OMakeData.mlify │ │ ├── OMakeEquip.ml │ │ ├── OMakeFields.ml │ │ ├── OMakeFormat.ml │ │ ├── OMakePlugin.ml │ │ ├── OMakeSys.mod │ │ ├── OMakefile_nontop.om │ │ ├── OMakefile_top.om │ │ ├── OMakeroot.om │ │ ├── README.md │ │ └── oasis_lib.om └── tools │ ├── bench │ └── Bench.ml │ └── ci │ ├── build.bash │ ├── jenkins.bash │ ├── opam-build-revdeps.bash │ ├── opam.bash │ ├── packages.bash │ └── travis.bash └── test ├── data ├── TestBaseCompat │ ├── A.ml │ ├── _oasis-0.3 │ ├── _oasis-0.4 │ └── setup-0.4.ml ├── TestBaseLog │ ├── unix │ │ └── setup.log │ └── win32 │ │ └── setup.log ├── TestBasic │ └── dir.data ├── TestFileTemplate │ ├── filetemplate1.txt │ ├── filetemplate1.txt-exp │ ├── filetemplate2.txt │ ├── filetemplate2.txt-exp │ ├── filetemplate3.txt │ ├── filetemplate3.txt-exp │ ├── filetemplate4.txt-exp │ └── filetemplate5.txt-exp ├── TestFull │ ├── 1level │ │ ├── A.ml │ │ ├── _oasis │ │ └── main.ml │ ├── bug1239 │ │ ├── _oasis │ │ └── src │ │ │ ├── bar │ │ │ └── a.ml │ │ │ ├── baz │ │ │ └── baz.ml │ │ │ └── m.ml │ ├── bug1358 │ │ ├── _oasis │ │ └── foo.ml │ ├── bug1473 │ │ ├── _oasis │ │ └── foo.ml │ ├── bug571 │ │ ├── A.ml │ │ └── _oasis │ ├── bug588 │ │ ├── _oasis │ │ ├── _tags_manual │ │ ├── libtest.ml │ │ └── test.ml │ ├── bug619 │ │ └── _oasis │ ├── bug623 │ │ ├── _oasis │ │ └── a.ml │ ├── bug738 │ │ ├── _oasis │ │ ├── myocamlbuild.ml │ │ └── src │ │ │ └── foo.bar │ ├── bug791 │ │ ├── _oasis │ │ ├── src │ │ │ ├── A.ml │ │ │ └── lib │ │ │ │ └── B.ml │ │ └── test │ │ │ └── C.ml │ ├── bug823 │ │ ├── _oasis │ │ ├── postconf.sh │ │ └── preconf.sh │ ├── bug938 │ │ ├── _oasis │ │ └── postconf.sh │ ├── bug982 │ │ ├── A.ml │ │ ├── Makefile.setup-data │ │ ├── _oasis │ │ └── test-setup-data.sh │ ├── bugClib │ │ ├── _oasis │ │ ├── foo.ml │ │ └── src │ │ │ ├── bar.ml │ │ │ └── fooC.c │ ├── cppcc │ │ ├── _oasis │ │ ├── cppcc.ml │ │ ├── myocamlbuild.ml │ │ └── testc++.c │ ├── create-parent-dir │ │ └── _oasis │ ├── customdoc │ │ ├── A.ml │ │ ├── Makefile │ │ └── _oasis │ ├── dev │ │ ├── A.ml │ │ ├── _oasis.v1 │ │ ├── _oasis.v2 │ │ ├── _tags │ │ └── main.ml │ ├── dynlink │ │ ├── _oasis │ │ ├── dyn_loaded.ml │ │ ├── dyn_loaded_ext.ml │ │ ├── entry_point.ml │ │ └── main.ml │ ├── dynrun_for_release │ │ ├── _oasis │ │ └── foo.ml │ ├── flag-ccopt │ │ ├── A.ml │ │ └── _oasis │ ├── issue107 │ │ ├── _oasis │ │ └── main.ml │ ├── no-install-doc │ │ └── _oasis │ ├── recurselib │ │ ├── _oasis │ │ └── src │ │ │ └── binary.ml │ ├── ver0.3 │ │ ├── _oasis │ │ └── touch.ml │ └── with-cclib │ │ ├── _oasis │ │ └── src │ │ ├── stringprep.ml │ │ ├── stringprep_stubs.c │ │ └── test_compile.ml ├── TestOASISLibrary │ └── source_patterns │ │ ├── L1.ml │ │ ├── L2.mli │ │ ├── L3.mlify │ │ └── _oasis ├── TestOASISObject │ └── source_patterns │ │ ├── O1.eliom │ │ ├── O1.eliomi │ │ ├── O2.ml │ │ └── _oasis ├── TestOASISParse │ ├── LICENSE │ ├── bug1236.oasis │ ├── bug1239.oasis │ ├── bug1295.oasis │ ├── bug571.oasis │ ├── comment-in-field.oasis │ ├── src │ │ ├── stuff │ │ │ ├── A.ml │ │ │ ├── B.mli │ │ │ ├── C.ml │ │ │ └── META │ │ └── toto.ml │ ├── test-extra-blanks.oasis │ ├── test-freeform.oasis │ ├── test1.oasis │ ├── test10.oasis │ ├── test11.oasis │ ├── test12.oasis │ ├── test13.oasis │ ├── test14.oasis │ ├── test15.oasis │ ├── test16.oasis │ ├── test2.oasis │ ├── test3.oasis │ ├── test4.oasis │ ├── test5.oasis │ ├── test6.oasis │ ├── test7.oasis │ ├── test8.oasis │ └── test9.oasis ├── TestPluginDevFiles │ ├── compiled_setup_ml │ │ ├── _oasis │ │ └── foo.ml │ └── test-devfiles1.oasis ├── TestPluginInternal │ ├── findlib_directory │ │ ├── L.ml │ │ ├── O.ml │ │ └── _oasis │ └── findlib_extra_files │ │ ├── L.ml │ │ └── _oasis ├── TestPluginOCamlbuild │ ├── bug1659-ocamlbuild-support-plugins │ │ ├── A.ml │ │ ├── _oasis │ │ └── myocamlbuild.ml │ ├── env-tags │ │ ├── A.ml │ │ ├── _oasis │ │ └── myocamlbuild.ml │ ├── external-c-rebuild │ │ ├── A.ml │ │ ├── B.ml │ │ ├── _oasis │ │ ├── c_source.c │ │ └── header.h │ ├── missing-source │ │ ├── A.ml │ │ ├── B.mli │ │ ├── C.ml │ │ └── _oasis │ ├── pr61-pass-thread-to-C-files │ │ ├── _oasis │ │ └── src │ │ │ ├── dummy.ml │ │ │ └── test.c │ ├── pr63-no-automatic-syntax │ │ ├── A.ml │ │ ├── _oasis │ │ └── _tags │ ├── set-ocamlfind │ │ ├── _oasis │ │ └── main.ml │ └── use-ocamlfind │ │ ├── A.ml │ │ └── _oasis ├── TestPluginOMake │ ├── bug1736 │ │ ├── _oasis │ │ ├── liba │ │ │ ├── META │ │ │ └── mod1.ml │ │ ├── libb │ │ │ ├── META │ │ │ └── mod2.ml │ │ └── main.ml │ ├── bug1737 │ │ ├── _oasis │ │ └── liba │ │ │ ├── META │ │ │ └── modules │ │ │ └── mod1.ml │ ├── bug1747 │ │ ├── _oasis │ │ ├── liba │ │ │ ├── META │ │ │ └── mod1.ml │ │ └── main.ml │ ├── complex │ │ ├── _oasis │ │ └── src │ │ │ ├── exec │ │ │ ├── x1.ml │ │ │ └── x2.ml │ │ │ ├── liba │ │ │ ├── a1.ml │ │ │ └── a2.ml │ │ │ ├── libb │ │ │ └── B1.ml │ │ │ ├── libc_ │ │ │ ├── c1.ml │ │ │ └── c1.mli │ │ │ ├── libwithc │ │ │ ├── p.ml │ │ │ └── pc.c │ │ │ └── packedlib │ │ │ └── q.ml │ ├── github105 │ │ ├── _oasis │ │ ├── caller.ml │ │ ├── liba │ │ │ ├── META │ │ │ ├── liba.mli │ │ │ └── mod1.ml │ │ ├── libb │ │ │ ├── META │ │ │ └── mod2.ml │ │ └── main.ml │ ├── noocamlversion.oasis │ ├── ocamlversion312.oasis │ ├── ocamlversion401.oasis │ ├── ocamlversion402.oasis │ └── simplelib │ │ ├── LICENSE │ │ ├── _oasis │ │ └── src │ │ ├── META │ │ ├── bar.ml │ │ ├── bar.mli │ │ ├── foo.ml │ │ └── foo.mli ├── TestPluginStdFiles │ ├── oasis │ │ ├── AUTHORS.md.exp │ │ ├── INSTALL.md.exp │ │ ├── README.md.exp │ │ ├── _oasis │ │ └── foo.ml │ └── remove │ │ ├── AUTHORS.txt.fst │ │ ├── INSTALL.txt.fst │ │ ├── README.txt.fst │ │ ├── README.txt.snd │ │ └── _oasis └── TestQuery │ ├── test1.oasis │ └── test10.oasis ├── fake-ocamlfind └── FakeOCamlfind.ml ├── ounit.conf ├── test-common ├── META ├── TestCommon.ml ├── TestFullUtils.ml ├── test-common.mldylib └── test-common.mllib ├── test-devel ├── TestDevel.ml └── TestSelfCompile.ml ├── test-main ├── Test.ml ├── TestBaseCompat.ml ├── TestBaseEnv.ml ├── TestBaseLog.ml ├── TestBasic.ml ├── TestExamples.ml ├── TestFileTemplate.ml ├── TestFull.ml ├── TestLicense.ml ├── TestOASISAst.ml ├── TestOASISFileSystem.ml ├── TestOASISLibrary.ml ├── TestOASISObject.ml ├── TestOASISParse.ml ├── TestOASISSourcePatterns.ml ├── TestOASISString.ml ├── TestOASISText.ml ├── TestOASISValues.ml ├── TestPluginDevFiles.ml ├── TestPluginInternal.ml ├── TestPluginMETA.ml ├── TestPluginOCamlbuild.ml ├── TestPluginStdFiles.ml ├── TestPropList.ml ├── TestQuery.ml ├── TestValues.ml └── TestVersion.ml ├── test-omake ├── TestOMake.ml └── TestPluginOMake.ml └── test-quickstart └── TestQuickstart.ml /.gitignore: -------------------------------------------------------------------------------- 1 | *.byte 2 | *.native 3 | *.mo 4 | *.swp 5 | /_build/ 6 | /api-oasis.docdir 7 | /setup.data 8 | /setup.log 9 | /src/cli/CLIPluginsLoaded.ml 10 | /src/oasis/OASISConf.ml 11 | /bindist 12 | /patches-to-apply 13 | /tarballs 14 | /test/oUnit.log 15 | /dist/ 16 | /.idea/ 17 | -------------------------------------------------------------------------------- /.merlin: -------------------------------------------------------------------------------- 1 | S src/** 2 | S test/** 3 | B _build/src/** 4 | B _build/test/** 5 | PKG unix 6 | PKG oUnit 7 | PKG fileutils 8 | PKG findlib 9 | PKG expect 10 | PKG pcre 11 | PKG benchmark 12 | PKG ocamlbuild 13 | FLG -w +a-4-44 14 | -------------------------------------------------------------------------------- /.ocp-indent.conf: -------------------------------------------------------------------------------- 1 | match_clause=2 2 | with=2 3 | align_ops=false 4 | 5 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | sudo: false 3 | addons: 4 | apt: 5 | sources: 6 | - avsm 7 | packages: 8 | - ocaml 9 | - ocaml-native-compilers 10 | - opam 11 | - texlive-latex-recommended 12 | branches: 13 | except: 14 | - opam/unstable 15 | - opam/testing 16 | script: bash -ex ./src/tools/ci/travis.bash 17 | env: 18 | - OPAM_SWITCH=system 19 | - OPAM_SWITCH=3.12.1 20 | - OPAM_SWITCH=4.01.0 21 | - OPAM_SWITCH=4.02.2 22 | - OPAM_SWITCH=4.03.0 23 | - OPAM_SWITCH=4.04.0 24 | - OPAM_SWITCH=4.05.0 25 | - OPAM_SWITCH=4.06.0 26 | - OPAM_SWITCH=4.07.0 27 | - OPAM_SWITCH=4.08.0 28 | - OPAM_SWITCH=4.08.0+flambda 29 | cache: 30 | directories: 31 | - $HOME/.opam 32 | notifications: 33 | webhooks: 34 | urls: 35 | - https://webhooks.gitter.im/e/f47ff4ebe702f6acd4e0 36 | on_success: always 37 | on_failure: always 38 | on_start: never 39 | -------------------------------------------------------------------------------- /AUTHORS.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Authors of oasis: 5 | 6 | * Sylvain Le Gall 7 | 8 | Current maintainers of oasis: 9 | 10 | * Sylvain Le Gall 11 | 12 | 13 | -------------------------------------------------------------------------------- /TODO.txt: -------------------------------------------------------------------------------- 1 | * Finish guess-cmx to install all files for libraries, integrate it in buildsys 2 | * "..." in freeform doesn't work 3 | 4 | * recompilation of .cmxs, must have a pb in detecting update 5 | 6 | * Feature protect big changes like the section Object. 7 | 8 | * fix +x for configure in oasis-dist 9 | 10 | IDEAS: 11 | 12 | * oasis-autogenerate: automatically file Modules and ModulesInternal using a field 13 | XAutoGenModulesExpression: src/*.mli 14 | XAutoGenModulesInternal: src/*.ml, -src/*.mli 15 | 16 | * oasis-spandeps: create a directory ext/ containing depends and compile/install them 17 | in the project. 18 | Bonus point: use a link/file to include project checkout elsewhere on the FS 19 | Bonus point: also include rev-dependencies 20 | 21 | -------------------------------------------------------------------------------- /_header: -------------------------------------------------------------------------------- 1 | OASIS: architecture for building OCaml libraries and applications 2 | 3 | Copyright (C) 2011-2016, Sylvain Le Gall 4 | Copyright (C) 2008-2011, OCamlCore SARL 5 | 6 | This library is free software; you can redistribute it and/or modify it 7 | under the terms of the GNU Lesser General Public License as published by 8 | the Free Software Foundation; either version 2.1 of the License, or (at 9 | your option) any later version, with the OCaml static compilation 10 | exception. 11 | 12 | This library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more 15 | details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with this library; if not, write to the Free Software Foundation, 19 | Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | # http://www.appveyor.com/docs/appveyor-yml 2 | 3 | branches: 4 | only: 5 | - master 6 | except: 7 | - gh-pages 8 | 9 | platform: 10 | - x86 11 | 12 | environment: 13 | FORK_USER: ocaml 14 | FORK_BRANCH: master 15 | CYG_ROOT: C:\cygwin64 16 | 17 | install: 18 | - ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/$env:FORK_USER/ocaml-ci-scripts/$env:FORK_BRANCH/appveyor-install.ps1")) 19 | 20 | build_script: 21 | - call %CYG_ROOT%\bin\bash.exe -l %APPVEYOR_BUILD_FOLDER%\appveyor-opam.sh 22 | 23 | notifications: 24 | - provider: Webhook 25 | url: https://webhooks.gitter.im/e/7ff53153d7d00ed61e3d 26 | on_build_success: true 27 | on_build_failure: true 28 | on_build_status_changed: true 29 | 30 | artifacts: 31 | - path: setup.log 32 | name: setup.log 33 | 34 | -------------------------------------------------------------------------------- /configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # OASIS_START 4 | # DO NOT EDIT (digest: dc86c2ad450f91ca10c931b6045d0499) 5 | set -e 6 | 7 | FST=true 8 | for i in "$@"; do 9 | if $FST; then 10 | set -- 11 | FST=false 12 | fi 13 | 14 | case $i in 15 | --*=*) 16 | ARG=${i%%=*} 17 | VAL=${i##*=} 18 | set -- "$@" "$ARG" "$VAL" 19 | ;; 20 | *) 21 | set -- "$@" "$i" 22 | ;; 23 | esac 24 | done 25 | 26 | ocaml setup.ml -configure "$@" 27 | # OASIS_STOP 28 | -------------------------------------------------------------------------------- /doc/FAQ.md: -------------------------------------------------------------------------------- 1 | Using OASIS 2 | =========== 3 | 4 | How to create a string flag? 5 | ---------------------------- 6 | 7 | Flag in `_oasis` are only boolean. As of OASIS 0.4.7, there is no way to define 8 | a string flag. A string flag, can be useful when you want e.g. 9 | `CCOpt: -D $(STR)`. 10 | 11 | The reason why this has not been done are: 12 | * boolean flags are easy to switch on and off to test various branches, which 13 | can allow auto exploration for the package. 14 | * string flags would require a way to validate them, make sure that quoting 15 | is correct when they are used in substitution. 16 | * string flags are easily implementable directly in `setup.ml`. 17 | 18 | The quick solution to have a string flag `FOO` is to add the following code to 19 | `setup.ml`: 20 | 21 | (* OASIS_STOP *) 22 | let _ = BaseEnv.var_define "FOO" (fun _ -> "123");; 23 | let () = setup ();; 24 | 25 | This can be used like this: 26 | 27 | Executable "opam-build-revdeps" 28 | Path: src/bin/opam-build-revdeps 29 | MainIs: OPAMBuildRevdeps.ml 30 | CompiledObject: best 31 | CCOpt:-D $(FOO) 32 | 33 | 34 | The value of the flag `FOO` can be set through command line and environment 35 | variable. 36 | 37 | -------------------------------------------------------------------------------- /doc/images/background-badge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/doc/images/background-badge.png -------------------------------------------------------------------------------- /examples/custom/LICENSE: -------------------------------------------------------------------------------- 1 | ******************************************************************************** 2 | * OASIS: architecture for building OCaml libraries and applications * 3 | * * 4 | * Copyright (C) 2011-2016, Sylvain Le Gall * 5 | * Copyright (C) 2008-2011, OCamlCore SARL * 6 | * * 7 | * This library is free software; you can redistribute it and/or modify it * 8 | * under the terms of the GNU Lesser General Public License as published by * 9 | * the Free Software Foundation; either version 2.1 of the License, or (at * 10 | * your option) any later version, with the OCaml static compilation * 11 | * exception. * 12 | * * 13 | * This library is distributed in the hope that it will be useful, but * 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * 15 | * or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more * 16 | * details. * 17 | * * 18 | * You should have received a copy of the GNU Lesser General Public License * 19 | * along with this library; if not, write to the Free Software Foundation, * 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 21 | ******************************************************************************** 22 | 23 | -------------------------------------------------------------------------------- /examples/custom/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: simplelib 3 | Version: 0.0.1 4 | Authors: Mauricio Fernandez 5 | Maintainers: Mauricio Fernandez 6 | Copyrights: (C) 2008 Mauricio Fernandez 7 | LicenseFile: LICENSE 8 | License: LGPL with OCaml linking exception 9 | ConfType: custom (0.0.1) 10 | if os_type(Win32) 11 | XCustomConf: myconfigure.bat 12 | XCustomBuild: make -f TopMakefile all 'OCAMLC=${ocamlc}' WIN32=true 13 | else 14 | XCustomConf: ./myconfigure 15 | XCustomBuild: make -f TopMakefile all 'OCAMLC=${ocamlc}' 16 | BuildType: custom (0.0.1) 17 | XCustomBuildClean: make -f TopMakefile clean 18 | XCustomBuildDistclean: make -f TopMakefile distclean 19 | 20 | Synopsis: Minimal ADT just to illustrate how libs work. 21 | Description: 22 | Minimal ADT just to illustrate how libs work. 23 | . 24 | Not much more to say 25 | 26 | Homepage: http://example.com 27 | BuildDepends: 28 | extlib 29 | 30 | Library simplelib 31 | Path: src 32 | Modules: Foo, Bar 33 | 34 | -------------------------------------------------------------------------------- /examples/custom/src/META: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # OASIS: architecture for building OCaml libraries and applications # 3 | # # 4 | # Copyright (C) 2011-2016, Sylvain Le Gall # 5 | # Copyright (C) 2008-2011, OCamlCore SARL # 6 | # # 7 | # This library is free software; you can redistribute it and/or modify it # 8 | # under the terms of the GNU Lesser General Public License as published by # 9 | # the Free Software Foundation; either version 2.1 of the License, or (at # 10 | # your option) any later version, with the OCaml static compilation # 11 | # exception. # 12 | # # 13 | # This library is distributed in the hope that it will be useful, but # 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # 15 | # or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more # 16 | # details. # 17 | # # 18 | # You should have received a copy of the GNU Lesser General Public License # 19 | # along with this library; if not, write to the Free Software Foundation, # 20 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # 21 | ################################################################################ 22 | 23 | -------------------------------------------------------------------------------- /examples/findlib/LICENSE: -------------------------------------------------------------------------------- 1 | ******************************************************************************** 2 | * OASIS: architecture for building OCaml libraries and applications * 3 | * * 4 | * Copyright (C) 2011-2016, Sylvain Le Gall * 5 | * Copyright (C) 2008-2011, OCamlCore SARL * 6 | * * 7 | * This library is free software; you can redistribute it and/or modify it * 8 | * under the terms of the GNU Lesser General Public License as published by * 9 | * the Free Software Foundation; either version 2.1 of the License, or (at * 10 | * your option) any later version, with the OCaml static compilation * 11 | * exception. * 12 | * * 13 | * This library is distributed in the hope that it will be useful, but * 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * 15 | * or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more * 16 | * details. * 17 | * * 18 | * You should have received a copy of the GNU Lesser General Public License * 19 | * along with this library; if not, write to the Free Software Foundation, * 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 21 | ******************************************************************************** 22 | 23 | -------------------------------------------------------------------------------- /examples/findlib/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: findlib 3 | Version: 0.0.1 4 | Authors: Sylvain Le Gall 5 | Copyrights: (C) 2008 Sylvain Le Gall 6 | Homepage: http://example.com 7 | BugReports: http://example.com/issues 8 | Tags: build, org:ocamlforge 9 | LicenseFile: LICENSE 10 | License: LGPL with OCaml linking exception 11 | Synopsis: Minimal ADT just to illustrate how libs work. 12 | BuildDepends: oUnit (>= 0.1.1) 13 | 14 | -------------------------------------------------------------------------------- /examples/findlib/src/META: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # OASIS: architecture for building OCaml libraries and applications # 3 | # # 4 | # Copyright (C) 2011-2016, Sylvain Le Gall # 5 | # Copyright (C) 2008-2011, OCamlCore SARL # 6 | # # 7 | # This library is free software; you can redistribute it and/or modify it # 8 | # under the terms of the GNU Lesser General Public License as published by # 9 | # the Free Software Foundation; either version 2.1 of the License, or (at # 10 | # your option) any later version, with the OCaml static compilation # 11 | # exception. # 12 | # # 13 | # This library is distributed in the hope that it will be useful, but # 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # 15 | # or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more # 16 | # details. # 17 | # # 18 | # You should have received a copy of the GNU Lesser General Public License # 19 | # along with this library; if not, write to the Free Software Foundation, # 20 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # 21 | ################################################################################ 22 | 23 | -------------------------------------------------------------------------------- /examples/flags/LICENSE: -------------------------------------------------------------------------------- 1 | ******************************************************************************** 2 | * OASIS: architecture for building OCaml libraries and applications * 3 | * * 4 | * Copyright (C) 2011-2016, Sylvain Le Gall * 5 | * Copyright (C) 2008-2011, OCamlCore SARL * 6 | * * 7 | * This library is free software; you can redistribute it and/or modify it * 8 | * under the terms of the GNU Lesser General Public License as published by * 9 | * the Free Software Foundation; either version 2.1 of the License, or (at * 10 | * your option) any later version, with the OCaml static compilation * 11 | * exception. * 12 | * * 13 | * This library is distributed in the hope that it will be useful, but * 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * 15 | * or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more * 16 | * details. * 17 | * * 18 | * You should have received a copy of the GNU Lesser General Public License * 19 | * along with this library; if not, write to the Free Software Foundation, * 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 21 | ******************************************************************************** 22 | 23 | -------------------------------------------------------------------------------- /examples/flags/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: flags 3 | Version: 0.0.1 4 | Authors: Sylvain Le Gall 5 | LicenseFile: LICENSE 6 | License: LGPL with OCaml linking exception 7 | Synopsis: Demonstrate the use of Flag. 8 | BuildDepends: bigarray 9 | BuildTools: ocamlbuild 10 | FilesAB: src/simplelib/Conf.ml.ab 11 | 12 | Flag buildext 13 | Description: build simplelibext 14 | 15 | Library simplelib 16 | Path: src/simplelib 17 | Modules: Foo, Bar 18 | 19 | Document simplelib 20 | Title: API reference for simplelib 21 | Type: ocamlbuild (0.1.0) 22 | InstallDir: $htmldir/simplelib 23 | BuildTools+: ocamldoc 24 | XOCamlbuildPath: src/simplelib 25 | XOCamlbuildLibraries: simplelib 26 | 27 | Library simplelibext 28 | Build: false 29 | if flag(buildext) 30 | Build: true 31 | Path: src/simplelibext 32 | Modules: FooExt, BarExt 33 | 34 | Document simplelibext 35 | Title: API reference for simplelibext 36 | Type: ocamlbuild (0.1.0) 37 | InstallDir: $htmldir/simplelibext 38 | BuildTools+: ocamldoc 39 | XOCamlbuildPath: src/simplelibext 40 | XOCamlbuildLibraries: simplelibext 41 | 42 | -------------------------------------------------------------------------------- /examples/flags/src/simplelib/Bar.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/flags/src/simplelib/Foo.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/flags/src/simplelib/META: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # OASIS: architecture for building OCaml libraries and applications # 3 | # # 4 | # Copyright (C) 2011-2016, Sylvain Le Gall # 5 | # Copyright (C) 2008-2011, OCamlCore SARL # 6 | # # 7 | # This library is free software; you can redistribute it and/or modify it # 8 | # under the terms of the GNU Lesser General Public License as published by # 9 | # the Free Software Foundation; either version 2.1 of the License, or (at # 10 | # your option) any later version, with the OCaml static compilation # 11 | # exception. # 12 | # # 13 | # This library is distributed in the hope that it will be useful, but # 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # 15 | # or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more # 16 | # details. # 17 | # # 18 | # You should have received a copy of the GNU Lesser General Public License # 19 | # along with this library; if not, write to the Free Software Foundation, # 20 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # 21 | ################################################################################ 22 | 23 | -------------------------------------------------------------------------------- /examples/flags/src/simplelibext/BarExt.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/flags/src/simplelibext/FooExt.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/flags/src/simplelibext/META: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # OASIS: architecture for building OCaml libraries and applications # 3 | # # 4 | # Copyright (C) 2011-2016, Sylvain Le Gall # 5 | # Copyright (C) 2008-2011, OCamlCore SARL # 6 | # # 7 | # This library is free software; you can redistribute it and/or modify it # 8 | # under the terms of the GNU Lesser General Public License as published by # 9 | # the Free Software Foundation; either version 2.1 of the License, or (at # 10 | # your option) any later version, with the OCaml static compilation # 11 | # exception. # 12 | # # 13 | # This library is distributed in the hope that it will be useful, but # 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # 15 | # or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more # 16 | # details. # 17 | # # 18 | # You should have received a copy of the GNU Lesser General Public License # 19 | # along with this library; if not, write to the Free Software Foundation, # 20 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # 21 | ################################################################################ 22 | 23 | -------------------------------------------------------------------------------- /examples/interdepend-libraries/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: interdepend-libraries 3 | Version: 0.1 4 | Synopsis: Executable and libraries with interdependencies 5 | Authors: Sylvain Le Gall 6 | License: LGPL with OCaml linking exception 7 | BuildTools: ocamlbuild 8 | 9 | Library liba 10 | Modules: A 11 | InternalModules: intern/A2, intern/A_parser, intern/A_lexer 12 | Path: src/liba 13 | BuildDepends: str 14 | Install: false 15 | 16 | Library libb 17 | Modules: B 18 | Path: src/libb 19 | BuildDepends: liba, unix 20 | Install: false 21 | 22 | Library libc 23 | Modules: C 24 | Path: src/libc 25 | BuildDepends: libb, num 26 | Install: false 27 | 28 | Library libd 29 | Modules: D 30 | Path: src/libd 31 | Install: false 32 | 33 | Library libe 34 | Modules: E 35 | Path: src/libe 36 | Install: false 37 | BuildDepends: libd 38 | 39 | Executable execa 40 | MainIs: Main.ml 41 | Path: src/execa 42 | BuildDepends: libc, libe 43 | Install: false 44 | 45 | Document interdepend 46 | Title: API reference for interdepend 47 | Type: ocamlbuild (0.1.0) 48 | InstallDir: $htmldir/interdepend 49 | Install: false 50 | BuildTools+: ocamldoc 51 | XOCamlbuildPath: src 52 | XOCamlbuildLibraries: liba, libb, libc, libd, libe 53 | -------------------------------------------------------------------------------- /examples/oasis/uuidm.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: uuidm 3 | Version: 0.9.3 4 | Authors: Daniel Buenzli 5 | LicenseFile: LICENSE 6 | License: BSD3 7 | Plugins: META (0.0.1), StdFiles (0.1.0), DevFiles (0.1.0) 8 | Synopsis: Universally unique identifiers (UUIDs) for OCaml 9 | BuildTools: ocamlbuild 10 | 11 | Library uuidm 12 | Path: src 13 | Modules: Uuidm 14 | 15 | Executable perf 16 | Path: test 17 | MainIs: perf.ml 18 | Install: false 19 | BuildDepends: uuidm 20 | 21 | Test perf 22 | Type: Custom (0.0.1) 23 | Command: $(utoh "_build/test/perf") 24 | 25 | Executable test 26 | Path: test 27 | MainIs: test.ml 28 | Install: false 29 | BuildDepends: uuidm 30 | 31 | Test test 32 | Type: Custom (0.0.1) 33 | Command: $(utoh "_build/test/test") 34 | 35 | Executable uuid 36 | Path: test 37 | MainIs: uuid.ml 38 | Install: false 39 | BuildDepends: uuidm 40 | 41 | Test uuid 42 | Command: $uuid 43 | -------------------------------------------------------------------------------- /examples/object/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | BetaFeatures: section_object 3 | Name: object 4 | Version: 0.0.1 5 | Authors: Philippe Veber 6 | Homepage: http://example.com 7 | License: LGPL with OCaml linking exception 8 | Synopsis: Example for object sections 9 | BuildTools: ocamlbuild 10 | BuildDepends: oUnit (>= 0.1.1) 11 | Plugins: META (0.3) 12 | 13 | Object single_module 14 | Path: src1 15 | Modules: Single 16 | Install: true 17 | 18 | Object packed_modules 19 | Path: src2 20 | Modules: M1, M2 21 | Install: true 22 | -------------------------------------------------------------------------------- /examples/object/src1/single.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/object/src1/single.mli: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/object/src2/m1.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/object/src2/m2.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/object/src2/m2.mli: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/ocamlbuild/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: object 3 | Version: 0.0.1 4 | AlphaFeatures: ocamlbuild_more_args 5 | Authors: Jacques-Pascal Deplaix 6 | License: LGPL with OCaml linking exception 7 | Synopsis: Example for ocamlbuild fields 8 | BuildTools: ocamlbuild 9 | XOCamlbuildPluginTags: package(unix) 10 | XOCamlbuildExtraArgs: -j 4 -verbose 0 11 | OCamlVersion: >= 4.01 12 | Plugins: META (0.4) 13 | 14 | Library test 15 | Path: src 16 | Modules: Test 17 | -------------------------------------------------------------------------------- /examples/ocamlbuild/src/test.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/order-matter/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: order-matter 3 | Version: 0.1 4 | Synopsis: Reorder _oasis section for building 5 | Authors: Sylvain Le Gall 6 | License: LGPL with OCaml linking exception 7 | BuildTools: ocamlbuild 8 | 9 | Library foo 10 | Path: src/foo 11 | Modules: Foo 12 | Install: false 13 | BuildDepends: baz 14 | 15 | Library bar 16 | Path: src/bar 17 | Install: false 18 | Modules: Bar 19 | 20 | Library baz 21 | Path: src/baz 22 | Modules: Baz 23 | Install: false 24 | BuildDepends: bar 25 | 26 | Document "order-matter" 27 | Title: API reference for order-matter 28 | Type: ocamlbuild (0.1.0) 29 | InstallDir: $htmldir/order-matter 30 | Install: false 31 | BuildTools+: ocamldoc 32 | XOCamlbuildPath: src 33 | XOCamlbuildLibraries: foo, bar, baz 34 | -------------------------------------------------------------------------------- /examples/packedlib/LICENSE: -------------------------------------------------------------------------------- 1 | ******************************************************************************** 2 | * OASIS: architecture for building OCaml libraries and applications * 3 | * * 4 | * Copyright (C) 2011-2016, Sylvain Le Gall * 5 | * Copyright (C) 2008-2011, OCamlCore SARL * 6 | * * 7 | * This library is free software; you can redistribute it and/or modify it * 8 | * under the terms of the GNU Lesser General Public License as published by * 9 | * the Free Software Foundation; either version 2.1 of the License, or (at * 10 | * your option) any later version, with the OCaml static compilation * 11 | * exception. * 12 | * * 13 | * This library is distributed in the hope that it will be useful, but * 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * 15 | * or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more * 16 | * details. * 17 | * * 18 | * You should have received a copy of the GNU Lesser General Public License * 19 | * along with this library; if not, write to the Free Software Foundation, * 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 21 | ******************************************************************************** 22 | 23 | -------------------------------------------------------------------------------- /examples/packedlib/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: packedlib 3 | Version: 0.1 4 | Authors: Till Varoquaux 5 | Maintainers: Till Varoquaux 6 | Copyrights: (C) 2011 Till Varoquaux 7 | License: LGPL with OCaml linking exception 8 | BuildTools: ocamlbuild 9 | Plugins: META (0.4) 10 | 11 | Synopsis: Testing packed libraries work fine in oasis 12 | 13 | Library packedlib 14 | Pack: true 15 | Path: src 16 | Modules: Foo, Bar, Baz 17 | 18 | Executable test 19 | Path: test 20 | MainIs: main.ml 21 | BuildDepends: packedlib 22 | Install: false 23 | -------------------------------------------------------------------------------- /examples/packedlib/src/Baz.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/plugins/oasis-plugin-print-hello/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: oasis-plugin-print-hello 3 | Version: 0.1.0 4 | License: LGPL-2.1 with OCaml linking exception 5 | BuildType: ocamlbuild (0.4) 6 | Authors: Sylvain Le Gall 7 | Plugins: META (0.4) 8 | BuildTools: ocamlbuild 9 | 10 | Synopsis: Example for command line plugin, that prints "Hello world!" 11 | 12 | Library "oasis-plugin-print-hello" 13 | Path: src/lib/oasis-plugin-print-hello 14 | Modules: OASISPluginPrintHello 15 | CompiledObject: Best 16 | BuildDepends: oasis.cli 17 | XMETAExtraLines: plugin_system = "oasis-cli" 18 | plugin_name = "print-hello" 19 | plugin_synopsis = "Print Hello with OASIS." 20 | -------------------------------------------------------------------------------- /examples/plugins/oasis-plugin-versionfile/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: oasis-versionfile 3 | Version: 0.1.0 4 | License: LGPL-2.1 with OCaml linking exception 5 | BuildType: ocamlbuild (0.4) 6 | Authors: Sylvain Le Gall 7 | Plugins: META (0.4) 8 | BuildTools: ocamlbuild, ocamlify 9 | FilesAB: src/lib/oasis-plugin-versionfile/OASISPluginVersionFileConf.ml.ab 10 | 11 | Synopsis: Example for _oasis plugin, that creates a file with version 12 | 13 | Library "oasis-plugin-versionfile" 14 | Path: src/lib/oasis-plugin-versionfile 15 | Modules: OASISPluginVersionFile 16 | InternalModules: OASISPluginVersionFileGettext, 17 | OASISPluginVersionFileConf, 18 | OASISPluginVersionFileData 19 | CompiledObject: Best 20 | BuildDepends: oasis 21 | XMETAExtraLines: plugin_system = "oasis" 22 | plugin_name = "VersionFile" 23 | plugin_synopsis = "Create a file containing the version." 24 | -------------------------------------------------------------------------------- /examples/plugins/oasis-plugin-versionfile/src/lib/oasis-plugin-versionfile/MANUAL-template.mkd: -------------------------------------------------------------------------------- 1 | This plugin helps to generate a file `version.ml` which contains the version of 2 | the package, as defined in `_oasis` > `Version` field. 3 | 4 | Package fields: 5 | 6 | $ListVersionFileExtraPackageFields 7 | -------------------------------------------------------------------------------- /examples/plugins/oasis-plugin-versionfile/src/lib/oasis-plugin-versionfile/OASISPluginVersionFileData.mlify: -------------------------------------------------------------------------------- 1 | VarStringList readme_template_mkd "MANUAL-template.mkd" 2 | -------------------------------------------------------------------------------- /examples/plugins/with-plugin-versionfile/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: with-versionfile-plugin 3 | Version: 0.1.0 4 | License: LGPL-2.1 with OCaml linking exception 5 | Authors: Sylvain Le Gall 6 | Plugins: VersionFile (0.1) 7 | XVersionFileFilename: myversion.ml 8 | 9 | Synopsis: Example of using an _oasis plugin (oasis-versionfile). 10 | -------------------------------------------------------------------------------- /examples/simplelib/LICENSE: -------------------------------------------------------------------------------- 1 | ******************************************************************************** 2 | * OASIS: architecture for building OCaml libraries and applications * 3 | * * 4 | * Copyright (C) 2011-2016, Sylvain Le Gall * 5 | * Copyright (C) 2008-2011, OCamlCore SARL * 6 | * * 7 | * This library is free software; you can redistribute it and/or modify it * 8 | * under the terms of the GNU Lesser General Public License as published by * 9 | * the Free Software Foundation; either version 2.1 of the License, or (at * 10 | * your option) any later version, with the OCaml static compilation * 11 | * exception. * 12 | * * 13 | * This library is distributed in the hope that it will be useful, but * 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * 15 | * or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more * 16 | * details. * 17 | * * 18 | * You should have received a copy of the GNU Lesser General Public License * 19 | * along with this library; if not, write to the Free Software Foundation, * 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 21 | ******************************************************************************** 22 | 23 | -------------------------------------------------------------------------------- /examples/simplelib/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: simplelib 3 | Version: 0.0.1 4 | Authors: Mauricio Fernandez 5 | Maintainers: Mauricio Fernandez 6 | Copyrights: (C) 2008 Mauricio Fernandez 7 | LicenseFile: LICENSE 8 | License: LGPL with OCaml linking exception 9 | BuildTools: ocamlbuild 10 | 11 | Synopsis: Minimal ADT just to illustrate how libs work. 12 | Description: 13 | Minimal ADT just to illustrate how libs work. 14 | . 15 | Not much more to say 16 | 17 | Homepage: http://example.com 18 | BuildDepends: bigarray 19 | 20 | Library simplelib 21 | Path: src 22 | Modules: Foo, Bar 23 | 24 | Document simplelib 25 | Title: API reference for simplelib 26 | Type: ocamlbuild (0.1.0) 27 | InstallDir: $htmldir/simplelib 28 | BuildTools+: ocamldoc 29 | XOCamlbuildPath: src 30 | XOCamlbuildLibraries: simplelib 31 | -------------------------------------------------------------------------------- /examples/simplelib/src/META: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # OASIS: architecture for building OCaml libraries and applications # 3 | # # 4 | # Copyright (C) 2011-2016, Sylvain Le Gall # 5 | # Copyright (C) 2008-2011, OCamlCore SARL # 6 | # # 7 | # This library is free software; you can redistribute it and/or modify it # 8 | # under the terms of the GNU Lesser General Public License as published by # 9 | # the Free Software Foundation; either version 2.1 of the License, or (at # 10 | # your option) any later version, with the OCaml static compilation # 11 | # exception. # 12 | # # 13 | # This library is distributed in the hope that it will be useful, but # 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # 15 | # or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more # 16 | # details. # 17 | # # 18 | # You should have received a copy of the GNU Lesser General Public License # 19 | # along with this library; if not, write to the Free Software Foundation, # 20 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # 21 | ################################################################################ 22 | 23 | -------------------------------------------------------------------------------- /examples/syntax-camlp4/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: syntax-camlp4 3 | Version: 0.1 4 | Synopsis: Camlp4 syntax extension example. 5 | Authors: Sylvain Le Gall 6 | License: LGPL-2.1 with OCaml linking exception 7 | Plugins: META (0.4) 8 | 9 | Library pi 10 | Path: src 11 | BuildTools: ocamlbuild 12 | Modules: Pi 13 | XMETAType: syntax 14 | FindlibContainers: syntax-camlp4 15 | FindlibName: syntax 16 | BuildDepends: camlp4.extend, camlp4.quotations.o 17 | -------------------------------------------------------------------------------- /examples/with-c/LICENSE: -------------------------------------------------------------------------------- 1 | ******************************************************************************** 2 | * OASIS: architecture for building OCaml libraries and applications * 3 | * * 4 | * Copyright (C) 2011-2016, Sylvain Le Gall * 5 | * Copyright (C) 2008-2011, OCamlCore SARL * 6 | * * 7 | * This library is free software; you can redistribute it and/or modify it * 8 | * under the terms of the GNU Lesser General Public License as published by * 9 | * the Free Software Foundation; either version 2.1 of the License, or (at * 10 | * your option) any later version, with the OCaml static compilation * 11 | * exception. * 12 | * * 13 | * This library is distributed in the hope that it will be useful, but * 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * 15 | * or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more * 16 | * details. * 17 | * * 18 | * You should have received a copy of the GNU Lesser General Public License * 19 | * along with this library; if not, write to the Free Software Foundation, * 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 21 | ******************************************************************************** 22 | 23 | -------------------------------------------------------------------------------- /examples/with-c/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: with-c 3 | Version: 0.0.1 4 | Authors: Sylvain Le Gall 5 | LicenseFile: LICENSE 6 | License: LGPL with OCaml linking exception 7 | Synopsis: Minimal project with C file. 8 | Plugins: META (0.0.1) 9 | BuildTools: ocamlbuild 10 | 11 | Library "with-c" 12 | Path: src 13 | Modules: A 14 | CSources: A_stub.c, A_header.h 15 | CCOpt: -D OPTION_PASSED 16 | 17 | Document "with-c" 18 | Title: API reference for with-c 19 | Type: ocamlbuild (0.1.0) 20 | InstallDir: $htmldir/with-c 21 | BuildTools+: ocamldoc 22 | XOCamlbuildPath: src 23 | XOCamlbuildLibraries: with-c 24 | 25 | Executable "test-with-c" 26 | Path: src 27 | MainIs: main.ml 28 | CompiledObject: byte 29 | BuildDepends: with-c 30 | CSources: main_stub.c 31 | CCOpt: -D OPTION_PASSED 32 | 33 | Executable "test-with-c-custom" 34 | Path: src 35 | MainIs: main_custom.ml 36 | CompiledObject: byte 37 | Custom: true 38 | BuildDepends: with-c 39 | CSources: main_custom_stub.c 40 | 41 | Executable "test-with-c-native" 42 | Build$: flag(is_native) 43 | Path: src 44 | MainIs: main_native.ml 45 | CompiledObject: native 46 | BuildDepends: with-c 47 | CSources: main_native_stub.c 48 | -------------------------------------------------------------------------------- /examples/with-data/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/examples/with-data/LICENSE.txt -------------------------------------------------------------------------------- /examples/with-data/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: with-data 3 | Version: 0.1 4 | License: GPL 5 | LicenseFile: LICENSE.txt 6 | Authors: Sylvain Le Gall 7 | Synopsis: Library and executable with extra data 8 | BuildTools: ocamlbuild 9 | Plugins: META (0.0.1) 10 | 11 | Executable test 12 | Path: src 13 | MainIs: test.ml 14 | DataFiles: *.txt, test.html ($htmldir) 15 | 16 | Library test 17 | CompiledObject: Byte 18 | Path: src 19 | Modules: Test 20 | DataFiles: test.txt ($datarootdir/$pkg_name-$pkg_version) 21 | 22 | Document test 23 | Title: API reference for test 24 | Type: ocamlbuild (0.1.0) 25 | InstallDir: $htmldir/test 26 | BuildTools+: ocamldoc 27 | XOCamlbuildPath: src 28 | XOCamlbuildLibraries: test 29 | -------------------------------------------------------------------------------- /examples/with-data/src/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/examples/with-data/src/test.html -------------------------------------------------------------------------------- /examples/with-data/src/test.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/with-data/src/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/examples/with-data/src/test.txt -------------------------------------------------------------------------------- /examples/with-interface-module/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: pimlib 3 | Version: 0.1 4 | Synopsis: Library with pure interface modules in subdirectory 5 | Authors: Petter A. Urkedal 6 | License: GPL 7 | Plugins: META (0.3) 8 | AlphaFeatures: pure_interface 9 | 10 | Library pimlib 11 | Path: src 12 | BuildTools: ocamlbuild 13 | Modules: Pim_intf, Pim_impl, Pim_types 14 | -------------------------------------------------------------------------------- /examples/with-subpackage/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: with-subpackage 3 | Version: 0.0 4 | Synopsis: Simple library package with a sub library 5 | Authors: Sylvain Le Gall 6 | License: LGPL with OCaml linking exception 7 | Plugins: META (0.0.1) 8 | BuildTools: ocamlbuild 9 | 10 | Library test 11 | Path: src 12 | Modules: A, B 13 | 14 | Document test 15 | Title: API reference for test 16 | Type: ocamlbuild (0.1.0) 17 | InstallDir: $htmldir/test 18 | BuildTools+: ocamldoc 19 | XOCamlbuildPath: src 20 | XOCamlbuildLibraries: test 21 | 22 | # This library will be installed with library 'test' above 23 | # and will be named 'test.syntax'. 24 | Library pa_test 25 | Path: src/syntax 26 | Modules: Pa_test 27 | FindlibName: syntax 28 | FindlibParent: test 29 | CompiledObject: byte 30 | 31 | Executable mytest 32 | Path: src 33 | MainIs: main.ml 34 | # We need to use the findlib name to build depend on 35 | # pa_test library. 36 | BuildDepends: test.syntax, test 37 | Install: false 38 | -------------------------------------------------------------------------------- /examples/with-subpackage/src/A.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/with-subpackage/src/B.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/with-subpackage/src/main.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/with-subpackage/src/syntax/pa_test.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /examples/with-test/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ******************************************************************************** 2 | * OASIS: architecture for building OCaml libraries and applications * 3 | * * 4 | * Copyright (C) 2008-2010, OCamlCore SARL * 5 | * * 6 | * This library is free software; you can redistribute it and/or modify it * 7 | * under the terms of the GNU Lesser General Public License as published by * 8 | * the Free Software Foundation; either version 2.1 of the License, or (at * 9 | * your option) any later version, with the OCaml static compilation * 10 | * exception. * 11 | * * 12 | * This library is distributed in the hope that it will be useful, but * 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * 14 | * or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more * 15 | * details. * 16 | * * 17 | * You should have received a copy of the GNU Lesser General Public License * 18 | * along with this library; if not, write to the Free Software Foundation, * 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 20 | ******************************************************************************** 21 | 22 | -------------------------------------------------------------------------------- /examples/with-test/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: with-data 3 | Version: 0.1 4 | License: GPL 5 | LicenseFile: LICENSE.txt 6 | Authors: Sylvain Le Gall 7 | Synopsis: Library and executable with test 8 | Plugins: META (0.0.1) 9 | BuildTools: ocamlbuild 10 | 11 | Executable test 12 | Install: false 13 | Path: src 14 | MainIs: test.ml 15 | BuildDepends: oUnit 16 | 17 | Test "main" 18 | Type: Custom (0.0.1) 19 | Command: $test 20 | -------------------------------------------------------------------------------- /oasis.install: -------------------------------------------------------------------------------- 1 | etc: [ 2 | "setup.ml" 3 | "setup.data" 4 | "setup.log" 5 | ] 6 | -------------------------------------------------------------------------------- /src/base/BaseData.mlify: -------------------------------------------------------------------------------- 1 | VarString basesys_ml "BaseSys.ml" 2 | VarString basesysenvironment_ml "BaseSysEnvironment.ml" 3 | VarString basesysbundle_ml "BaseSysBundle.ml" 4 | VarString dynrun_ml "dynrun.ml" 5 | VarString dynrun_for_release_ml "dynrun_for_release.ml" 6 | VarString compiled_setup_ml "compiled_setup_ml.ml" 7 | -------------------------------------------------------------------------------- /src/base/BaseSys.mod: -------------------------------------------------------------------------------- 1 | BaseContext.ml 2 | BaseMessage.ml 3 | BaseEnv.ml 4 | BaseArgExt.ml 5 | BaseCheck.ml 6 | BaseOCamlcConfig.ml 7 | BaseStandardVar.ml 8 | BaseFileAB.ml 9 | BaseLog.ml 10 | BaseBuilt.ml 11 | BaseCustom.ml 12 | BaseDynVar.ml 13 | BaseTest.ml 14 | BaseDoc.ml 15 | BaseSetup.ml 16 | BaseCompat.ml 17 | -------------------------------------------------------------------------------- /src/base/BaseSysBundle.mod: -------------------------------------------------------------------------------- 1 | BaseContext.ml 2 | BaseMessage.ml 3 | BaseEnvLight.ml 4 | BaseEnv.ml 5 | BaseArgExt.ml 6 | BaseCheck.ml 7 | -------------------------------------------------------------------------------- /src/base/BaseSysEnvironment.mod: -------------------------------------------------------------------------------- 1 | BaseEnvLight.ml 2 | -------------------------------------------------------------------------------- /src/base/compiled_setup_ml.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | open OASISDynRun 24 | -------------------------------------------------------------------------------- /src/cli/CLIData.mlify: -------------------------------------------------------------------------------- 1 | VarString manual_mkd "ManualHelp.mkd" 2 | VarString setup_mkd "SetupHelp.mkd" 3 | VarString setup_dev_mkd "SetupDevHelp.mkd" 4 | VarString setup_clean_mkd "SetupCleanHelp.mkd" 5 | VarString quickstart_mkd "QuickstartHelp.mkd" 6 | VarString main_mkd "MainHelp.mkd" 7 | VarString help_mkd "HelpHelp.mkd" 8 | VarString check_mkd "CheckHelp.mkd" 9 | VarString query_mkd "QueryHelp.mkd" 10 | VarString version_mkd "VersionHelp.mkd" 11 | -------------------------------------------------------------------------------- /src/cli/CheckHelp.mkd: -------------------------------------------------------------------------------- 1 | This subcommand load an `_oasis` file and apply standard checks. 2 | -------------------------------------------------------------------------------- /src/cli/HelpHelp.mkd: -------------------------------------------------------------------------------- 1 | This subcommand display help of other subcommands or of all subcommands. 2 | -------------------------------------------------------------------------------- /src/cli/MainHelp.mkd: -------------------------------------------------------------------------------- 1 | This program allows to manipulate OASIS enabled package, i.e. package that 2 | contains an `_oasis` file. It is made of several subcommands that provide 3 | features around this file. Some subcommands require the installation of 4 | third party plugins. 5 | 6 | You need to specify a subcommand as defined in the following above. 7 | -------------------------------------------------------------------------------- /src/cli/ManualHelp.mkd: -------------------------------------------------------------------------------- 1 | This subcommand print the manual of OASIS. It uses the [markdown][] syntax to 2 | print it and more precisely the [pandoc][] extension of this syntax. 3 | 4 | [markdown]: http://daringfireball.net/projects/markdown/ 5 | [pandoc]: http://johnmacfarlane.net/pandoc/ 6 | 7 | This manual describes the command line tool `oasis`, the `_oasis` file format 8 | and the generated `setup.ml` file. 9 | -------------------------------------------------------------------------------- /src/cli/QueryHelp.mkd: -------------------------------------------------------------------------------- 1 | This subcommand load an `_oasis` file and search its content for information. 2 | 3 | The query string follow this convention: 4 | 5 | * `ListSections`: return all the section found 6 | * `ListFields`: return all the fields, it recurses through sections 7 | * field: search for this field in the toplevel 8 | * section.field: search for this field in the section 9 | 10 | Query examples: 11 | 12 | * version: return the version 13 | * executable("test").install: return the field "install" of the executable 14 | "test". 15 | 16 | You can use multiple queries, they will be executed in order. 17 | -------------------------------------------------------------------------------- /src/cli/QuickstartHelp.mkd: -------------------------------------------------------------------------------- 1 | This subcommand is a helper to write `_oasis` file. It asks a serie of 2 | questions to create an initial `_oasis` file. The questions depend on the 3 | level of the user, you can set this level with the `-level` command line 4 | option. 5 | 6 | At the end of the process, you have the possibility to edit, to display or 7 | to write the generated file. 8 | -------------------------------------------------------------------------------- /src/cli/SetupCleanHelp.mkd: -------------------------------------------------------------------------------- 1 | This subcommand go through every generated files and remove the replaceable 2 | part in it. It also tries to clean backup files made by a failed SetupDev 3 | subcommand invocation. 4 | 5 | The replaceable part of a generated file is everything between `OASIS_START` 6 | and `OASIS_STOP`. 7 | -------------------------------------------------------------------------------- /src/cli/SetupDevHelp.mkd: -------------------------------------------------------------------------------- 1 | This subcommand is deprecated. The subcommand Setup now embeds into `setup.ml` 2 | a checks of `_oasis` for changes. See the subcommand Setup for further details. 3 | -------------------------------------------------------------------------------- /src/cli/SetupHelp.mkd: -------------------------------------------------------------------------------- 1 | This is the main subcommand of `oasis`, it compiles the `_oasis` file into a 2 | self contained `setup.ml`. The generated file handle the various step to 3 | configure, build and install your project. 4 | 5 | This command can generate 3 differents kind of `setup.ml`, depending on the 6 | `-setup-update` command line argument: 7 | 8 | * none: the default mode, it generates a standalone `setup.ml`. 9 | * dynamic: a strong dependency on the library oasis but it generates a very 10 | small `setup.ml` and almost no extra files that can be autogenerated. 11 | * weak: only triggered to regenerate setup.ml and all files when something 12 | change in `_oasis`. It has a weak dependency on the executable 13 | oasis, because it only needs it when `_oasis` is changed. The update 14 | behavior of `setup.ml` can be disabled if it is called with 15 | `ocaml setup.ml -no-update-setup-ml [...]`. 16 | 17 | 18 | If you want contributor to checkout your VCS and be able to work without oasis 19 | installed, prefer the 'weak' mode. If you want to avoid VCS history pollution, 20 | use the 'dynamic' mode. Always distribute tarball with mode 'none' 21 | -------------------------------------------------------------------------------- /src/cli/VersionHelp.mkd: -------------------------------------------------------------------------------- 1 | Display version of the oasis executable. 2 | -------------------------------------------------------------------------------- /src/ext/README.txt: -------------------------------------------------------------------------------- 1 | This directory contains some generic piece of code that is not really related 2 | to OASIS. The plan is to externalize this project if other projects need one of 3 | them. 4 | -------------------------------------------------------------------------------- /src/ext/plugin-loader/README.txt: -------------------------------------------------------------------------------- 1 | 2 | This project helps to load plugins that has dependencies. It uses two methods 3 | to detect plugins: 4 | * using findlib, if the META file contains the right keyword 5 | * in a directory a .cma/.cmo/.cmxs file + its .plugin counterpart. 6 | 7 | Just using text files (META and .plugin) 8 | -------------------------------------------------------------------------------- /src/oasis/OASISData.mlify: -------------------------------------------------------------------------------- 1 | VarString oasissys_ml "OASISSys.ml" 2 | VarString oasissyslight_ml "OASISSysLight.ml" 3 | VarString oasissysbundle_ml "OASISSysBundle.ml" 4 | VarStringList readme_template_mkd "MANUAL-template.mkd" 5 | -------------------------------------------------------------------------------- /src/oasis/OASISSys.mod: -------------------------------------------------------------------------------- 1 | OASISGettext.ml 2 | OASISString.ml 3 | OASISUtils.ml 4 | OASISUnixPath.ml 5 | OASISHostPath.ml 6 | OASISFileSystem.ml 7 | OASISContext.ml 8 | PropList.ml 9 | OASISMessage.ml 10 | OASISVersion.ml 11 | OASISLicense.ml 12 | OASISExpr.ml 13 | OASISText.ml 14 | OASISSourcePatterns.ml 15 | OASISTypes.ml 16 | OASISFeatures.ml 17 | OASISSection.ml 18 | OASISBuildSection.ml 19 | OASISExecutable.ml 20 | OASISLibrary.ml 21 | OASISObject.ml 22 | OASISFindlib.ml 23 | OASISFlag.ml 24 | OASISPackage.ml 25 | OASISSourceRepository.ml 26 | OASISTest.ml 27 | OASISDocument.ml 28 | OASISExec.ml 29 | OASISFileUtil.ml 30 | -------------------------------------------------------------------------------- /src/oasis/OASISSysBundle.mod: -------------------------------------------------------------------------------- 1 | OASISGettext.ml 2 | OASISString.ml 3 | OASISUtils.ml 4 | OASISUnixPath.ml 5 | OASISHostPath.ml 6 | OASISFileSystem.ml 7 | OASISContext.ml 8 | PropList.ml 9 | OASISMessage.ml 10 | OASISVersion.ml 11 | OASISExpr.ml 12 | OASISExec.ml 13 | OASISFileUtil.ml 14 | -------------------------------------------------------------------------------- /src/oasis/OASISSysLight.mod: -------------------------------------------------------------------------------- 1 | OASISGettext.ml 2 | OASISString.ml 3 | OASISUtils.ml 4 | OASISExpr.ml 5 | -------------------------------------------------------------------------------- /src/plugins/custom/CustomData.mlify: -------------------------------------------------------------------------------- 1 | VarString customsys_ml "CustomSys.ml" 2 | VarStringList readme_template_mkd "MANUAL-template.mkd" 3 | -------------------------------------------------------------------------------- /src/plugins/custom/CustomSys.mod: -------------------------------------------------------------------------------- 1 | CustomPlugin.ml 2 | -------------------------------------------------------------------------------- /src/plugins/custom/MANUAL-template.mkd: -------------------------------------------------------------------------------- 1 | This plugin allow to define a set of three commands to perform each steps, 2 | associated with the following fields: 3 | 4 | * `XCustomXXX`: main action to run. 5 | * `XCustomXXXClean`: action to run when clean is invoked. 6 | * `XCustomXXXDistclean`: action to run when distclean is invoked. 7 | 8 | `XXX` stands for `Conf`, `Build`, `Doc`, `Test`, `Install` or `Uninstall`. 9 | 10 | Action to run is a simple shell command. It can contain substitution variables as 11 | defined in [this section][#substitution]. 12 | 13 | Package fields: 14 | 15 | $ListCustomConfPackageFields 16 | $ListCustomBuildPackageFields 17 | $ListCustomInstallPackageFields 18 | 19 | Document fields: 20 | 21 | $ListCustomDocDocumentFields 22 | 23 | Test fields: 24 | 25 | $ListCustomTestTestFields 26 | 27 | The file `setup.data` remains __mandatory__, even when using the custom plugin. 28 | You must create it. A simple `touch setup.data; ./configure` should be enough, 29 | though. 30 | -------------------------------------------------------------------------------- /src/plugins/extra/META/MANUAL-template.mkd: -------------------------------------------------------------------------------- 1 | This plugin is a helper to generate a `META` files that can be distributed and 2 | install with a library. It uses library name, version, synopsis and dependencies 3 | to generate matching fields in `META`. 4 | 5 | Library fields: 6 | 7 | $ListMETAExtraLibraryFields 8 | -------------------------------------------------------------------------------- /src/plugins/extra/META/METAData.mlify: -------------------------------------------------------------------------------- 1 | VarStringList readme_template_mkd "MANUAL-template.mkd" 2 | -------------------------------------------------------------------------------- /src/plugins/extra/devfiles/DevFilesData.mlify: -------------------------------------------------------------------------------- 1 | VarStringList configure "configure" 2 | VarStringList readme_template_mkd "MANUAL-template.mkd" 3 | -------------------------------------------------------------------------------- /src/plugins/extra/devfiles/MANUAL-template.mkd: -------------------------------------------------------------------------------- 1 | It helps to generate a toplevel `Makefile` and `configure` files which only 2 | invoke `setup.ml`. It aims to provide good old entry points. 3 | 4 | Package fields: 5 | 6 | $ListDevFilesExtraPackageFields 7 | -------------------------------------------------------------------------------- /src/plugins/extra/devfiles/configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # OASIS_START 4 | set -e 5 | 6 | FST=true 7 | for i in "$@"; do 8 | if $FST; then 9 | set -- 10 | FST=false 11 | fi 12 | 13 | case $i in 14 | --*=*) 15 | ARG=${i%%=*} 16 | VAL=${i##*=} 17 | set -- "$@" "$ARG" "$VAL" 18 | ;; 19 | *) 20 | set -- "$@" "$i" 21 | ;; 22 | esac 23 | done 24 | -------------------------------------------------------------------------------- /src/plugins/extra/stdfiles/INSTALL.txt: -------------------------------------------------------------------------------- 1 | 2 | Installing 3 | ========== 4 | 5 | 1. Uncompress the source archive and go to the root of the package 6 | 2. Run 'ocaml setup.ml -configure' 7 | 3. Run 'ocaml setup.ml -build' 8 | 4. Run 'ocaml setup.ml -install' 9 | 10 | Uninstalling 11 | ============ 12 | 13 | 1. Go to the root of the package 14 | 2. Run 'ocaml setup.ml -uninstall' 15 | 16 | OASIS 17 | ===== 18 | 19 | OASIS is a program that generates a setup.ml file using a simple '_oasis' 20 | configuration file. The generated setup only depends on the standard OCaml 21 | installation: no additional library is required. 22 | -------------------------------------------------------------------------------- /src/plugins/extra/stdfiles/MANUAL-template.mkd: -------------------------------------------------------------------------------- 1 | This plugin generates standard files like `README.txt`, `INSTALL.txt` and 2 | `AUTHORS.txt`. These files will summarize data contains in `_oasis`. 3 | 4 | The `.txt` extension has been added to allow easy editing/viewing under Windows 5 | and other system that look for extension to determine file type. 6 | 7 | Package fields: 8 | 9 | $ListStdFilesExtraPackageFields 10 | -------------------------------------------------------------------------------- /src/plugins/extra/stdfiles/StdFilesData.mlify: -------------------------------------------------------------------------------- 1 | VarString install "INSTALL.txt" 2 | VarStringList readme_template_mkd "MANUAL-template.mkd" 3 | -------------------------------------------------------------------------------- /src/plugins/internal/InternalData.mlify: -------------------------------------------------------------------------------- 1 | VarString internalsys_ml "InternalSys.ml" 2 | VarStringList readme_template_mkd "MANUAL-template.mkd" 3 | -------------------------------------------------------------------------------- /src/plugins/internal/InternalSys.mod: -------------------------------------------------------------------------------- 1 | InternalConfigurePlugin.ml 2 | InternalInstallPlugin.ml 3 | -------------------------------------------------------------------------------- /src/plugins/internal/MANUAL-template.mkd: -------------------------------------------------------------------------------- 1 | This plugin is the default value for the `ConfType` and `InstallType`. It 2 | represents a default behavior for configuring and installing OCaml project. 3 | 4 | The configure part take care of checking: 5 | 6 | * Tools availability (ocamlfind, ocamlc et al) 7 | * OCaml version 8 | * Findlib packages 9 | 10 | The install part take care of installing executables, libraries and data files 11 | using standard environment variable (`\$bindir`, `\$datadir` et al). 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/plugins/none/MANUAL-template.mkd: -------------------------------------------------------------------------------- 1 | This plugin basically does nothing. It helps to replace mandatory step by nothing. 2 | -------------------------------------------------------------------------------- /src/plugins/none/NoneData.mlify: -------------------------------------------------------------------------------- 1 | VarString nonesys_ml "NoneSys.ml" 2 | VarStringList readme_template_mkd "MANUAL-template.mkd" 3 | -------------------------------------------------------------------------------- /src/plugins/none/NoneSys.mod: -------------------------------------------------------------------------------- 1 | NonePlugin.ml 2 | -------------------------------------------------------------------------------- /src/plugins/ocamlbuild/MANUAL-template.mkd: -------------------------------------------------------------------------------- 1 | This plugin uses OCamlbuild to generate a build system. It is the default value 2 | for `BuildType`. 3 | 4 | 5 | It is also possible to use this plugin for `Document.Type` which is the 6 | default. In this case, OCamlbuild will also be involved in the generation of a 7 | particular document. 8 | 9 | Package fields: 10 | 11 | $ListOCamlbuildBuildPackageFields 12 | 13 | Document fields: 14 | 15 | $ListOCamlbuildDocDocumentFields 16 | -------------------------------------------------------------------------------- /src/plugins/ocamlbuild/MyOCamlbuildSys.mod: -------------------------------------------------------------------------------- 1 | MyOCamlbuildFindlib.ml 2 | MyOCamlbuildBase.ml 3 | -------------------------------------------------------------------------------- /src/plugins/ocamlbuild/OCamlbuildData.mlify: -------------------------------------------------------------------------------- 1 | VarString myocamlbuild_ml "MyOCamlbuildSys.ml" 2 | VarString ocamlbuildsys_ml "OCamlbuildSys.ml" 3 | VarStringList readme_template_mkd "MANUAL-template.mkd" 4 | -------------------------------------------------------------------------------- /src/plugins/ocamlbuild/OCamlbuildSys.mod: -------------------------------------------------------------------------------- 1 | OCamlbuildCommon.ml 2 | OCamlbuildPlugin.ml 3 | OCamlbuildDocPlugin.ml 4 | -------------------------------------------------------------------------------- /src/plugins/omake/MANUAL-template.mkd: -------------------------------------------------------------------------------- 1 | This plugin uses OMake to generate a build system. You need to specify `OMake` 2 | for the `BuildType`. 3 | 4 | It is also possible to use this plugin for `Document.Type` and as a 5 | `InstallType`. 6 | 7 | Package fields: 8 | 9 | $ListOMakeBuildPackageFields 10 | 11 | Document fields: 12 | 13 | $ListOMakeDocDocumentFields 14 | -------------------------------------------------------------------------------- /src/plugins/omake/OMakeData.mlify: -------------------------------------------------------------------------------- 1 | VarString omakesys_ml "OMakeSys.ml" 2 | VarStringList readme_template_mkd "MANUAL-template.mkd" 3 | VarString oasis_lib_om "oasis_lib.om" 4 | VarString omakeroot "OMakeroot.om" 5 | VarString omakefile_top "OMakefile_top.om" 6 | VarString omakefile_nontop "OMakefile_nontop.om" 7 | -------------------------------------------------------------------------------- /src/plugins/omake/OMakeSys.mod: -------------------------------------------------------------------------------- 1 | OMakeFields.ml 2 | OMakePlugin.ml 3 | -------------------------------------------------------------------------------- /src/plugins/omake/OMakefile_nontop.om: -------------------------------------------------------------------------------- 1 | # You may modify this file freely. It is not overwritten by oasis 2 | # setup once it exists. See the OMakefile in the topmost directory 3 | # for more documentation. 4 | 5 | include _oasis_hier.om 6 | 7 | # subdirectories 8 | .SUBDIRS: $(OASIS_SUBDIRS) 9 | 10 | # local phonies 11 | .PHONY: build-here doc-here install-here uninstall-here reinstall-here pre-install-here clean-here distclean-here 12 | 13 | include _oasis_build.om 14 | include _oasis_install.om 15 | 16 | DefineBuildRules() 17 | DefineInstallRules() 18 | 19 | build-here: $(BUILD_TARGETS) 20 | doc-here: $(BUILD_DOC_TARGETS) 21 | install-here: $(INSTALL_TARGETS) 22 | uninstall-here: $(UNINSTALL_TARGETS) 23 | reinstall-here: $(REINSTALL_TARGETS) 24 | pre-install-here: 25 | 26 | clean-here: 27 | rm -f $(OASIS_clean_list) 28 | rm -rf $(OASIS_rec_clean_list) 29 | section 30 | OASIS_rmdir($(OASIS_dir_clean_list)) 31 | 32 | distclean-here: 33 | rm -f $(OASIS_distclean_list) 34 | rm -rf $(OASIS_rec_distclean_list) 35 | section 36 | OASIS_rmdir($(OASIS_dir_distclean_list)) 37 | 38 | build: build-here 39 | doc: doc-here 40 | install: install-here 41 | uninstall: uninstall-here 42 | reinstall: reinstall-here 43 | clean: clean-here 44 | distclean: distclean-here 45 | -------------------------------------------------------------------------------- /src/plugins/omake/OMakeroot.om: -------------------------------------------------------------------------------- 1 | # include the standard installed configuration file. 2 | include $(STDROOT) 3 | 4 | # include the OMakefile in this directory. 5 | .SUBDIRS: . 6 | -------------------------------------------------------------------------------- /test/data/TestBaseCompat/A.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestBaseCompat/_oasis-0.3: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: basecompat 3 | Version: 0.0.1 4 | Synopsis: Just a test of BaseCompat 5 | Authors: Sylvain Le Gall 6 | BuildType: None (0.2) 7 | License: GPL 8 | 9 | Executable A 10 | Path: . 11 | MainIs: A.ml 12 | -------------------------------------------------------------------------------- /test/data/TestBaseCompat/_oasis-0.4: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: basecompat 3 | Version: 0.0.1 4 | Synopsis: Just a test of BaseCompat 5 | Authors: Sylvain Le Gall 6 | BuildType: None (0.2) 7 | License: GPL 8 | 9 | Executable A 10 | Path: . 11 | MainIs: A.ml 12 | -------------------------------------------------------------------------------- /test/data/TestBaseLog/unix/setup.log: -------------------------------------------------------------------------------- 1 | "foo" "bar" 2 | "bar" "baz" 3 | 4 | -------------------------------------------------------------------------------- /test/data/TestBaseLog/win32/setup.log: -------------------------------------------------------------------------------- 1 | "foo" "bar" 2 | "bar" "baz" -------------------------------------------------------------------------------- /test/data/TestBasic/dir.data: -------------------------------------------------------------------------------- 1 | bindir = "toto" 2 | -------------------------------------------------------------------------------- /test/data/TestFileTemplate/filetemplate1.txt: -------------------------------------------------------------------------------- 1 | 2 | toto 3 | 4 | 5 | -------------------------------------------------------------------------------- /test/data/TestFileTemplate/filetemplate1.txt-exp: -------------------------------------------------------------------------------- 1 | 2 | toto 3 | 4 | 5 | -------------------------------------------------------------------------------- /test/data/TestFileTemplate/filetemplate2.txt: -------------------------------------------------------------------------------- 1 | toto 2 | 3 | # OASIS_START 4 | -------------------------------------------------------------------------------- /test/data/TestFileTemplate/filetemplate2.txt-exp: -------------------------------------------------------------------------------- 1 | toto 2 | 3 | # OASIS_START 4 | # DO NOT EDIT (digest: d41d8cd98f00b204e9800998ecf8427e) 5 | # OASIS_STOP 6 | -------------------------------------------------------------------------------- /test/data/TestFileTemplate/filetemplate3.txt: -------------------------------------------------------------------------------- 1 | 2 | toto 3 | 4 | # OASIS_START 5 | # OASIS_STOP 6 | 7 | tata 8 | -------------------------------------------------------------------------------- /test/data/TestFileTemplate/filetemplate3.txt-exp: -------------------------------------------------------------------------------- 1 | 2 | toto 3 | 4 | # OASIS_START 5 | # DO NOT EDIT (digest: d41d8cd98f00b204e9800998ecf8427e) 6 | # OASIS_STOP 7 | 8 | tata 9 | -------------------------------------------------------------------------------- /test/data/TestFileTemplate/filetemplate4.txt-exp: -------------------------------------------------------------------------------- 1 | toto 2 | # OASIS_START 3 | # DO NOT EDIT (digest: d41d8cd98f00b204e9800998ecf8427e) 4 | # OASIS_STOP 5 | -------------------------------------------------------------------------------- /test/data/TestFileTemplate/filetemplate5.txt-exp: -------------------------------------------------------------------------------- 1 | toto 2 | # OASIS_START 3 | # DO NOT EDIT (digest: 49d02d55ad10973b7b9d0dc9eba7fdf0) 4 | tata 5 | # OASIS_STOP 6 | -------------------------------------------------------------------------------- /test/data/TestFull/1level/A.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | 24 | open OUnit2 25 | -------------------------------------------------------------------------------- /test/data/TestFull/1level/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: with-c 3 | Version: 0.0.1 4 | Authors: Sylvain Le Gall 5 | LicenseFile: LICENSE 6 | License: LGPL with OCaml linking exception 7 | Synopsis: Minimal project in a single directory. 8 | Plugins: META 9 | BuildTools: ocamlbuild 10 | 11 | Library "with-a" 12 | Path: . 13 | Modules: A 14 | BuildDepends: oUnit 15 | 16 | Document "with-a" 17 | Title: API reference for with-a 18 | Type: ocamlbuild (0.1.0) 19 | InstallDir: $htmldir/with-a 20 | BuildTools+: ocamldoc 21 | XOCamlbuildPath: . 22 | XOCamlbuildLibraries: with-a 23 | 24 | Executable "test-with-a" 25 | Path: . 26 | MainIs: main.ml 27 | BuildDepends: with-a 28 | 29 | -------------------------------------------------------------------------------- /test/data/TestFull/1level/main.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/bug1239/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | OCamlVersion: >= 3.12 3 | Name: foo 4 | Version: 1.0 5 | Synopsis: Foo 6 | Authors: Philippe Veber 7 | License: GPL 8 | LicenseFile: LICENCE 9 | Plugins: META (0.3) 10 | BuildTools: ocamlbuild 11 | 12 | 13 | Library foo 14 | Path: src 15 | Modules: M 16 | 17 | Library bar 18 | Path: src/bar 19 | Pack: true 20 | Modules: A 21 | BuildDepends: foo 22 | 23 | Executable baz 24 | Path: src/baz 25 | MainIs: baz.ml 26 | BuildDepends: bar 27 | BuildTools: ocamlbuild 28 | Install: false 29 | -------------------------------------------------------------------------------- /test/data/TestFull/bug1239/src/m.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | let a = 1 24 | -------------------------------------------------------------------------------- /test/data/TestFull/bug1358/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: foo 3 | Version: 1.0 4 | Synopsis: Foo 5 | Authors: Markus 6 | OCamlVersion: >= 4.00 7 | License: GPL-3.0 8 | 9 | Executable foo 10 | Path: . 11 | BuildTools: ocamlbuild 12 | MainIs: foo.ml 13 | BuildDepends: threads 14 | Install: false 15 | -------------------------------------------------------------------------------- /test/data/TestFull/bug1358/foo.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | open Thread 24 | -------------------------------------------------------------------------------- /test/data/TestFull/bug1473/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: foo 3 | Version: 1.0 4 | Synopsis: Foo 5 | Authors: Me 6 | OCamlVersion: >= 3.12 7 | License: GPL-3.0 8 | 9 | Executable foo 10 | Path: . 11 | BuildTools: ocamlbuild 12 | MainIs: foo.ml 13 | Install: false 14 | -------------------------------------------------------------------------------- /test/data/TestFull/bug1473/foo.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | let () = () 24 | -------------------------------------------------------------------------------- /test/data/TestFull/bug571/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test 3 | Version: 0 4 | Synopsis: test 5 | Authors: me 6 | License: GPL 7 | BuildTools: ocamlbuild 8 | 9 | Executable test 10 | Path: ./ 11 | MainIs: A.ml 12 | ByteOpt: -package num 13 | BuildDepends: oUnit 14 | CompiledObject: byte 15 | Install: false 16 | 17 | Executable "test-opt" 18 | Path: ./ 19 | Build$: flag(is_native) 20 | MainIs: A.ml 21 | NativeOpt: -package num 22 | BuildDepends: oUnit 23 | CompiledObject: native 24 | Install: false 25 | -------------------------------------------------------------------------------- /test/data/TestFull/bug588/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test 3 | Version: 0.0.1 4 | Synopsis: test OASIS 5 | Authors: ygrek 6 | License: BSD3 7 | BuildTools: ocamlbuild 8 | 9 | Library libtest 10 | Path: . 11 | Install: false 12 | Modules: Libtest 13 | BuildDepends: camlp4.macro 14 | 15 | Document libtest 16 | Title: API reference for libtest 17 | Type: ocamlbuild (0.1.0) 18 | InstallDir: $htmldir/libtest 19 | BuildTools+: ocamldoc 20 | Install: false 21 | XOCamlbuildPath: . 22 | XOCamlbuildLibraries: libtest 23 | 24 | Executable test 25 | Path: . 26 | Install: false 27 | MainIs: test.ml 28 | BuildDepends: libtest 29 | 30 | -------------------------------------------------------------------------------- /test/data/TestFull/bug619/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test 3 | Version: 0.0.1 4 | Synopsis: test OASIS 5 | Authors: Me 6 | License: BSD3 7 | 8 | Flag "pf-inet6" 9 | Description: Test INET6 sockets 10 | Default: true 11 | 12 | -------------------------------------------------------------------------------- /test/data/TestFull/bug623/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: bug623 3 | Version: 0 4 | Synopsis: Test bug 623 5 | Authors: Me 6 | License: GPL 7 | BuildTools: ocamlbuild 8 | 9 | Library empty 10 | Path: . 11 | Modules: A 12 | 13 | Test "false" 14 | Command: toto 15 | Run: true 16 | 17 | -------------------------------------------------------------------------------- /test/data/TestFull/bug623/a.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/bug738/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test 3 | Version: 0.1 4 | License: BSD3 5 | Authors: Jérémie Dimino 6 | BuildTools: ocamlbuild 7 | Synopsis: test 8 | Plugins: META (0.1.0) 9 | 10 | Library test 11 | Path: src 12 | Modules: 13 | Foo 14 | CompiledObject: Byte 15 | -------------------------------------------------------------------------------- /test/data/TestFull/bug738/src/foo.bar: -------------------------------------------------------------------------------- 1 | print_endline "Hello, world!" 2 | -------------------------------------------------------------------------------- /test/data/TestFull/bug791/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test 3 | Version: 0 4 | Synopsis: None 5 | Authors: Sylvain Le Gall 6 | License: LGPL-2.1 with OCaml linking exception 7 | 8 | Library "testA" 9 | Path: src 10 | BuildTools: ocamlbuild 11 | Modules: A, lib/B 12 | Install: false 13 | 14 | Executable "C" 15 | Path: test 16 | BuildTools: ocamlbuild 17 | BuildDepends: testA 18 | MainIs: C.ml 19 | Install: false 20 | 21 | -------------------------------------------------------------------------------- /test/data/TestFull/bug791/src/A.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/bug791/src/lib/B.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/bug791/test/C.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | open B 24 | -------------------------------------------------------------------------------- /test/data/TestFull/bug823/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test 3 | Version: 0 4 | Synopsis: test 5 | Authors: me 6 | License: GPL 7 | BuildTools: ocamlbuild 8 | PreConfCommand: ./preconf.sh 9 | PostConfCommand: ./postconf.sh 10 | -------------------------------------------------------------------------------- /test/data/TestFull/bug938/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test 3 | Version: 0 4 | Synopsis: test 5 | Authors: me 6 | License: GPL 7 | BuildTools: ocamlbuild 8 | PostConfCommand: ./postconf.sh 9 | 10 | Flag bar 11 | Description: enable support for bar 12 | Default$: flag(all) 13 | 14 | Flag all 15 | Description: enable everything 16 | Default: false 17 | 18 | Flag foo 19 | Description: enable support for foo 20 | Default$: flag(all) 21 | 22 | Flag over 23 | Description: overriden flag 24 | Default$: flag(all) 25 | -------------------------------------------------------------------------------- /test/data/TestFull/bug982/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test 3 | Version: 0 4 | Synopsis: test 5 | Authors: me 6 | License: GPL 7 | BuildTools: ocamlbuild 8 | PostConfCommand: ./test-setup-data.sh 9 | 10 | Executable test 11 | Path: ./ 12 | MainIs: A.ml 13 | CompiledObject: byte 14 | Install: false 15 | -------------------------------------------------------------------------------- /test/data/TestFull/bugClib/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: bugClib 3 | Version: 0.1 4 | Synopsis: Test a bug building C libraries 5 | Authors: Sylvain Le Gall 6 | License: LGPL-2.1 with OCaml linking exception 7 | Plugins: META (0.3) 8 | 9 | Library mylib 10 | Path: . 11 | BuildTools: ocamlbuild 12 | Modules: Foo, src/Bar 13 | CSources: src/fooC.c 14 | Pack: true 15 | if os_type(Win32) && ccomp_type(msvc) 16 | CCLib: ws2_32.lib 17 | else if os_type(Win32) 18 | CCLib: -lws2_32 19 | else 20 | CCLib: -lrt 21 | CCOpt: -D_LARGEFILE64_SOURCE 22 | -------------------------------------------------------------------------------- /test/data/TestFull/bugClib/foo.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/bugClib/src/bar.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/cppcc/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: cppcc 3 | Version: 0.1 4 | License: LGPL with OCaml linking exception 5 | Authors: Sylvain Le Gall 6 | Synopsis: Test how to handle C++ compiler. 7 | BuildTools: ocamlbuild 8 | Plugins: META (0.4) 9 | 10 | Library cppcc 11 | Path: . 12 | Modules: Cppcc 13 | CSources: testc++.c 14 | CCOpt: -Wall 15 | -------------------------------------------------------------------------------- /test/data/TestFull/cppcc/cppcc.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/create-parent-dir/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: no-install-doc 3 | Version: 0.1 4 | Synopsis: Test to not install non built doc 5 | Authors: Me 6 | License: GPL 7 | 8 | Document toto 9 | Type: Custom (0.1.0) 10 | Title: Nothing 11 | XCustom: echo toto > toto.txt 12 | XCustomClean: $rm toto.txt 13 | DataFiles: toto.txt ($datarootdir/toto/toto/) 14 | -------------------------------------------------------------------------------- /test/data/TestFull/customdoc/A.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/customdoc/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: with-c 3 | Version: 0.0.1 4 | Authors: Sylvain Le Gall 5 | LicenseFile: LICENSE 6 | License: LGPL with OCaml linking exception 7 | Synopsis: Minimal project in a single directory. 8 | Plugins: META 9 | BuildTools: ocamlbuild 10 | 11 | Library "with-a" 12 | Path: . 13 | Modules: A 14 | CompiledObject: byte 15 | 16 | Document "manual-custom" 17 | Type: custom (0.1.0) 18 | Title: Manual 19 | XCustom: $make doc 20 | XCustomClean: $make doc-clean 21 | BuildTools: make 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/dev/A.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | 24 | let () = () 25 | -------------------------------------------------------------------------------- /test/data/TestFull/dev/_oasis.v1: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: dev 3 | Version: 0.0.1 4 | Authors: Sylvain Le Gall 5 | LicenseFile: LICENSE 6 | License: LGPL with OCaml linking exception 7 | Synopsis: Minimal project for dev support. 8 | Plugins: META 9 | BuildTools: ocamlbuild 10 | 11 | Executable "myexec" 12 | Path: . 13 | MainIs: main.ml 14 | 15 | -------------------------------------------------------------------------------- /test/data/TestFull/dev/_oasis.v2: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: dev 3 | Version: 0.0.1 4 | Authors: Sylvain Le Gall 5 | LicenseFile: LICENSE 6 | License: LGPL with OCaml linking exception 7 | Synopsis: Minimal project for dev support. 8 | Plugins: META 9 | BuildTools: ocamlbuild 10 | 11 | Library "mylib" 12 | Path: . 13 | Modules: A 14 | 15 | Executable "myexec" 16 | Path: . 17 | MainIs: main.ml 18 | 19 | -------------------------------------------------------------------------------- /test/data/TestFull/dev/main.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/dynlink/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: dynlink 3 | Version: 0 4 | Synopsis: Test dynlink-ing. 5 | Authors: Sylvain Le Gall 6 | License: LGPL-2.1 with OCaml linking exception 7 | Plugins: META (0.4) 8 | BuildTools: ocamlbuild 9 | 10 | Library entry_point 11 | Path: . 12 | Modules: Entry_point 13 | 14 | Library dyn_loaded 15 | Path: . 16 | Modules: Dyn_loaded, Dyn_loaded_ext 17 | BuildDepends: entry_point 18 | FindlibParent: entry_point 19 | 20 | Executable "dynlink-test-byte" 21 | Path: . 22 | MainIs: main.ml 23 | CompiledObject: byte 24 | BuildDepends: entry_point, dynlink 25 | 26 | Executable "dynlink-test-native" 27 | Path: . 28 | MainIs: main.ml 29 | CompiledObject: native 30 | Build$: flag(native_dynlink) && flag(is_native) 31 | BuildDepends: entry_point, dynlink 32 | 33 | -------------------------------------------------------------------------------- /test/data/TestFull/dynrun_for_release/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | AlphaFeatures: dynrun_for_release 3 | Name: foo 4 | Version: 1.0 5 | Synopsis: Foo 6 | Authors: Sylvain 7 | License: GPL-3.0 8 | Plugins: StdFiles (0.4) 9 | 10 | Executable foo 11 | Path: . 12 | BuildTools: ocamlbuild 13 | MainIs: foo.ml 14 | BuildDepends: threads 15 | Install: false 16 | -------------------------------------------------------------------------------- /test/data/TestFull/flag-ccopt/A.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/flag-ccopt/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: cryptokit 3 | Version: 1.4 4 | Authors: Me 5 | License: LGPL-2 with OCaml linking exception 6 | BuildTools: ocamlbuild, ocamldoc 7 | 8 | Synopsis: Cryptographic primitives 9 | 10 | Flag zlib 11 | Description: Enable ZLib 12 | Default$: !os_type(Win32) 13 | 14 | Library cryptokit 15 | Path: ./ 16 | Modules: A 17 | BuildDepends: unix, num 18 | Install: false 19 | if flag(zlib) 20 | CCOpt: -O -DHAVE_ZLIB 21 | CCLib: -lz 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/issue107/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: issue107 3 | Version: 0.0.1 4 | Authors: Sylvain Le Gall 5 | LicenseFile: LICENSE 6 | License: LGPL with OCaml linking exception 7 | Synopsis: Minimal project in a single directory. 8 | Plugins: META 9 | BuildTools: ocamlbuild 10 | 11 | Executable "main" 12 | Path: . 13 | MainIs: main.ml 14 | -------------------------------------------------------------------------------- /test/data/TestFull/issue107/main.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/no-install-doc/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: no-install-doc 3 | Version: 0.1 4 | Synopsis: Test to not install non built doc 5 | Authors: Me 6 | License: GPL 7 | 8 | Document toto 9 | Type: None (0.1.0) 10 | Title: Nothing 11 | Install: false 12 | Build: false 13 | DataFiles: toto.txt 14 | -------------------------------------------------------------------------------- /test/data/TestFull/recurselib/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: recursivelib 3 | Version: 0.1 4 | License: GPL-3 5 | Authors: Sylvain Le Gall 6 | Synopsis: recursivelib 7 | 8 | Library binary 9 | Path: src 10 | BuildDepends: binary, num 11 | BuildTools: ocamlbuild 12 | Modules: Binary 13 | -------------------------------------------------------------------------------- /test/data/TestFull/recurselib/src/binary.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestFull/ver0.3/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: dev 3 | Version: 0.0.1 4 | Authors: Sylvain Le Gall 5 | License: LGPL with OCaml linking exception 6 | Synopsis: Minimal project to test v0.3 support. 7 | 8 | Test main 9 | Command: ocaml touch.ml test-done 10 | 11 | Document api 12 | Type: custom (0.3) 13 | Title: Manual 14 | XCustom: ocaml touch.ml doc-done 15 | -------------------------------------------------------------------------------- /test/data/TestFull/with-cclib/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test-oasis-c-dependency 3 | Version: 0.1 4 | Synopsis: test oasis with c dependency 5 | Authors: test 6 | License: LGPL-2.1 with OCaml linking exception 7 | Plugins: DevFiles (0.1), Meta (0.1) 8 | BuildTools: ocamlbuild 9 | 10 | Library test_oasis_c_dependency 11 | Path: src 12 | Modules: Stringprep 13 | CSources: stringprep_stubs.c 14 | CCLib: -lidn 15 | Install: false 16 | 17 | Executable test_compile 18 | Path: src 19 | MainIs: test_compile.ml 20 | BuildDepends: test_oasis_c_dependency 21 | Install: false 22 | -------------------------------------------------------------------------------- /test/data/TestOASISLibrary/source_patterns/L1.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestOASISLibrary/source_patterns/L2.mli: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestOASISLibrary/source_patterns/L3.mlify: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/test/data/TestOASISLibrary/source_patterns/L3.mlify -------------------------------------------------------------------------------- /test/data/TestOASISLibrary/source_patterns/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: source_patterns 3 | Version: 0.0.1 4 | Authors: Foo Bar 5 | License: LGPL with OCaml linking exception 6 | Synopsis: Test source_patterns with library 7 | AlphaFeatures: source_patterns 8 | 9 | Library lib 10 | Path: . 11 | Modules: L1, L2, L3 12 | ImplementationPatterns+: ${module}.mlify 13 | -------------------------------------------------------------------------------- /test/data/TestOASISObject/source_patterns/O1.eliom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/test/data/TestOASISObject/source_patterns/O1.eliom -------------------------------------------------------------------------------- /test/data/TestOASISObject/source_patterns/O1.eliomi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/test/data/TestOASISObject/source_patterns/O1.eliomi -------------------------------------------------------------------------------- /test/data/TestOASISObject/source_patterns/O2.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestOASISObject/source_patterns/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: source_patterns 3 | Version: 0.0.1 4 | Authors: Foo Bar 5 | License: LGPL with OCaml linking exception 6 | Synopsis: Test source_patterns 7 | BetaFeatures: section_object 8 | AlphaFeatures: source_patterns 9 | 10 | Object object1 11 | Path: . 12 | Modules: O1 13 | InterfacePatterns: ${module}.eliomi 14 | ImplementationPatterns: ${module}.eliom 15 | 16 | Object object2 17 | Path: . 18 | Modules: O2 19 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/LICENSE: -------------------------------------------------------------------------------- 1 | ******************************************************************************** 2 | * OASIS: architecture for building OCaml libraries and applications * 3 | * * 4 | * Copyright (C) 2011-2016, Sylvain Le Gall * 5 | * Copyright (C) 2008-2011, OCamlCore SARL * 6 | * * 7 | * This library is free software; you can redistribute it and/or modify it * 8 | * under the terms of the GNU Lesser General Public License as published by * 9 | * the Free Software Foundation; either version 2.1 of the License, or (at * 10 | * your option) any later version, with the OCaml static compilation * 11 | * exception. * 12 | * * 13 | * This library is distributed in the hope that it will be useful, but * 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * 15 | * or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more * 16 | * details. * 17 | * * 18 | * You should have received a copy of the GNU Lesser General Public License * 19 | * along with this library; if not, write to the Free Software Foundation, * 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 21 | ******************************************************************************** 22 | 23 | toto 24 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/bug1236.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: foo 3 | Version: 1.0 4 | Synopsis: test roject 5 | Authors: gs 6 | License: LGPL 7 | Plugins: META (0.3) 8 | 9 | Executable hello 10 | Path: . 11 | BuildTools: ocamlbuild 12 | MainIs: hello.ml 13 | 14 | Library lib 15 | Path: . 16 | Modules: lib 17 | FindlibName: lib 18 | BuildTools: ocamlbuild 19 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/bug1239.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | OCamlVersion: >= 3.12 3 | Name: foo 4 | Version: 1.0 5 | Synopsis: Foo 6 | Authors: Philippe Veber 7 | License: GPL 8 | LicenseFile: LICENCE 9 | Plugins: META (0.3), DevFiles (0.3) 10 | BuildTools: ocamlbuild 11 | 12 | 13 | Library foo 14 | Path: src 15 | Modules: M 16 | 17 | Library bar 18 | Path: src/bar 19 | Pack: true 20 | Modules: A 21 | BuildDepends: foo 22 | 23 | Executable baz 24 | Path: src/baz 25 | MainIs: baz.ml 26 | BuildDepends: bar 27 | BuildTools: ocamlbuild 28 | Install: false 29 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/bug1295.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: lightspeed 3 | Version: 0.0.0 4 | #LicenseFile: ? 5 | License: GPL-3+ with OCaml linking exception 6 | Authors: Goswin von Brederlow 7 | Copyrights: 8 | (C) 2012 Goswin von Brederlow 9 | #Homepage: http://???/ 10 | BuildTools: ocamlbuild 11 | Plugins: DevFiles (0.2), META (0.2) 12 | 13 | Synopsis: Turn based strategy game in a galaxy with lightspeed limit 14 | Description: 15 | Game in the style of the Master of Orion but with the speed of light 16 | introducing a time lag for distant star systems. 17 | 18 | Flag strict 19 | Description: Strict compile-time checks 20 | Default: true 21 | 22 | Executable server 23 | Path: . 24 | Install: true 25 | CompiledObject: best 26 | MainIs: server.ml 27 | BuildDepends: bigarray, extunix, unix 28 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/bug571.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test 3 | Version: 0 4 | Synopsis: test 5 | Authors: me 6 | License: GPL 7 | BuildTools: ocamlbuild 8 | 9 | Executable test 10 | Path: ./ 11 | MainIs: A.ml 12 | ByteOpt: -package num 13 | BuildDepends: oUnit 14 | CompiledObject: byte 15 | Install: false 16 | 17 | Executable "test-opt" 18 | Path: ./ 19 | Build$: flag(is_native) 20 | MainIs: A.ml 21 | NativeOpt: -package num 22 | BuildDepends: oUnit 23 | CompiledObject: native 24 | Install: false 25 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/comment-in-field.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test 3 | Version: test 4 | Synopsis: test 5 | Authors: test 6 | License: GPL 7 | Synopsis: toto 8 | et toto 9 | Plugins: META (0.1), 10 | # StdFiles (0.1), 11 | DevFiles (0.1) 12 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/src/stuff/A.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/src/stuff/B.mli: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/src/stuff/C.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/src/stuff/META: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # OASIS: architecture for building OCaml libraries and applications # 3 | # # 4 | # Copyright (C) 2011-2016, Sylvain Le Gall # 5 | # Copyright (C) 2008-2011, OCamlCore SARL # 6 | # # 7 | # This library is free software; you can redistribute it and/or modify it # 8 | # under the terms of the GNU Lesser General Public License as published by # 9 | # the Free Software Foundation; either version 2.1 of the License, or (at # 10 | # your option) any later version, with the OCaml static compilation # 11 | # exception. # 12 | # # 13 | # This library is distributed in the hope that it will be useful, but # 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # 15 | # or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more # 16 | # details. # 17 | # # 18 | # You should have received a copy of the GNU Lesser General Public License # 19 | # along with this library; if not, write to the Free Software Foundation, # 20 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # 21 | ################################################################################ 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/src/toto.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test-extra-blanks.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: hamt 3 | Version: 0.1 4 | Synopsis: Hash Array Mapped Tries 5 | Authors: Thibault Suzanne, Gabriel Scherer, Rudi Grinberg 6 | BuildTools: ocamlbuild 7 | License: MIT 8 | Plugins: META (0.4) 9 | 10 | Library hamt 11 | Path: lib 12 | BuildTools: ocamlbuild 13 | Modules: Hamt 14 | Findlibname: hamt 15 | InternalModules: BitUtils 16 | BuildDepends: monomorphic 17 | 18 | Executable test_runner 19 | Path: lib_test 20 | MainIs: test.ml 21 | Build$: flag(tests) 22 | Custom: true 23 | CompiledObject: best 24 | Install: false 25 | BuildDepends: hamt,oUnit 26 | 27 | Executable param 28 | Path: lib_test 29 | MainIs: param.ml 30 | Build$: flag(tests) 31 | Custom: true 32 | CompiledObject: best 33 | Install: false 34 | BuildDepends: hamt 35 | 36 | Test test 37 | Run$: flag(tests) 38 | Command: $test_runner 39 | WorkingDirectory: lib_test 40 | 41 | 42 | Executable bench1 43 | Path: lib_test 44 | MainIs: bench1.ml 45 | Build$: flag(tests) 46 | Custom: true 47 | CompiledObject: best 48 | Install: false 49 | BuildDepends: threads, hamt, core_bench 50 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test-freeform.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: oasis 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | BuildType: None (0.0.1) 9 | BuildDepends: oUnit (>= 0.1.2), benchmark (>= 0.6) 10 | Description: 11 | a 12 | b 13 | . 14 | c 15 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test1.oasis: -------------------------------------------------------------------------------- 1 | Name: oasis 2 | Version: 0.0.1 3 | OASISFormat: 0.3 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | BuildType: None (0.2) 9 | BuildDepends: oUnit (>= 0.1.2), benchmark (>= 0.6) 10 | Description: 11 | This is a test to check that everything is working great 12 | with this kind of parser. 13 | . 14 | Coucou. 15 | 16 | Flag devmod 17 | Description: build for developper 18 | Default: false 19 | 20 | # Only available on i386 21 | Flag ostest 22 | Description: Test on OS 23 | Default: false 24 | if system(hurd) && architecture(i386) 25 | Default: true 26 | 27 | Flag linuxtest64 28 | Description: Linux 64bits only 29 | Default: false 30 | if system(linux) && architecture(amd64) 31 | Default: true 32 | else 33 | Default: false 34 | 35 | Flag linuxtest32 36 | Description: Linux 32bits only 37 | Default: false 38 | if system(linux_elf) && architecture(i386) 39 | Default: true 40 | 41 | Library toto 42 | Path: src/stuff 43 | if architecture(amd64) 44 | Build: true 45 | 46 | if architecture(amd64) 47 | Build: false 48 | else 49 | Build: true 50 | 51 | if flag(linuxtest32) || flag(linuxtest64) || flag(ostest) 52 | Build: false 53 | else 54 | Build: true 55 | 56 | Library stuff 57 | Path: src/stuff 58 | Modules: A, B, C 59 | 60 | Executable toto 61 | Path: src 62 | MainIs: toto.ml 63 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test10.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: oasis 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | Synopsis+: with extra text 6 | License: GPL 7 | LicenseFile: LICENSE 8 | Authors: Sylvain Le Gall 9 | Authors+: Another one 10 | 11 | Flag "test" 12 | Description: this is a test 13 | Default$: os_type(win32) 14 | 15 | Test main 16 | Command: main 17 | if flag(test) 18 | Command+: -test 19 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test11.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: oasis 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | ConfType: MyConf 9 | BuildType: MyNone (0.2) 10 | InstallType: MyInstall 11 | 12 | Test main 13 | Type: MyTest 14 | Command: false 15 | 16 | Document changelog 17 | Type: MyDoc 18 | Title: changes 19 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test12.oasis: -------------------------------------------------------------------------------- 1 | # Bug 811 2 | OASISFormat: 0.3 3 | Name: foo 4 | Version: 0.0.1 5 | Synopsis: Just a test 6 | License: GPL 7 | LicenseFile: LICENSE 8 | Authors: Sylvain Le Gall 9 | 10 | Description: 11 | Thin bindings to various low-level system APIs (often non-portable) 12 | which are not covered by Unix module. 13 | . 14 | Example functions: 15 | * uname 16 | * statvfs 17 | * fsync 18 | 19 | Document foo 20 | Title: my foo thesis 21 | Abstract: 22 | Foo is a great library for: 23 | * pattern matching 24 | * GC 25 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test13.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: foo 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | BetaFeatures: section_object 9 | 10 | Library test1 11 | FindlibName: test 12 | Path: src/ 13 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test14.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: foo 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | Plugins: META (0.2) 9 | BuildTools: ocamlbuild 10 | 11 | 12 | Library test1 13 | FindlibName: test 14 | Modules: A 15 | Path: . 16 | 17 | Library test2 18 | FindlibParent: test1 19 | Modules: B 20 | Path: . 21 | 22 | Library test3 23 | FindlibParent: test2 24 | Modules: C 25 | Path: . 26 | 27 | Library test5 28 | FindlibParent: test3 29 | FindlibContainers: test4 30 | FindlibName: test5p 31 | Modules: D 32 | Path: . 33 | 34 | Library test6 35 | FindlibParent: test5 36 | Modules: E 37 | Path: . 38 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test2.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: Stuff 3 | Version: 1.2.3.0 4 | Copyrights: (C) 2003-2008 J. R. Hacker 5 | Homepage: http://foo.com 6 | Authors: J. R. Hacker 7 | Maintainers: J. R. Hacker 8 | LicenseFile: LICENSE 9 | License: LGPL with OCaml linking exception 10 | Buildtype: None (0.0.1) 11 | 12 | # blank lines are ignored, as are comments 13 | 14 | Synopsis: some stuff 15 | Description: 16 | This is a rather short desc. 17 | . 18 | (with an empty line) 19 | 20 | Library stuff 21 | Path: src/stuff 22 | Modules: A, B, C 23 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test3.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: oasis 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | BuildType: None (0.0.1) 9 | Description: 10 | This is a test to check that everything is working great 11 | with this kind of parser. 12 | . 13 | Coucou. 14 | 15 | BuildDepends: 16 | extlib 17 | 18 | Library stuff 19 | Path: src/stuff 20 | Modules: A, B, C 21 | 22 | Flag devmod 23 | Description: build for developper 24 | if architecture(amd64) 25 | Default: true 26 | else 27 | Default: false 28 | 29 | 30 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test4.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: oasis 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | BuildType: None (0.0.1) 9 | XTest: true 10 | Description: 11 | This is a test to check that everything is working great 12 | with this kind of parser. 13 | . 14 | Coucou. 15 | 16 | BuildDepends: 17 | extlib 18 | 19 | Library stuff 20 | Path: src/stuff 21 | Modules: A, B, C 22 | XTest: true 23 | 24 | Flag devmod 25 | Description: build for developper 26 | Default: false 27 | XToto: true 28 | if architecture(amd64) 29 | Default: true 30 | 31 | 32 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test5.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: oasis 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | 9 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test6.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: oasis 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | Homepage: http://toto-acme.org 9 | 10 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test7.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: oasis 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | BuildType: None (0.0.1) 9 | BuildDepends: oUnit (>= 0.1.2), benchmark (>= 0.6) 10 | Description: 11 | This is a test to check that everything is working great 12 | with this kind of parser. 13 | . 14 | Coucou. 15 | 16 | Library "toto-test" 17 | Path: src/stuff 18 | Build: true 19 | 20 | Executable "toto-test" 21 | Path: src 22 | MainIs: toto.ml 23 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test8.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: foo 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | 9 | SourceRepository head 10 | Type: darcs 11 | Location: http://darcs.ocamlcore.org/repos/foo 12 | Browser: http://darcs.ocamlcore.org/cgi-bin/darcsweb.cgi?r=foo 13 | 14 | SourceRepository this 15 | Type: darcs 16 | Location: http://darcs.ocamlcore.org/repos/foo 17 | Tag: $version 18 | -------------------------------------------------------------------------------- /test/data/TestOASISParse/test9.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: foo 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | 9 | Library test1 10 | FindlibName: test 11 | Path: src/ 12 | 13 | Library pa_test1 14 | FindlibName: syntax 15 | FindlibParent: test1 16 | Path: src/test 17 | 18 | Library test_with_str 19 | FindlibName: str 20 | FindlibParent: test1 21 | Path: src/str 22 | 23 | Executable test 24 | Path: test 25 | MainIs: main.ml 26 | BuildDepends: oUnit, test, test.syntax, test.str, 27 | test1, pa_test1, test_with_str 28 | -------------------------------------------------------------------------------- /test/data/TestPluginDevFiles/compiled_setup_ml/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | AlphaFeatures: compiled_setup_ml 3 | Name: foo 4 | Version: 1.0 5 | Synopsis: Foo 6 | Authors: Jacques-Pascal Deplaix 7 | License: GPL-3.0 8 | Plugins: DevFiles (0.4) 9 | 10 | Executable foo 11 | Path: . 12 | BuildTools: ocamlbuild 13 | MainIs: foo.ml 14 | Install: false 15 | -------------------------------------------------------------------------------- /test/data/TestPluginDevFiles/test-devfiles1.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: oasis 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | BuildType: None (0.2) 9 | BuildDepends: oUnit (>= 0.1.2), benchmark (>= 0.6) 10 | Plugins: DevFiles (0.2) 11 | Description: 12 | This is a test to check that everything is working great 13 | with this kind of parser. 14 | . 15 | Coucou. 16 | -------------------------------------------------------------------------------- /test/data/TestPluginInternal/findlib_directory/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: findlib_directory 3 | Version: 0.0.1 4 | Authors: Foo Bar 5 | BuildTools: ocamlbuild 6 | License: LGPL with OCaml linking exception 7 | Synopsis: Test installation in sub-directories of findlib. 8 | BetaFeatures: section_object, findlib_directory 9 | Plugins: META(0.4) 10 | 11 | Library library 12 | Path: . 13 | Modules: L 14 | FindlibName: foobar 15 | FindlibDirectory: lib 16 | 17 | Object object 18 | Path: . 19 | Modules: O 20 | FindlibFullName: foobar.object 21 | FindlibDirectory: obj 22 | -------------------------------------------------------------------------------- /test/data/TestPluginInternal/findlib_extra_files/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: findlib_extra_files 3 | Version: 0.0.1 4 | Authors: Foo Bar 5 | BuildTools: ocamlbuild 6 | License: LGPL with OCaml linking exception 7 | Synopsis: Test installation of extra files with findlib. 8 | BetaFeatures: findlib_extra_files 9 | Plugins: META(0.4) 10 | 11 | Library library 12 | Path: . 13 | Modules: L 14 | FindlibName: foobar 15 | FindlibExtraFiles: _oasis 16 | -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/bug1659-ocamlbuild-support-plugins/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: b1659-ocamlbuild-support-plugins 3 | Version: 0.1 4 | License: LGPL-2.1 with OCaml linking exception 5 | BuildType: ocamlbuild (0.4) 6 | Authors: Sylvain Le Gall 7 | Synopsis: Check that '-plugin package(x)' works. 8 | AlphaFeatures: ocamlbuild_more_args 9 | BuildTools: ocamlbuild 10 | OCamlVersion: >= 4.01 11 | 12 | XOCamlbuildPluginTags: package(oUnit) 13 | 14 | Library foo 15 | Path: . 16 | Modules: A 17 | -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/env-tags/A.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/env-tags/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | OCamlVersion: >= 3.12.1 3 | Name: env-tags 4 | Version: 0.0.1 5 | Authors: Tomohiro Matsuyama 6 | LicenseFile: LICENSE 7 | License: LGPL with OCaml linking exception 8 | Synopsis: Minimal project. 9 | BuildTools: ocamlbuild 10 | 11 | Library foo 12 | Path: . 13 | Modules: A 14 | -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/external-c-rebuild/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: missing-source 3 | Version: 0 4 | BuildType: OCamlbuild (0.3) 5 | License: GPL-3 6 | Authors: foo 7 | Synopsis: foo 8 | Plugins: META (0.4), StdFiles (0.4), DevFiles (0.4) 9 | 10 | Library a_test 11 | Path: . 12 | BuildTools: ocamlbuild 13 | CompiledObject: best 14 | CSources: c_source.c 15 | CCOpt: -I.. 16 | Modules: A 17 | 18 | Executable b_test 19 | Path: . 20 | BuildTools: ocamlbuild 21 | CompiledObject: best 22 | BuildDepends: a_test 23 | MainIs: B.ml -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/missing-source/A.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/missing-source/C.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/missing-source/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: missing-source 3 | Version: 0 4 | BuildType: OCamlbuild (0.3) 5 | License: GPL-3 6 | Authors: foo 7 | Synopsis: foo 8 | BuildTools: ocamlbuild 9 | 10 | Library test 11 | Path: . 12 | Modules: A, B, C 13 | -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/pr61-pass-thread-to-C-files/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: test-pass-threads-to-c-files 3 | Version: 0.1 4 | Synopsis: test oasis with c files and dependency on threads 5 | Authors: test 6 | License: LGPL-2.1 with OCaml linking exception 7 | Plugins: DevFiles (0.1), Meta (0.1) 8 | BuildTools: ocamlbuild 9 | 10 | Library test_pass_threads_to_c_files 11 | Path: src 12 | Modules: Dummy 13 | CSources: test.c 14 | BuildDepends: threads 15 | Install: false 16 | -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/pr63-no-automatic-syntax/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: test 3 | Version: 0 4 | Synopsis: test 5 | Authors: foo 6 | License: MIT 7 | BuildTools: ocamlbuild, camlp4 8 | AlphaFeatures: no_automatic_syntax 9 | 10 | Executable test 11 | Path: ./ 12 | MainIs: A.ml 13 | BuildDepends: camlp4 14 | CompiledObject: byte 15 | Install: false 16 | -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/set-ocamlfind/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | OCamlVersion: >= 3.12.1 3 | Name: set-ocamlfind 4 | Version: 0.0.1 5 | Authors: Sylvain Le Gall 6 | LicenseFile: LICENSE 7 | License: LGPL with OCaml linking exception 8 | Synopsis: Minimal project. 9 | BuildTools: ocamlbuild 10 | 11 | Executable "myexec" 12 | Path: . 13 | MainIs: main.ml 14 | 15 | -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/use-ocamlfind/A.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestPluginOCamlbuild/use-ocamlfind/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | OCamlVersion: >= 3.12.1 3 | Name: use-ocamlfind 4 | Version: 0.0.1 5 | Authors: Sylvain Le Gall 6 | LicenseFile: LICENSE 7 | License: LGPL with OCaml linking exception 8 | Synopsis: Minimal project. 9 | BuildTools: ocamlbuild 10 | 11 | Library foo 12 | Path: . 13 | Modules: A 14 | BuildDepends: oUnit 15 | 16 | Document api 17 | Title: API reference for foo 18 | Type: ocamlbuild (0.4) 19 | BuildTools+: ocamldoc 20 | XOCamlbuildPath: . 21 | XOCamlbuildLibraries: foo 22 | -------------------------------------------------------------------------------- /test/data/TestPluginOMake/bug1736/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: expomake 3 | Version: 0.0 4 | Synopsis: Experimental omake reimplementation 5 | Authors: Gerd Stolpmann 6 | License: GPL 7 | BuildTools+: omake 8 | BuildType: OMake (0.4) 9 | OCamlVersion: >= 4.01 10 | 11 | Library liba 12 | Modules: Mod1 13 | Path: liba 14 | BuildDepends: libb 15 | 16 | Library libb 17 | Modules: Mod2 18 | Path: libb 19 | 20 | Executable t 21 | Path: . 22 | MainIs: main.ml 23 | BuildDepends: liba 24 | 25 | # Crucial here with regard to the bug: t needs liba which needs libb. 26 | # Buggy versions of the omake plugin computed the deps of t as 27 | # "liba libb" (in alphabetical order), but the correct deps are "libb liba". 28 | # With the wrong deps, t cannot be linked. 29 | -------------------------------------------------------------------------------- /test/data/TestPluginOMake/bug1737/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: expomake 3 | Version: 0.0 4 | Synopsis: Experimental omake reimplementation 5 | Authors: Gerd Stolpmann 6 | License: GPL 7 | BuildTools+: omake 8 | BuildType: OMake (0.4) 9 | InstallType: OMake (0.4) 10 | OCamlVersion: >= 4.01 11 | 12 | Library liba 13 | Pack: true 14 | Modules: modules/Mod1 15 | Path: liba 16 | -------------------------------------------------------------------------------- /test/data/TestPluginOMake/bug1747/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: bug1747 3 | Version: 0.0 4 | Synopsis: Only link libraries we depend on 5 | Authors: Gerd Stolpmann 6 | License: GPL 7 | BuildTools+: omake 8 | BuildType: OMake (0.4) 9 | OCamlVersion: >= 4.01 10 | 11 | Library liba 12 | Modules: Mod1 13 | Path: liba 14 | Build: true 15 | CompiledObject: byte 16 | CCLib: -linvalid 17 | Install: false 18 | 19 | Executable t 20 | Path: . 21 | MainIs: main.ml 22 | Build: true 23 | CompiledObject: byte 24 | Install: true 25 | 26 | # The point is here that "t" doesn't have any dependencies. 27 | # We also have a library liba which is broken, and cannot 28 | # be used (because of -linvalid), although the build is 29 | # expected to succeed. 30 | # The wrong behavior is that it is tried to link liba into t. 31 | -------------------------------------------------------------------------------- /test/data/TestPluginOMake/complex/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | OCamlVersion: >= 4.01 3 | Name: complex 4 | Version: 0.1 5 | Synopsis: Libraries and executables 6 | Authors: Gerd Stolpmann 7 | License: LGPL with OCaml linking exception 8 | BuildTools: omake 9 | BuildType: OMake (0.4) 10 | InstallType: OMake (0.4) 11 | Plugins: META (0.4) 12 | 13 | Library liba 14 | Modules: A2 15 | InternalModules: A1 16 | Path: src/liba 17 | BuildDepends: str 18 | Install: true 19 | 20 | Library libb 21 | Modules: B1 22 | Path: src/libb 23 | BuildDepends: liba 24 | Install: true 25 | 26 | Library libc_ 27 | Modules: C1 28 | Path: src/libc_ 29 | BuildDepends: libb 30 | Install: true 31 | 32 | Library libwithc 33 | Modules: P 34 | CSources: pc.c 35 | Path: src/libwithc 36 | Install: true 37 | 38 | Library packedlib 39 | Modules: Q 40 | Path: src/packedlib 41 | Pack: true 42 | Install: true 43 | # -bin-annot only available for OCaml >= 4.00.0 44 | ByteOpt: -bin-annot 45 | NativeOpt: -bin-annot 46 | 47 | Executable exec 48 | MainIs: x2.ml 49 | Path: src/exec 50 | BuildDepends: libc_, libwithc, packedlib 51 | Install: true 52 | 53 | Document interdepend 54 | Title: API reference for interdepend 55 | Type: omake (0.4) 56 | InstallDir: $htmldir/interdepend 57 | Install: true 58 | BuildTools+: ocamldoc 59 | XOMakePath: src 60 | XOMakeLibraries: liba, libb, libc_ 61 | -------------------------------------------------------------------------------- /test/data/TestPluginOMake/github105/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: github105 3 | Version: 0.0 4 | Synopsis: Problem with case-insensitive filesystem 5 | Authors: Gerd Stolpmann 6 | License: GPL 7 | BuildTools+: omake 8 | BuildType: OMake (0.4) 9 | OCamlVersion: >= 4.01 10 | 11 | Library liba 12 | Modules: Mod1 13 | Path: liba 14 | Pack: true 15 | Build: true 16 | Install: false 17 | 18 | Library libb 19 | Modules: Mod2 20 | Path: libb 21 | BuildDepends: liba 22 | Build: true 23 | Install: false 24 | 25 | Executable t 26 | Path: . 27 | MainIs: main.ml 28 | BuildDepends: libb 29 | Build: true 30 | Install: true 31 | -------------------------------------------------------------------------------- /test/data/TestPluginOMake/noocamlversion.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: simplelib 3 | Version: 0.0.1 4 | Authors: Mauricio Fernandez 5 | Maintainers: Mauricio Fernandez 6 | Copyrights: (C) 2008 Mauricio Fernandez 7 | LicenseFile: LICENSE 8 | License: LGPL with OCaml linking exception 9 | BuildTools: omake 10 | BuildType: omake (0.4) 11 | BuildDepends: unix 12 | 13 | Synopsis: Minimal ADT just to illustrate how libs work. 14 | Description: 15 | Minimal ADT just to illustrate how libs work. 16 | . 17 | Not much more to say 18 | 19 | Library simplelib 20 | Path: src 21 | Modules: Foo, Bar 22 | -------------------------------------------------------------------------------- /test/data/TestPluginOMake/ocamlversion312.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | OCamlVersion: >= 3.12 3 | Name: simplelib 4 | Version: 0.0.1 5 | Authors: Mauricio Fernandez 6 | Maintainers: Mauricio Fernandez 7 | Copyrights: (C) 2008 Mauricio Fernandez 8 | LicenseFile: LICENSE 9 | License: LGPL with OCaml linking exception 10 | BuildTools: omake 11 | BuildType: omake (0.4) 12 | BuildDepends: unix 13 | 14 | Synopsis: Minimal ADT just to illustrate how libs work. 15 | Description: 16 | Minimal ADT just to illustrate how libs work. 17 | . 18 | Not much more to say 19 | 20 | Library simplelib 21 | Path: src 22 | Modules: Foo, Bar 23 | -------------------------------------------------------------------------------- /test/data/TestPluginOMake/ocamlversion401.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | OCamlVersion: >= 4.01 3 | Name: simplelib 4 | Version: 0.0.1 5 | Authors: Mauricio Fernandez 6 | Maintainers: Mauricio Fernandez 7 | Copyrights: (C) 2008 Mauricio Fernandez 8 | LicenseFile: LICENSE 9 | License: LGPL with OCaml linking exception 10 | BuildTools: omake 11 | BuildType: omake (0.4) 12 | BuildDepends: unix 13 | 14 | Synopsis: Minimal ADT just to illustrate how libs work. 15 | Description: 16 | Minimal ADT just to illustrate how libs work. 17 | . 18 | Not much more to say 19 | 20 | Library simplelib 21 | Path: src 22 | Modules: Foo, Bar 23 | -------------------------------------------------------------------------------- /test/data/TestPluginOMake/ocamlversion402.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | OCamlVersion: >= 4.02 3 | Name: simplelib 4 | Version: 0.0.1 5 | Authors: Mauricio Fernandez 6 | Maintainers: Mauricio Fernandez 7 | Copyrights: (C) 2008 Mauricio Fernandez 8 | LicenseFile: LICENSE 9 | License: LGPL with OCaml linking exception 10 | BuildTools: omake 11 | BuildType: omake (0.4) 12 | BuildDepends: unix 13 | 14 | Synopsis: Minimal ADT just to illustrate how libs work. 15 | Description: 16 | Minimal ADT just to illustrate how libs work. 17 | . 18 | Not much more to say 19 | 20 | Library simplelib 21 | Path: src 22 | Modules: Foo, Bar 23 | -------------------------------------------------------------------------------- /test/data/TestPluginOMake/simplelib/LICENSE: -------------------------------------------------------------------------------- 1 | ******************************************************************************** 2 | * OASIS: architecture for building OCaml libraries and applications * 3 | * * 4 | * Copyright (C) 2011-2016, Sylvain Le Gall * 5 | * Copyright (C) 2008-2011, OCamlCore SARL * 6 | * * 7 | * This library is free software; you can redistribute it and/or modify it * 8 | * under the terms of the GNU Lesser General Public License as published by * 9 | * the Free Software Foundation; either version 2.1 of the License, or (at * 10 | * your option) any later version, with the OCaml static compilation * 11 | * exception. * 12 | * * 13 | * This library is distributed in the hope that it will be useful, but * 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * 15 | * or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more * 16 | * details. * 17 | * * 18 | * You should have received a copy of the GNU Lesser General Public License * 19 | * along with this library; if not, write to the Free Software Foundation, * 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 21 | ******************************************************************************** 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestPluginOMake/simplelib/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | OCamlVersion: >= 4.01 3 | Name: simplelib 4 | Version: 0.0.1 5 | Authors: Mauricio Fernandez 6 | Maintainers: Mauricio Fernandez 7 | Copyrights: (C) 2008 Mauricio Fernandez 8 | LicenseFile: LICENSE 9 | License: LGPL with OCaml linking exception 10 | BuildTools: omake 11 | BuildType: omake (0.4) 12 | BuildDepends: unix 13 | InstallType: omake (0.4) 14 | 15 | Synopsis: Minimal ADT just to illustrate how libs work. 16 | Description: 17 | Minimal ADT just to illustrate how libs work. 18 | . 19 | Not much more to say 20 | 21 | Library simplelib 22 | Path: src 23 | Modules: Foo, Bar 24 | 25 | Document simplelib 26 | Title: API reference for simplelib 27 | Type: omake (0.4) 28 | InstallDir: $htmldir/simplelib 29 | BuildTools+: ocamldoc 30 | XOMakePath: src 31 | XOMakeLibraries: simplelib 32 | -------------------------------------------------------------------------------- /test/data/TestPluginStdFiles/oasis/AUTHORS.md.exp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Authors of oasis: 5 | 6 | * Sylvain Le Gall 7 | 8 | Current maintainers of oasis: 9 | 10 | * Sylvain Le Gall 11 | 12 | 13 | -------------------------------------------------------------------------------- /test/data/TestPluginStdFiles/oasis/INSTALL.md.exp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | This is the INSTALL file for the oasis distribution. 5 | 6 | This package uses OASIS to generate its build system. See section OASIS for 7 | full information. 8 | 9 | Dependencies 10 | ============ 11 | 12 | In order to compile this package, you will need: 13 | 14 | * ocaml (>= 3.11.2) 15 | * findlib (>= 1.3.1) 16 | * odn (>= 0.0.11) 17 | * make 18 | * ocamlmod 19 | * ocamlify 20 | 21 | Installing 22 | ========== 23 | 24 | 1. Uncompress the source archive and go to the root of the package 25 | 2. Run 'ocaml setup.ml -configure' 26 | 3. Run 'ocaml setup.ml -build' 27 | 4. Run 'ocaml setup.ml -install' 28 | 29 | Uninstalling 30 | ============ 31 | 32 | 1. Go to the root of the package 33 | 2. Run 'ocaml setup.ml -uninstall' 34 | 35 | OASIS 36 | ===== 37 | 38 | OASIS is a program that generates a setup.ml file using a simple '_oasis' 39 | configuration file. The generated setup only depends on the standard OCaml 40 | installation: no additional library is required. 41 | 42 | 43 | -------------------------------------------------------------------------------- /test/data/TestPluginStdFiles/oasis/README.md.exp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | oasis - Architecture for building OCaml libraries and applications 5 | ================================================================== 6 | 7 | OASIS generates a full configure, build and install system for your 8 | application. It starts with a simple `_oasis` file at the toplevel of your 9 | project and creates everything required. 10 | 11 | It uses external tools like OCamlbuild and it can be considered as the glue 12 | between various subsystems that do the job. It should support the following 13 | tools: 14 | 15 | * OCamlbuild 16 | * OMake (todo) 17 | * OCamlMakefile (todo) 18 | * ocaml-autoconf (todo) 19 | 20 | It also features a do-it-yourself command line invocation and an internal 21 | configure/install scheme. Libraries are managed through findlib. It has been 22 | tested on GNU Linux and Windows. 23 | 24 | It also allows to have standard entry points and description. It helps to 25 | integrates your libraries and software with third parties tools like GODI. 26 | 27 | See the file [INSTALL.md](INSTALL.md) for building and installation 28 | instructions. 29 | 30 | [Home page](http://oasis.forge.ocamlcore.org/) 31 | 32 | [Bug reports](https://forge.ocamlcore.org/bugs) 33 | 34 | Copyright and license 35 | --------------------- 36 | 37 | (C) 2008-2010 OCamlCore SARL 38 | 39 | oasis is distributed under the terms of the GNU Lesser General Public License 40 | version 2.1 with OCaml linking exception. 41 | 42 | See [COPYING.txt](COPYING.txt) for more information. 43 | 44 | 45 | -------------------------------------------------------------------------------- /test/data/TestPluginStdFiles/oasis/foo.ml: -------------------------------------------------------------------------------- 1 | (******************************************************************************) 2 | (* OASIS: architecture for building OCaml libraries and applications *) 3 | (* *) 4 | (* Copyright (C) 2011-2016, Sylvain Le Gall *) 5 | (* Copyright (C) 2008-2011, OCamlCore SARL *) 6 | (* *) 7 | (* This library is free software; you can redistribute it and/or modify it *) 8 | (* under the terms of the GNU Lesser General Public License as published by *) 9 | (* the Free Software Foundation; either version 2.1 of the License, or (at *) 10 | (* your option) any later version, with the OCaml static compilation *) 11 | (* exception. *) 12 | (* *) 13 | (* This library is distributed in the hope that it will be useful, but *) 14 | (* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *) 15 | (* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *) 16 | (* details. *) 17 | (* *) 18 | (* You should have received a copy of the GNU Lesser General Public License *) 19 | (* along with this library; if not, write to the Free Software Foundation, *) 20 | (* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *) 21 | (******************************************************************************) 22 | 23 | -------------------------------------------------------------------------------- /test/data/TestPluginStdFiles/remove/AUTHORS.txt.fst: -------------------------------------------------------------------------------- 1 | (* OASIS_START *) 2 | (* DO NOT EDIT (digest: c059f06033422d4d358b297c74f106ff) *) 3 | Authors of remove 4 | David Allsopp 5 | (* OASIS_STOP *) 6 | -------------------------------------------------------------------------------- /test/data/TestPluginStdFiles/remove/INSTALL.txt.fst: -------------------------------------------------------------------------------- 1 | (* OASIS_START *) 2 | (* DO NOT EDIT (digest: b1dbca36bfeecf269e4bf3d4535c30cc) *) 3 | This is the INSTALL file for the remove distribution. 4 | 5 | This package uses OASIS to generate its build system. See section OASIS for 6 | full information. 7 | 8 | Dependencies 9 | ============ 10 | In order to compile this package, you will need: 11 | * ocaml 12 | * findlib 13 | 14 | Installing 15 | ========== 16 | 17 | 1. Uncompress the source archive and go to the root of the package 18 | 2. Run 'ocaml setup.ml -configure' 19 | 3. Run 'ocaml setup.ml -build' 20 | 4. Run 'ocaml setup.ml -install' 21 | 22 | Uninstalling 23 | ============ 24 | 25 | 1. Go to the root of the package 26 | 2. Run 'ocaml setup.ml -uninstall' 27 | 28 | OASIS 29 | ===== 30 | 31 | OASIS is a program that generates a setup.ml file using a simple '_oasis' 32 | configuration file. The generated setup only depends on the standard OCaml 33 | installation: no additional library is required. 34 | 35 | (* OASIS_STOP *) 36 | -------------------------------------------------------------------------------- /test/data/TestPluginStdFiles/remove/README.txt.fst: -------------------------------------------------------------------------------- 1 | Header line 2 | (* OASIS_START *) 3 | (* DO NOT EDIT (digest: 4b53103ccaa50a50153e977717a683ae) *) 4 | This is the README file for the remove distribution. 5 | 6 | Test case for oasis setup-clean -remove 7 | 8 | See the files INSTALL.txt for building and installation instructions. 9 | 10 | 11 | (* OASIS_STOP *) 12 | -------------------------------------------------------------------------------- /test/data/TestPluginStdFiles/remove/README.txt.snd: -------------------------------------------------------------------------------- 1 | Header line 2 | (* OASIS_START *) 3 | (* DO NOT EDIT (digest: d41d8cd98f00b204e9800998ecf8427e) *) 4 | (* OASIS_STOP *) 5 | -------------------------------------------------------------------------------- /test/data/TestPluginStdFiles/remove/_oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.4 2 | Name: remove 3 | Version: 1.0 4 | Synopsis: Test case for oasis setup-clean -remove 5 | Authors: David Allsopp 6 | License: GPL-3.0 7 | Plugins: StdFiles (0.4) 8 | 9 | -------------------------------------------------------------------------------- /test/data/TestQuery/test1.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: oasis 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | License: GPL 6 | LicenseFile: LICENSE 7 | Authors: Sylvain Le Gall 8 | BuildType: None (0.2) 9 | BuildDepends: oUnit (>= 0.1.2), benchmark (>= 0.6) 10 | Description: 11 | This is a test to check that everything is working great 12 | with this kind of parser. 13 | . 14 | Coucou. 15 | 16 | Flag devmod 17 | Description: build for developper 18 | Default: false 19 | 20 | # Only available on i386 21 | Flag ostest 22 | Description: Test on OS 23 | Default: false 24 | if system(hurd) && architecture(i386) 25 | Default: true 26 | 27 | Flag linuxtest64 28 | Description: Linux 64bits only 29 | Default: false 30 | if system(linux) && architecture(amd64) 31 | Default: true 32 | else 33 | Default: false 34 | 35 | Flag linuxtest32 36 | Description: Linux 32bits only 37 | Default: false 38 | if system(linux_elf) && architecture(i386) 39 | Default: true 40 | 41 | Library toto 42 | Path: src/stuff 43 | if architecture(amd64) 44 | Build: true 45 | 46 | if architecture(amd64) 47 | Build: false 48 | else 49 | Build: true 50 | 51 | if flag(linuxtest32) || flag(linuxtest64) || flag(ostest) 52 | Build: false 53 | else 54 | Build: true 55 | 56 | Library stuff 57 | Path: src/stuff 58 | Modules: A, B, C 59 | 60 | Executable toto 61 | Path: src 62 | MainIs: toto.ml 63 | -------------------------------------------------------------------------------- /test/data/TestQuery/test10.oasis: -------------------------------------------------------------------------------- 1 | OASISFormat: 0.3 2 | Name: oasis 3 | Version: 0.0.1 4 | Synopsis: Just a test 5 | Synopsis+: with extra text 6 | License: GPL 7 | LicenseFile: LICENSE 8 | Authors: Sylvain Le Gall 9 | Authors+: Another one 10 | 11 | Flag "test" 12 | Description: this is a test 13 | Default$: os_type(win32) 14 | 15 | Test main 16 | Command: main 17 | if flag(test) 18 | Command+: -test 19 | -------------------------------------------------------------------------------- /test/ounit.conf: -------------------------------------------------------------------------------- 1 | # Disable long test (dev only). 2 | #long = false 3 | --------------------------------------------------------------------------------