-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into custom-path-to-config
- Loading branch information
Showing
54 changed files
with
6,108 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
program test_preprocess_suffix | ||
use preprocess_cpp | ||
#ifndef TESTMACRO | ||
stop -1 | ||
#else | ||
stop 0 | ||
#endif | ||
end program test_preprocess_suffix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name = "preprocess_cpp_suffix" | ||
version = "1" | ||
|
||
[preprocess] | ||
[preprocess.cpp] | ||
macros = ["TESTMACRO", "TESTMACRO2=3", "TESTMACRO3={version}"] | ||
suffixes = ["fpp"] |
22 changes: 22 additions & 0 deletions
22
example_packages/preprocess_cpp_suffix/src/preprocess_cpp.fpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module preprocess_cpp | ||
implicit none | ||
private | ||
|
||
public :: say_hello | ||
contains | ||
subroutine say_hello | ||
print *, "Hello, preprocess_cpp!" | ||
#ifndef TESTMACRO | ||
This breaks the build. | ||
#endif | ||
|
||
#if TESTMACRO2 != 3 | ||
This breaks the build. | ||
#endif | ||
|
||
#if TESTMACRO3 != 1 | ||
This breaks the build. | ||
#endif | ||
|
||
end subroutine say_hello | ||
end module preprocess_cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
program hello_fpm | ||
use utils, only: say_hello | ||
integer :: ierr | ||
|
||
call say_hello(ierr) | ||
stop ierr ! ierr==0 if DEPENDENCY_MACRO is defined | ||
|
||
end program hello_fpm |
5 changes: 5 additions & 0 deletions
5
example_packages/preprocess_per_dependency/crate/utils/fpm.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name = "utils" | ||
|
||
[preprocess] | ||
[preprocess.cpp] | ||
macros = ["X=1"] |
19 changes: 19 additions & 0 deletions
19
example_packages/preprocess_per_dependency/crate/utils/src/say_hello.f90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module utils | ||
|
||
implicit none | ||
|
||
contains | ||
|
||
subroutine say_hello(ierr) | ||
integer, intent(out) :: ierr | ||
|
||
ierr = -1 | ||
#ifdef DEPENDENCY_MACRO | ||
ierr = 0 | ||
#endif | ||
|
||
print *, "Dependency macro ", merge(" IS","NOT",ierr==0)," defined" | ||
|
||
end subroutine say_hello | ||
|
||
end module utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name = "preprocess_cpp_deps" | ||
|
||
[dependencies] | ||
utils = { path = "crate/utils" , preprocess.cpp.macros=["DEPENDENCY_MACRO"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# 301 - Moved | ||
|
||
This document now lives at https://fpm.fortran-lang.org/en/spec/manifest.html. | ||
This document now lives at https://fpm.fortran-lang.org/spec/manifest.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.