Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/motion/project/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def build(config, platform, opts)
framework_search_paths = config.framework_search_paths.map { |x| "-F#{File.expand_path(x)}" }.join(' ')
frameworks = config.frameworks_dependencies.map { |x| "-framework #{x}" }.join(' ')
weak_frameworks = config.weak_frameworks.map { |x| "-weak_framework #{x}" }.join(' ')
sh "#{cxx} -o \"#{main_exec}\" #{objs_list} #{config.ldflags(platform)} -L#{File.join(datadir, platform)} -lmacruby-static -lobjc -licucore #{framework_search_paths} #{frameworks} #{weak_frameworks} #{config.libs.join(' ')} #{vendor_libs.map { |x| '-force_load "' + x + '"' }.join(' ')}"
sh "#{cxx} -o \"#{main_exec}\" #{objs_list} #{config.ldflags(platform)} -L#{File.join(datadir, platform)} -lmacruby-static -lobjc -licucore #{framework_search_paths} #{frameworks} #{weak_frameworks} #{config.libs.join(' ')} #{vendor_libs.map { |x| '-force_load "' + x + '"' }.join(' ')} #{config.extra_flags}"
main_exec_created = true
end

Expand Down
6 changes: 4 additions & 2 deletions lib/motion/project/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ def relpath(path)
:resources_dir, :specs_dir, :identifier, :codesign_certificate,
:provisioning_profile, :device_family, :interface_orientations, :version,
:short_version, :icons, :prerendered_icon, :background_modes, :seed_id,
:entitlements, :fonts, :status_bar_style, :motiondir, :detect_dependencies
:entitlements, :fonts, :status_bar_style, :motiondir, :detect_dependencies,
:extra_flags

# Internal only.
attr_accessor :build_mode, :spec_mode, :distribution_mode, :dependencies
attr_accessor :build_mode, :spec_mode, :distribution_mode, :dependencies, :extra_flags

def initialize(project_dir, build_mode)
@project_dir = project_dir
Expand Down Expand Up @@ -85,6 +86,7 @@ def initialize(project_dir, build_mode)
@entitlements = {}
@spec_mode = false
@build_mode = build_mode
@extra_flags = ""
end

OSX_VERSION = `/usr/bin/sw_vers -productVersion`.strip.sub(/\.\d+$/, '').to_f
Expand Down