Oasis build configuration with subdirectories

lambda.xy.x

I am using oasis to build my ocaml project, with the source code present in a directory called src. The oasis build file looks like that:

OASISFormat: 0.4
Name:        Test
Version:     0.1
Synopsis:    no
Authors:     Me
License:     BSD-3-clause
Plugins:     META (0.4)

Executable abc
  Path:        src
  BuildTools:  ocamlbuild
  MainIs:      main.ml

Now I would like to organize the files into subfolders, putting a.mli and a.ml into src/util. After doing this, the module becomes invisible to ocamlbuild/ocamlc, resulting in an 'unbound module A' error. If I would call ocamlc by hand, I can add the -I src/util flag to make a.mli visible again.

How can I add the additional paths to the oasis configuration without making the files full libraries?

ivg

It is impossible with oasis, you need to modify your _tags file, but I wouldn't advice you to do this. The general approach is to create Library entries in your oasis file. This helps to keep your project structure clean. And if you wouldn't like to create a library from utils, then why bother and move it into a subfolder.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Ant build to operate only on subdirectories

From Dev

apache2 virtualhost configuration with two subdirectories

From Dev

Adding a scheduled build to the build configuration

From Dev

Adding a build configuration in Xcode

From Dev

Programmatically check the build configuration

From Dev

Build configuration history in teamcity

From Dev

TeamCity Build Chain configuration

From Dev

Programmatically check the build configuration

From Dev

Configuration of plugin build for Jenkins

From Dev

GCC warning: This configuration is not supported in the following subdirectories. What does it means?

From Dev

how do i build libraries in subdirectories using cmake?

From Dev

How to optimize parallel build of subdirectories using GNU Make?

From Dev

How to optimize parallel build of subdirectories using GNU Make?

From Dev

How does `go build` decide which subdirectories to build when it is not given specific packages to build?

From Dev

Output assembly files with OASIS

From Dev

Using Ocamlbuild plugins with Oasis

From Dev

Maven Report Configuration vs Build Configuration

From Dev

What is the default build configuration of cmake

From Dev

Set a default build configuration for project

From Dev

Global configuration for GHC build flags

From Dev

How to archive a build configuration in Teamcity?

From Dev

Save Visual Studio Build Configuration

From Dev

Running build configuration from another

From Dev

Get return value of build configuration

From Dev

Unit Tests, Build Configuration and Internals

From Dev

Running build configuration from another

From Dev

Use variables in build step configuration

From Dev

Docker Build Using gcloud Configuration

From Dev

oasis picks up wrong ocamlbuild

Related Related

  1. 1

    Ant build to operate only on subdirectories

  2. 2

    apache2 virtualhost configuration with two subdirectories

  3. 3

    Adding a scheduled build to the build configuration

  4. 4

    Adding a build configuration in Xcode

  5. 5

    Programmatically check the build configuration

  6. 6

    Build configuration history in teamcity

  7. 7

    TeamCity Build Chain configuration

  8. 8

    Programmatically check the build configuration

  9. 9

    Configuration of plugin build for Jenkins

  10. 10

    GCC warning: This configuration is not supported in the following subdirectories. What does it means?

  11. 11

    how do i build libraries in subdirectories using cmake?

  12. 12

    How to optimize parallel build of subdirectories using GNU Make?

  13. 13

    How to optimize parallel build of subdirectories using GNU Make?

  14. 14

    How does `go build` decide which subdirectories to build when it is not given specific packages to build?

  15. 15

    Output assembly files with OASIS

  16. 16

    Using Ocamlbuild plugins with Oasis

  17. 17

    Maven Report Configuration vs Build Configuration

  18. 18

    What is the default build configuration of cmake

  19. 19

    Set a default build configuration for project

  20. 20

    Global configuration for GHC build flags

  21. 21

    How to archive a build configuration in Teamcity?

  22. 22

    Save Visual Studio Build Configuration

  23. 23

    Running build configuration from another

  24. 24

    Get return value of build configuration

  25. 25

    Unit Tests, Build Configuration and Internals

  26. 26

    Running build configuration from another

  27. 27

    Use variables in build step configuration

  28. 28

    Docker Build Using gcloud Configuration

  29. 29

    oasis picks up wrong ocamlbuild

HotTag

Archive