redsnow 0.3.4 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +22 -15
  3. data/Installation.md +44 -0
  4. data/README.md +4 -1
  5. data/Vagrantfile +2 -2
  6. data/ext/snowcrash/bin/snowcrash +0 -0
  7. data/ext/snowcrash/build/out/Release/libmarkdownparser.a +0 -0
  8. data/ext/snowcrash/build/out/Release/libsnowcrash.dylib +0 -0
  9. data/ext/snowcrash/build/out/Release/libsundown.a +0 -0
  10. data/ext/snowcrash/build/out/Release/obj.target/libmarkdownparser/ext/markdown-parser/src/ByteBuffer.o +0 -0
  11. data/ext/snowcrash/build/out/Release/obj.target/libmarkdownparser/ext/markdown-parser/src/MarkdownNode.o +0 -0
  12. data/ext/snowcrash/build/out/Release/obj.target/libmarkdownparser/ext/markdown-parser/src/MarkdownParser.o +0 -0
  13. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/CBlueprint.o +0 -0
  14. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/CBlueprintSourcemap.o +0 -0
  15. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/CSourceAnnotation.o +0 -0
  16. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/HTTP.o +0 -0
  17. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/Section.o +0 -0
  18. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/Serialize.o +0 -0
  19. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/SerializeJSON.o +0 -0
  20. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/SerializeYAML.o +0 -0
  21. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/Signature.o +0 -0
  22. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/UriTemplateParser.o +0 -0
  23. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/csnowcrash.o +0 -0
  24. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/posix/RegexMatch.o +0 -0
  25. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/snowcrash.o +0 -0
  26. data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/html/houdini_href_e.o +0 -0
  27. data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/html/houdini_html_e.o +0 -0
  28. data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/html/html.o +0 -0
  29. data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/html/html_smartypants.o +0 -0
  30. data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/autolink.o +0 -0
  31. data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/buffer.o +0 -0
  32. data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/markdown.o +0 -0
  33. data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/src_map.o +0 -0
  34. data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/stack.o +0 -0
  35. data/ext/snowcrash/build/out/Release/obj.target/snowcrash/src/snowcrash/snowcrash.o +0 -0
  36. data/ext/snowcrash/build/out/Release/snowcrash +0 -0
  37. data/ext/snowcrash/build/snowcrash.Makefile +1 -1
  38. data/ext/snowcrash/config.gypi +1 -1
  39. data/ext/snowcrash/config.mk +1 -1
  40. data/ext/snowcrash/tools/gyp/pylib/gyp/__init__.pyc +0 -0
  41. data/ext/snowcrash/tools/gyp/pylib/gyp/common.pyc +0 -0
  42. data/ext/snowcrash/tools/gyp/pylib/gyp/generator/__init__.pyc +0 -0
  43. data/ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyc +0 -0
  44. data/ext/snowcrash/tools/gyp/pylib/gyp/generator/xcode.pyc +0 -0
  45. data/ext/snowcrash/tools/gyp/pylib/gyp/input.pyc +0 -0
  46. data/ext/snowcrash/tools/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
  47. data/ext/snowcrash/tools/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
  48. data/lib/redsnow/object.rb +1 -1
  49. data/lib/redsnow/version.rb +1 -1
  50. data/provisioning.sh +7 -3
  51. data/redsnow.gemspec +2 -2
  52. metadata +7 -20
  53. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/MarkdownBlock.o +0 -0
  54. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/MarkdownParser.o +0 -0
  55. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/Parser.o +0 -0
  56. data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/ParserCore.o +0 -0
  57. data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/houdini_href_e.o +0 -0
  58. data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/houdini_html_e.o +0 -0
  59. data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/html.o +0 -0
  60. data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/html_smartypants.o +0 -0
  61. data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/autolink.o +0 -0
  62. data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/buffer.o +0 -0
  63. data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/markdown.o +0 -0
  64. data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/src_map.o +0 -0
  65. data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/stack.o +0 -0
  66. data/ext/snowcrash/build/sundown.target.mk +0 -143
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ae40384c372364d7042d35ec7c6db9f81384612
4
- data.tar.gz: 2e754e3211ba44c852600cdc38538e34d19dfa37
3
+ metadata.gz: 593662a85851831a3b095d96bc7a554f9ff8781c
4
+ data.tar.gz: 499408dcd96ff25598541f43e34407c00d06229a
5
5
  SHA512:
6
- metadata.gz: ab52de34dc4c447d8fd15a3a358bc8abf17e7bcbff171c4ab8d4aaf208555443c4ae13ef9f8f6d7ed8303bafc9da48b30ad1cca0829363b72ba1a5910d5c9813
7
- data.tar.gz: 2d96052f8cd739d0e2c93992d54796129027739a24073b1d39316626f583026348f538146f02d7783526cf878d7c1d22bfef78bf1879e8b2ba470cfc82fca2ef
6
+ metadata.gz: 23e1b9a29c418f5e76161845382929d8f5a491341c550e0d603ae8625ad8bf9aec846ba01fad8ce2b7396a8a33d7a13feb4c673abfef2096f891b993667d87f5
7
+ data.tar.gz: 00c0ac7a6770c385e93233903f240eb243a03c7b7b60456c574c81f754a856f090537f239bfdd7c6133985c6449feec53e7bbfeba7b9a6330d94bcdcba7844b3
@@ -1,22 +1,22 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- redsnow (0.3.4)
5
- bundler (~> 1.7.0)
4
+ redsnow (0.3.7)
5
+ bundler (>= 1.7.0)
6
6
  ffi (~> 1.9.3)
7
- rake (~> 10.3.2)
7
+ rake (>= 10.3.2)
8
8
  yard (~> 0.8.7.4)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (4.0.11)
13
+ activesupport (4.0.13)
14
14
  i18n (~> 0.6, >= 0.6.9)
15
15
  minitest (~> 4.2)
16
16
  multi_json (~> 1.3)
17
17
  thread_safe (~> 0.1)
18
18
  tzinfo (~> 0.3.37)
19
- ansi (1.4.3)
19
+ ansi (1.5.0)
20
20
  ast (2.0.0)
21
21
  astrolabe (1.3.0)
22
22
  parser (>= 2.2.0.pre.3, < 3.0)
@@ -25,18 +25,21 @@ GEM
25
25
  coderay (1.1.0)
26
26
  ffi (1.9.6)
27
27
  formatador (0.2.5)
28
- guard (2.8.0)
28
+ guard (2.11.1)
29
29
  formatador (>= 0.2.4)
30
30
  listen (~> 2.7)
31
31
  lumberjack (~> 1.0)
32
+ nenv (~> 0.1)
33
+ notiffany (~> 0.0)
32
34
  pry (>= 0.9.12)
35
+ shellany (~> 0.0)
33
36
  thor (>= 0.18.1)
34
- guard-rubocop (1.1.0)
37
+ guard-rubocop (1.2.0)
35
38
  guard (~> 2.0)
36
39
  rubocop (~> 0.20)
37
40
  hitimes (1.2.2)
38
- i18n (0.6.11)
39
- listen (2.7.11)
41
+ i18n (0.7.0)
42
+ listen (2.8.5)
40
43
  celluloid (>= 0.15.2)
41
44
  rb-fsevent (>= 0.9.3)
42
45
  rb-inotify (>= 0.9)
@@ -47,26 +50,30 @@ GEM
47
50
  mocha (1.1.0)
48
51
  metaclass (~> 0.0.1)
49
52
  multi_json (1.10.1)
50
- parser (2.2.0.pre.7)
53
+ nenv (0.2.0)
54
+ notiffany (0.0.3)
55
+ nenv (~> 0.1)
56
+ shellany (~> 0.0)
57
+ parser (2.2.0.2)
51
58
  ast (>= 1.1, < 3.0)
52
- slop (~> 3.4, >= 3.4.5)
53
59
  powerpack (0.0.9)
54
60
  pry (0.10.1)
55
61
  coderay (~> 1.1.0)
56
62
  method_source (~> 0.8.1)
57
63
  slop (~> 3.4)
58
64
  rainbow (2.0.0)
59
- rake (10.3.2)
65
+ rake (10.4.2)
60
66
  rb-fsevent (0.9.4)
61
67
  rb-inotify (0.9.5)
62
68
  ffi (>= 0.5.0)
63
- rubocop (0.27.0)
69
+ rubocop (0.28.0)
64
70
  astrolabe (~> 1.3)
65
- parser (>= 2.2.0.pre.6, < 3.0)
71
+ parser (>= 2.2.0.pre.7, < 3.0)
66
72
  powerpack (~> 0.0.6)
67
73
  rainbow (>= 1.99.1, < 3.0)
68
74
  ruby-progressbar (~> 1.4)
69
- ruby-progressbar (1.6.1)
75
+ ruby-progressbar (1.7.1)
76
+ shellany (0.0.1)
70
77
  shoulda (3.5.0)
71
78
  shoulda-context (~> 1.0, >= 1.0.1)
72
79
  shoulda-matchers (>= 1.4.1, < 3.0)
@@ -0,0 +1,44 @@
1
+
2
+ # RedSnow Installation
3
+
4
+ For installing Ruby we recommend use [RVM](https://rvm.io/rvm/install).
5
+
6
+ ## Ubuntu 14.04 ([Vagrantfile](Vagrantfile))
7
+
8
+ Install ruby and prerequisites
9
+
10
+ # GCC 4.7
11
+ sudo apt-get update -y
12
+ sudo apt-get install -y python-software-properties
13
+ sudo apt-get update -y
14
+ sudo apt-get install -y build-essential git-core curl
15
+
16
+ # RVM gpg key
17
+ gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
18
+
19
+ # RVM Install
20
+ curl -sSL https://get.rvm.io | bash -s stable
21
+ source ~/.rvm/scripts/rvm
22
+
23
+ # Installing required packages: libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, pkg-config, libffi-dev
24
+ rvm install 2.1.5
25
+ rvm ruby-2.1.5
26
+ gem install bundler
27
+
28
+ Install RedSnow
29
+
30
+ gem install redsnow
31
+
32
+ Run example for test
33
+
34
+ $ ruby test/example.rb
35
+
36
+ This should be the output
37
+
38
+ My API
39
+ 0
40
+ 8
41
+
42
+
43
+
44
+
data/README.md CHANGED
@@ -11,6 +11,8 @@ The best way to install RedSnow is by using its [GEM package](https://rubygems.o
11
11
 
12
12
  gem install redsnow
13
13
 
14
+ Installation instructions for Ubuntu 14.04 are described in detail [here](Installation.md).
15
+
14
16
  ## Documentation
15
17
 
16
18
  - [Documentation at rubydoc](http://rubydoc.info/gems/redsnow/)
@@ -20,8 +22,9 @@ The best way to install RedSnow is by using its [GEM package](https://rubygems.o
20
22
  ```ruby
21
23
  require 'redsnow'
22
24
 
23
- result = RedSnow::parse('# My API')
25
+ result = RedSnow.parse('# My API', exportSourcemap: true)
24
26
  puts result.ast.name
27
+ puts result.sourcemap.name
25
28
  ```
26
29
 
27
30
  ## Parsing options
@@ -1,5 +1,5 @@
1
1
  Vagrant.configure('2') do |config|
2
- config.vm.box = 'ffuenf/ubuntu-14.04-server-amd64'
2
+ config.vm.box = 'ubuntu/trusty64'
3
3
 
4
4
  # VirtualBox
5
5
  config.vm.provider :virtualbox do |vb|
@@ -14,6 +14,6 @@ Vagrant.configure('2') do |config|
14
14
  end
15
15
 
16
16
  config.vm.network :private_network, ip: '10.3.3.3'
17
- config.vm.synced_folder '.', '/vagrant', id: 'vagrant-root', type: 'nfs'
17
+ config.vm.synced_folder '.', '/vagrant', id: 'vagrant-root'
18
18
  config.vm.provision :shell, path: './provisioning.sh'
19
19
  end
Binary file
@@ -3,4 +3,4 @@
3
3
  export builddir_name ?= ././build/out
4
4
  .PHONY: all
5
5
  all:
6
- $(MAKE) libsundown libmarkdownparser libsnowcrash snowcrash perf-libsnowcrash test-libsnowcrash
6
+ $(MAKE) libsundown libmarkdownparser libsnowcrash perf-libsnowcrash snowcrash test-libsnowcrash
@@ -6,5 +6,5 @@
6
6
  'libraries': []},
7
7
  'variables': { 'host_arch': 'x64',
8
8
  'libsnowcrash_type': 'shared_library',
9
- 'python': '/usr/bin/python',
9
+ 'python': '/usr/local/opt/python/bin/python2.7',
10
10
  'target_arch': 'x64'}}
@@ -1,5 +1,5 @@
1
1
  # Do not edit. Generated by the configure script.
2
- PYTHON=/usr/bin/python
2
+ PYTHON=/usr/local/opt/python/bin/python2.7
3
3
  BUILDTYPE=Release
4
4
  BUILD_DIR=./build
5
5
  INTEGRATION_TESTS=
@@ -5,7 +5,7 @@ module RedSnow
5
5
  # Symbolizes keys of a hash
6
6
  def deep_symbolize_keys
7
7
  return each_with_object({}) { |memo, (k, v)| memo[k.to_sym] = v.deep_symbolize_keys } if self.is_a?(Hash)
8
- return each_with_object([]) { |memo, v | memo << v.deep_symbolize_keys } if self.is_a?(Array)
8
+ return each_with_object([]) { |memo, v| memo << v.deep_symbolize_keys } if self.is_a?(Array)
9
9
  self
10
10
  end
11
11
 
@@ -1,5 +1,5 @@
1
1
  # Module RedSnow
2
2
  module RedSnow
3
3
  # Gem version
4
- VERSION = '0.3.4'
4
+ VERSION = '0.3.7'
5
5
  end
@@ -8,8 +8,12 @@ sudo apt-get install -y build-essential git-core curl mc vim
8
8
 
9
9
  # Ruby
10
10
  gem install bundler
11
- # RVM
11
+ # RVM gpg key
12
+ gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
13
+ # RVM Install
12
14
  curl -sSL https://get.rvm.io | bash -s stable
13
- /home/vagrant/.rvm/bin/rvm install 2.1.0
14
- rvm ruby-2.1.0
15
+ source /home/vagrant/.rvm/scripts/rvm
16
+ # Installing required packages: libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, pkg-config, libffi-dev
17
+ rvm install 2.1.5
18
+ rvm ruby-2.1.5
15
19
  gem install bundler
@@ -24,8 +24,8 @@ Gem::Specification.new do |gem|
24
24
  gem.extensions = %w(Rakefile)
25
25
 
26
26
  gem.add_dependency 'ffi', '~> 1.9.3'
27
- gem.add_dependency 'rake', '~> 10.3.2'
28
- gem.add_dependency 'bundler', '~> 1.7.0'
27
+ gem.add_dependency 'rake', '>= 10.3.2'
28
+ gem.add_dependency 'bundler', '>= 1.7.0'
29
29
  gem.add_dependency 'yard', '~> 0.8.7.4'
30
30
 
31
31
  gem.add_development_dependency 'shoulda'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redsnow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ladislav Prskavec
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-16 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -28,28 +28,28 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 10.3.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 10.3.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.7.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.7.0
55
55
  - !ruby/object:Gem::Dependency
@@ -161,6 +161,7 @@ files:
161
161
  - Gemfile
162
162
  - Gemfile.lock
163
163
  - Guardfile
164
+ - Installation.md
164
165
  - LICENSE
165
166
  - README.md
166
167
  - Rakefile
@@ -184,10 +185,6 @@ files:
184
185
  - ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/CBlueprintSourcemap.o
185
186
  - ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/CSourceAnnotation.o
186
187
  - ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/HTTP.o
187
- - ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/MarkdownBlock.o
188
- - ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/MarkdownParser.o
189
- - ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/Parser.o
190
- - ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/ParserCore.o
191
188
  - ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/Section.o
192
189
  - ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/Serialize.o
193
190
  - ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/SerializeJSON.o
@@ -207,20 +204,10 @@ files:
207
204
  - ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/src_map.o
208
205
  - ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/stack.o
209
206
  - ext/snowcrash/build/out/Release/obj.target/snowcrash/src/snowcrash/snowcrash.o
210
- - ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/houdini_href_e.o
211
- - ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/houdini_html_e.o
212
- - ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/html.o
213
- - ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/html_smartypants.o
214
- - ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/autolink.o
215
- - ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/buffer.o
216
- - ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/markdown.o
217
- - ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/src_map.o
218
- - ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/stack.o
219
207
  - ext/snowcrash/build/out/Release/snowcrash
220
208
  - ext/snowcrash/build/perf-libsnowcrash.target.mk
221
209
  - ext/snowcrash/build/snowcrash.Makefile
222
210
  - ext/snowcrash/build/snowcrash.target.mk
223
- - ext/snowcrash/build/sundown.target.mk
224
211
  - ext/snowcrash/common.gypi
225
212
  - ext/snowcrash/config.gypi
226
213
  - ext/snowcrash/config.mk
@@ -1,143 +0,0 @@
1
- # This file is generated by gyp; do not edit.
2
-
3
- TOOLSET := target
4
- TARGET := sundown
5
- DEFS_Debug := \
6
- '-DBUILDING_SNOWCRASH=1' \
7
- '-D_DARWIN_USE_64_BIT_INODE=1' \
8
- '-DDEBUG' \
9
- '-D_DEBUG'
10
-
11
- # Flags passed to all source files.
12
- CFLAGS_Debug := \
13
- -O0 \
14
- -gdwarf-2 \
15
- -mmacosx-version-min=10.5 \
16
- -arch x86_64 \
17
- -Wall \
18
- -Wendif-labels \
19
- -W \
20
- -Wno-unused-parameter
21
-
22
- # Flags passed to only C files.
23
- CFLAGS_C_Debug := \
24
- -fno-strict-aliasing
25
-
26
- # Flags passed to only C++ files.
27
- CFLAGS_CC_Debug := \
28
- -fno-threadsafe-statics \
29
- -fno-strict-aliasing
30
-
31
- # Flags passed to only ObjC files.
32
- CFLAGS_OBJC_Debug :=
33
-
34
- # Flags passed to only ObjC++ files.
35
- CFLAGS_OBJCC_Debug :=
36
-
37
- INCS_Debug := \
38
- -I$(srcdir)/sundown/src \
39
- -I$(srcdir)/sundown/html
40
-
41
- DEFS_Release := \
42
- '-DBUILDING_SNOWCRASH=1' \
43
- '-D_DARWIN_USE_64_BIT_INODE=1'
44
-
45
- # Flags passed to all source files.
46
- CFLAGS_Release := \
47
- -Os \
48
- -gdwarf-2 \
49
- -mmacosx-version-min=10.5 \
50
- -arch x86_64 \
51
- -Wall \
52
- -Wendif-labels \
53
- -W \
54
- -Wno-unused-parameter
55
-
56
- # Flags passed to only C files.
57
- CFLAGS_C_Release := \
58
- -fno-strict-aliasing
59
-
60
- # Flags passed to only C++ files.
61
- CFLAGS_CC_Release := \
62
- -fno-threadsafe-statics \
63
- -fno-strict-aliasing
64
-
65
- # Flags passed to only ObjC files.
66
- CFLAGS_OBJC_Release :=
67
-
68
- # Flags passed to only ObjC++ files.
69
- CFLAGS_OBJCC_Release :=
70
-
71
- INCS_Release := \
72
- -I$(srcdir)/sundown/src \
73
- -I$(srcdir)/sundown/html
74
-
75
- OBJS := \
76
- $(obj).target/$(TARGET)/sundown/src/autolink.o \
77
- $(obj).target/$(TARGET)/sundown/src/buffer.o \
78
- $(obj).target/$(TARGET)/sundown/html/houdini_href_e.o \
79
- $(obj).target/$(TARGET)/sundown/html/houdini_html_e.o \
80
- $(obj).target/$(TARGET)/sundown/html/html.o \
81
- $(obj).target/$(TARGET)/sundown/html/html_smartypants.o \
82
- $(obj).target/$(TARGET)/sundown/src/markdown.o \
83
- $(obj).target/$(TARGET)/sundown/src/stack.o \
84
- $(obj).target/$(TARGET)/sundown/src/src_map.o
85
-
86
- # Add to the list of files we specially track dependencies for.
87
- all_deps += $(OBJS)
88
-
89
- # CFLAGS et al overrides must be target-local.
90
- # See "Target-specific Variable Values" in the GNU Make manual.
91
- $(OBJS): TOOLSET := $(TOOLSET)
92
- $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
93
- $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
94
- $(OBJS): GYP_OBJCFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))
95
- $(OBJS): GYP_OBJCXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))
96
-
97
- # Suffix rules, putting all outputs into $(obj).
98
-
99
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.c FORCE_DO_CMD
100
- @$(call do_cmd,cc,1)
101
-
102
- # Try building from generated source, too.
103
-
104
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.c FORCE_DO_CMD
105
- @$(call do_cmd,cc,1)
106
-
107
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.c FORCE_DO_CMD
108
- @$(call do_cmd,cc,1)
109
-
110
- # End of this set of suffix rules
111
- ### Rules for final target.
112
- LDFLAGS_Debug := \
113
- -mmacosx-version-min=10.5 \
114
- -arch x86_64 \
115
- -L$(builddir)
116
-
117
- LIBTOOLFLAGS_Debug :=
118
-
119
- LDFLAGS_Release := \
120
- -mmacosx-version-min=10.5 \
121
- -arch x86_64 \
122
- -L$(builddir)
123
-
124
- LIBTOOLFLAGS_Release :=
125
-
126
- LIBS :=
127
-
128
- $(builddir)/libsundown.a: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
129
- $(builddir)/libsundown.a: LIBS := $(LIBS)
130
- $(builddir)/libsundown.a: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))
131
- $(builddir)/libsundown.a: TOOLSET := $(TOOLSET)
132
- $(builddir)/libsundown.a: $(OBJS) FORCE_DO_CMD
133
- $(call do_cmd,alink)
134
-
135
- all_deps += $(builddir)/libsundown.a
136
- # Add target alias
137
- .PHONY: sundown
138
- sundown: $(builddir)/libsundown.a
139
-
140
- # Add target alias to "all" target.
141
- .PHONY: all
142
- all: sundown
143
-