Skip to content

Commit

Permalink
Add podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Jan 24, 2015
1 parent 95b9108 commit aa1f77f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Temp Files
*~

# Bundler
Gemfile.lock

# Build Output
**/build_result/
dist/
Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

gem 'cocoapods'
gem 'rubocop'
31 changes: 31 additions & 0 deletions J2ObjC.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Pod::Spec.new do |s|
s.name = 'J2ObjC'
s.version = '0.9.5'
s.license = { type: 'Apache License, Version 2.0', file: 'LICENSE' }
s.summary = 'J2ObjC\'s JRE emulation library, emulates a subset of the Java runtime library.'
s.homepage = 'https://github.com/google/j2objc'
s.author = 'Google Inc.'
s.source = {
http: "https://github.com/google/j2objc/releases/download/#{s.version}/j2objc-#{s.version}.zip",
sha1: '6b53c2b47c9cd4c6678d0fee75b00039b83fc120',
}

s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
s.requires_arc = false

# Top level attributes can't be specified by subspecs.
s.header_mappings_dir = 'dist/include'

s.subspec 'lib' do |lib|
lib.subspec 'jre_emul' do |jre_emul|
jre_emul.public_header_files = %w(
dist/include/
dist/include/java/**/*
dist/include/libcore/**/*
)
jre_emul.vendored_libraries = "dist/#{lib.base_name}/lib#{jre_emul.base_name}.a"
jre_emul.libraries = jre_emul.base_name, 'icucore', 'z'
end
end
end

0 comments on commit aa1f77f

Please sign in to comment.