aboutsummaryrefslogtreecommitdiffhomepage
path: root/org
diff options
context:
space:
mode:
Diffstat (limited to 'org')
-rw-r--r--org/spine_build_scaffold.org75
1 files changed, 58 insertions, 17 deletions
diff --git a/org/spine_build_scaffold.org b/org/spine_build_scaffold.org
index a42cd69..f998647 100644
--- a/org/spine_build_scaffold.org
+++ b/org/spine_build_scaffold.org
@@ -282,7 +282,7 @@ meson_clean_build_dir:
meson_build: meson_clean_build_dir
meson --buildtype=debugoptimized build
ninja -C build
- notify-send -t 0 'D meson build ldc compiled test release executable ready' 'spine'
+ #notify-send -t 0 'D meson build ldc compiled test release executable ready' 'spine'
meson_redo: meson_clean_build_dir meson_build
meson_project_build_clean: clean skel tangle dub_upgrade meson_build
meson: meson_clean_build_dir dub_upgrade meson_build
@@ -320,7 +320,7 @@ all_debug_clean_ver: clean tangle dmd_debug_ver gdc_debug_ver ldc_debug_ver
#+BEGIN_SRC makefile
dmd: dub_upgrade
$(DUB) --compiler=dmd --config=dmd --build=release-nobounds
- notify-send -t 0 'D dmd compiled test release executable ready' 'spine-dmd'
+ #notify-send -t 0 'D dmd compiled test release executable ready' 'spine-dmd'
#+END_SRC
******** debug :debug:
@@ -340,7 +340,7 @@ dmd_debug:
dmd_ver: dub_upgrade
$(DUB) --compiler=dmd --config=dmd-version
mv bin/spine-dmd-ver bin-archive/spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-dmd
- notify-send -t 0 'D dmd compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-dmd'
+ #notify-send -t 0 'D dmd compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-dmd'
dmd_clean_ver: clean tangle dmd_ver
#+END_SRC
@@ -365,7 +365,7 @@ dmd_debug_tangle: tangle
#+BEGIN_SRC makefile
gdc: dub_upgrade
$(DUB) --compiler=gdc --config=gdc
- notify-send -t 0 'D gdc compiled test release executable ready' 'spine-gdc'
+ #notify-send -t 0 'D gdc compiled test release executable ready' 'spine-gdc'
#+END_SRC
******** debug :debug:
@@ -385,7 +385,7 @@ gdc_debug:
gdc_ver: dub_upgrade
$(DUB) --compiler=gdc --config=gdc-version
mv bin/spine-gdc-ver bin-archive/spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-gdc
- notify-send -t 0 'D gdc compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-gdc'
+ #notify-send -t 0 'D gdc compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-gdc'
gdc_clean_ver: clean tangle gdc_ver
#+END_SRC
@@ -410,7 +410,7 @@ gdc_debug_tangle: tangle
#+BEGIN_SRC makefile
ldc: dub_upgrade
$(DUB) --compiler=ldc2 --config=ldc --build=release
- notify-send -t 0 'D ldc compiled test release executable ready' 'spine-ldc'
+ #notify-send -t 0 'D ldc compiled test release executable ready' 'spine-ldc'
#+END_SRC
******** debug :debug:
@@ -430,7 +430,7 @@ ldc_debug:
ldc_ver: dub_upgrade
$(DUB) --compiler=ldc2 --config=ldc-version
mv bin/spine-ldc-ver bin-archive/spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-ldc
- notify-send -t 0 'D ldc2 compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-ldc'
+ #notify-send -t 0 'D ldc2 compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-ldc'
ldc_clean_ver: clean tangle ldc_ver
#+END_SRC
@@ -966,7 +966,7 @@ gitsnapshot: distclean tangle
Every DUB package should contain a [[http://code.dlang.org/package-format?lang=json][dub.json]] (or [[http://code.dlang.org/package-format?lang=sdl][dub.sdl]])
** header (including dependencies) :header:
-#+BEGIN_SRC sh :tangle ../dub.sdl
+#+BEGIN_SRC sh :tangle ../dub.sdl :tangle-mode (identity #o755) :shebang #!/usr/bin/env dub
name "spine"
description "sisu document parser"
homepage "http://sisudoc.org"
@@ -995,7 +995,7 @@ time (dub --compiler=gdc --build=release)
#+BEGIN_SRC sh :tangle ../dub.sdl
configuration "default" {
targetName "spine"
- postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'spine'"
+ #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine'"
}
#+END_SRC
@@ -1007,7 +1007,7 @@ time (dub --compiler=dmd --config=dmd --build=dmd-release)
#+BEGIN_SRC sh :tangle ../dub.sdl
configuration "dmd" {
targetName "spine-dmd"
- postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'spine-dmd'"
+ #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-dmd'"
}
buildType "dmd" {
dflags "-J=views" "-I=src/doc_reform"
@@ -1022,7 +1022,7 @@ configuration "dmd-version" {
dflags "-J=views" "-I=src/doc_reform"
buildOptions "verbose" "optimize"
targetName "spine-dmd-ver"
- postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'spine-dmd-ver'"
+ #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-dmd-ver'"
}
#+END_SRC
@@ -1038,7 +1038,7 @@ time (dub --compiler=ldc2 --config=ldc --build=ldc-release)
#+BEGIN_SRC sh :tangle ../dub.sdl
configuration "ldc" {
targetName "spine-ldc"
- postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'spine-ldc'"
+ #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-ldc'"
}
buildType "ldc" {
dflags "-O2" "-J=views" "-I=src/doc_reform"
@@ -1058,7 +1058,7 @@ configuration "ldc-version" {
dflags "-O2" "-J=views" "-I=src/doc_reform"
buildOptions "verbose" "optimize" "inline" "releaseMode"
targetName "spine-ldc-ver"
- postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'spine-ldc-ver'"
+ #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-ldc-ver'"
}
#+END_SRC
@@ -1070,7 +1070,7 @@ time (dub --compiler=gdc --config=gdc --build=gdc-release)
#+BEGIN_SRC sh :tangle ../dub.sdl
configuration "gdc" {
targetName "spine-gdc"
- postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'spine-gdc'"
+ #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-gdc'"
}
buildType "gdc" {
dflags "-O" "-J=views" "-I=src/doc_reform"
@@ -1088,7 +1088,7 @@ configuration "gdc-version" {
lflags "-lz"
buildOptions "verbose" "optimize" "inline" "releaseMode"
targetName "spine-gdc-ver"
- postGenerateCommands "/usr/bin/notify-send -t 0 'D executable ready' 'spine-gdc-ver'"
+ #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-gdc-ver'"
}
#+END_SRC
@@ -1103,7 +1103,7 @@ configuration "build" {
targetName "bin/spine"
dflags "-J=views" "-I=src/doc_reform"
buildOptions "verbose" "releaseMode" "optimize" "inline"
- postGenerateCommands "/usr/bin/notify-send -t 0 'D release executable ready' 'spine'"
+ #postGenerateCommands "notify-send -t 0 'D release executable ready' 'spine'"
}
#+END_SRC
@@ -1506,6 +1506,38 @@ tinyendian_dep = declare_dependency(
)
#+END_SRC
+* nix
+
+#+BEGIN_SRC nix :tangle ../shell.nix
+{ pkgs ? import <nixpkgs> {} }:
+
+with pkgs;
+
+mkShell {
+ buildInputs = with pkgs; [
+ ninja dub
+ meson git
+ ldc #ldc dmd gdc
+ sqlite
+ validatePkgConfig
+ #gnumake gcc gdc cmake
+ #dzen2
+ ];
+ shellHook = ''
+ echo `ldc2 --version`
+ '';
+ COMPILER = "ldc2";
+}
+#+END_SRC
+
+#% ldc
+dub --compiler=ldc2 -color --config=ldc --build=release
+make ldc
+
+#% dmd
+dub --compiler=dmd -color --config=dmd --build=release
+make dmd
+
* .gitignore :gitignore:
#+BEGIN_SRC sh :tangle ../.gitignore
@@ -1526,6 +1558,7 @@ tinyendian_dep = declare_dependency(
!*.d
!*.rb
!conf.sdl
+!shell.nix
!doc
!doc/**
!man
@@ -1533,6 +1566,12 @@ tinyendian_dep = declare_dependency(
!org
!misc
!misc/**
+#!*.nix
+#!nix
+#!nix/**
+#!nix-devEnv
+#!nix-devEnv/**
+#!.envrc
!src
!src/**
!data
@@ -1547,7 +1586,8 @@ tinyendian_dep = declare_dependency(
!**/*.ssm
!subprojects
!subprojects/*.wrap
-!subprojects/*.meson.build
+#!subprojects/*.meson.build
+#!subprojects/**
!pod.manifest
!sisu_document_make
!config_local_site
@@ -1568,6 +1608,7 @@ tmp/**
*_.d
*_.txt
*_
+*.swp
*~
\#*
*.\#*