Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
PK!npot/message_extractor.rbnu[# frozen_string_literal: true ## # Extracts message from RDoc::Store class RDoc::Generator::POT::MessageExtractor ## # Creates a message extractor for +store+. def initialize store @store = store @po = RDoc::Generator::POT::PO.new end ## # Extracts messages from +store+, stores them into # RDoc::Generator::POT::PO and returns it. def extract @store.all_classes_and_modules.each do |klass| extract_from_klass(klass) end @po end private def extract_from_klass klass extract_text(klass.comment_location, klass.full_name) klass.each_section do |section, constants, attributes| extract_text(section.title ,"#{klass.full_name}: section title") section.comments.each do |comment| extract_text(comment, "#{klass.full_name}: #{section.title}") end end klass.each_constant do |constant| extract_text(constant.comment, constant.full_name) end klass.each_attribute do |attribute| extract_text(attribute.comment, attribute.full_name) end klass.each_method do |method| extract_text(method.comment, method.full_name) end end def extract_text text, comment, location = nil return if text.nil? options = { :extracted_comment => comment, :references => [location].compact, } i18n_text = RDoc::I18n::Text.new(text) i18n_text.extract_messages do |part| @po.add(entry(part[:paragraph], options)) end end def entry msgid, options RDoc::Generator::POT::POEntry.new(msgid, options) end end PK!jl{ pot/po_entry.rbnu[# frozen_string_literal: true ## # A PO entry in PO class RDoc::Generator::POT::POEntry # The msgid content attr_reader :msgid # The msgstr content attr_reader :msgstr # The comment content created by translator (PO editor) attr_reader :translator_comment # The comment content extracted from source file attr_reader :extracted_comment # The locations where the PO entry is extracted attr_reader :references # The flags of the PO entry attr_reader :flags ## # Creates a PO entry for +msgid+. Other valus can be specified by # +options+. def initialize msgid, options = {} @msgid = msgid @msgstr = options[:msgstr] || "" @translator_comment = options[:translator_comment] @extracted_comment = options[:extracted_comment] @references = options[:references] || [] @flags = options[:flags] || [] end ## # Returns the PO entry in PO format. def to_s entry = '' entry += format_translator_comment entry += format_extracted_comment entry += format_references entry += format_flags entry += <<-ENTRY msgid #{format_message(@msgid)} msgstr #{format_message(@msgstr)} ENTRY end ## # Merges the PO entry with +other_entry+. def merge other_entry options = { :extracted_comment => merge_string(@extracted_comment, other_entry.extracted_comment), :translator_comment => merge_string(@translator_comment, other_entry.translator_comment), :references => merge_array(@references, other_entry.references), :flags => merge_array(@flags, other_entry.flags), } self.class.new(@msgid, options) end private def format_comment mark, comment return '' unless comment return '' if comment.empty? formatted_comment = '' comment.each_line do |line| formatted_comment += "#{mark} #{line}" end formatted_comment += "\n" unless formatted_comment.end_with?("\n") formatted_comment end def format_translator_comment format_comment('#', @translator_comment) end def format_extracted_comment format_comment('#.', @extracted_comment) end def format_references return '' if @references.empty? formatted_references = '' @references.sort.each do |file, line| formatted_references += "\#: #{file}:#{line}\n" end formatted_references end def format_flags return '' if @flags.empty? formatted_flags = flags.join(",") "\#, #{formatted_flags}\n" end def format_message message return "\"#{escape(message)}\"" unless message.include?("\n") formatted_message = '""' message.each_line do |line| formatted_message += "\n" formatted_message += "\"#{escape(line)}\"" end formatted_message end def escape string string.gsub(/["\\\t\n]/) do |special_character| case special_character when "\t" "\\t" when "\n" "\\n" else "\\#{special_character}" end end end def merge_string string1, string2 [string1, string2].compact.join("\n") end def merge_array array1, array2 (array1 + array2).uniq end end PK! pot/po.rbnu[# frozen_string_literal: true ## # Generates a PO format text class RDoc::Generator::POT::PO ## # Creates an object that represents PO format. def initialize @entries = {} add_header end ## # Adds a PO entry to the PO. def add entry existing_entry = @entries[entry.msgid] if existing_entry entry = existing_entry.merge(entry) end @entries[entry.msgid] = entry end ## # Returns PO format text for the PO. def to_s po = '' sort_entries.each do |entry| po += "\n" unless po.empty? po += entry.to_s end po end private def add_header add(header_entry) end def header_entry comment = <<-COMMENT SOME DESCRIPTIVE TITLE. Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER This file is distributed under the same license as the PACKAGE package. FIRST AUTHOR , YEAR. COMMENT content = <<-CONTENT Project-Id-Version: PACKAGE VERSEION Report-Msgid-Bugs-To: PO-Revision-Date: YEAR-MO_DA HO:MI+ZONE Last-Translator: FULL NAME Language-Team: LANGUAGE Language: MIME-Version: 1.0 Content-Type: text/plain; charset=CHARSET Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=INTEGER; plural=EXPRESSION; CONTENT options = { :msgstr => content, :translator_comment => comment, :flags => ['fuzzy'], } RDoc::Generator::POT::POEntry.new('', options) end def sort_entries headers, messages = @entries.values.partition do |entry| entry.msgid.empty? end # TODO: sort by location sorted_messages = messages.sort_by do |entry| entry.msgid end headers + sorted_messages end end PK!&pot.rbnu[# frozen_string_literal: true ## # Generates a POT file. # # Here is a translator work flow with the generator. # # == Create .pot # # You create .pot file by pot formatter: # # % rdoc --format pot # # It generates doc/rdoc.pot. # # == Create .po # # You create .po file from doc/rdoc.pot. This operation is needed only # the first time. This work flow assumes that you are a translator # for Japanese. # # You create locale/ja/rdoc.po from doc/rdoc.pot. You can use msginit # provided by GNU gettext or rmsginit provided by gettext gem. This # work flow uses gettext gem because it is more portable than GNU # gettext for Rubyists. Gettext gem is implemented by pure Ruby. # # % gem install gettext # % mkdir -p locale/ja # % rmsginit --input doc/rdoc.pot --output locale/ja/rdoc.po --locale ja # # Translate messages in .po # # You translate messages in .po by a PO file editor. po-mode.el exists # for Emacs users. There are some GUI tools such as GTranslator. # There are some Web services such as POEditor and Tansifex. You can # edit by your favorite text editor because .po is a text file. # Generate localized documentation # # You can generate localized documentation with locale/ja/rdoc.po: # # % rdoc --locale ja # # You can find documentation in Japanese in doc/. Yay! # # == Update translation # # You need to update translation when your application is added or # modified messages. # # You can update .po by the following command lines: # # % rdoc --format pot # % rmsgmerge --update locale/ja/rdoc.po doc/rdoc.pot # # You edit locale/ja/rdoc.po to translate new messages. class RDoc::Generator::POT RDoc::RDoc.add_generator self ## # Description of this generator DESCRIPTION = 'creates .pot file' ## # Set up a new .pot generator def initialize store, options #:not-new: @options = options @store = store end ## # Writes .pot to disk. def generate po = extract_messages pot_path = 'rdoc.pot' File.open(pot_path, "w") do |pot| pot.print(po.to_s) end end def class_dir nil end private def extract_messages extractor = MessageExtractor.new(@store) extractor.extract end require_relative 'pot/message_extractor' require_relative 'pot/po' require_relative 'pot/po_entry' end PK!r $template/json_index/js/navigation.jsnu[/* * Navigation allows movement using the arrow keys through the search results. * * When using this library you will need to set scrollIntoView to the * appropriate function for your layout. Use scrollInWindow if the container * is not scrollable and scrollInElement if the container is a separate * scrolling region. */ Navigation = new function() { this.initNavigation = function() { var _this = this; document.addEventListener('keydown', function(e) { _this.onkeydown(e); }); this.navigationActive = true; } this.setNavigationActive = function(state) { this.navigationActive = state; } this.onkeydown = function(e) { if (!this.navigationActive) return; switch(e.keyCode) { case 37: //Event.KEY_LEFT: if (this.moveLeft()) e.preventDefault(); break; case 38: //Event.KEY_UP: if (e.keyCode == 38 || e.ctrlKey) { if (this.moveUp()) e.preventDefault(); } break; case 39: //Event.KEY_RIGHT: if (this.moveRight()) e.preventDefault(); break; case 40: //Event.KEY_DOWN: if (e.keyCode == 40 || e.ctrlKey) { if (this.moveDown()) e.preventDefault(); } break; case 13: //Event.KEY_RETURN: if (this.current) e.preventDefault(); this.select(this.current); break; } if (e.ctrlKey && e.shiftKey) this.select(this.current); } this.moveRight = function() { } this.moveLeft = function() { } this.move = function(isDown) { } this.moveUp = function() { return this.move(false); } this.moveDown = function() { return this.move(true); } /* * Scrolls to the given element in the scrollable element view. */ this.scrollInElement = function(element, view) { var offset, viewHeight, viewScroll, height; offset = element.offsetTop; height = element.offsetHeight; viewHeight = view.offsetHeight; viewScroll = view.scrollTop; if (offset - viewScroll + height > viewHeight) { view.scrollTop = offset - viewHeight + height; } if (offset < viewScroll) { view.scrollTop = offset; } } /* * Scrolls to the given element in the window. The second argument is * ignored */ this.scrollInWindow = function(element, ignored) { var offset, viewHeight, viewScroll, height; offset = element.offsetTop; height = element.offsetHeight; viewHeight = window.innerHeight; viewScroll = window.scrollY; if (offset - viewScroll + height > viewHeight) { window.scrollTo(window.scrollX, offset - viewHeight + height); } if (offset < viewScroll) { window.scrollTo(window.scrollX, offset); } } } PK!P^"template/json_index/js/searcher.jsnu[Searcher = function(data) { this.data = data; this.handlers = []; } Searcher.prototype = new function() { // search is performed in chunks of 1000 for non-blocking user input var CHUNK_SIZE = 1000; // do not try to find more than 100 results var MAX_RESULTS = 100; var huid = 1; var suid = 1; var runs = 0; this.find = function(query) { var queries = splitQuery(query); var regexps = buildRegexps(queries); var highlighters = buildHilighters(queries); var state = { from: 0, pass: 0, limit: MAX_RESULTS, n: suid++}; var _this = this; this.currentSuid = state.n; if (!query) return; var run = function() { // stop current search thread if new search started if (state.n != _this.currentSuid) return; var results = performSearch(_this.data, regexps, queries, highlighters, state); var hasMore = (state.limit > 0 && state.pass < 4); triggerResults.call(_this, results, !hasMore); if (hasMore) { setTimeout(run, 2); } runs++; }; runs = 0; // start search thread run(); } /* ----- Events ------ */ this.ready = function(fn) { fn.huid = huid; this.handlers.push(fn); } /* ----- Utilities ------ */ function splitQuery(query) { return query.split(/(\s+|::?|\(\)?)/).filter(function(string) { return string.match(/\S/); }); } function buildRegexps(queries) { return queries.map(function(query) { return new RegExp(query.replace(/(.)/g, '([$1])([^$1]*?)'), 'i'); }); } function buildHilighters(queries) { return queries.map(function(query) { return query.split('').map(function(l, i) { return '\u0001$' + (i*2+1) + '\u0002$' + (i*2+2); }).join(''); }); } // function longMatchRegexp(index, longIndex, regexps) { // for (var i = regexps.length - 1; i >= 0; i--){ // if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; // }; // return true; // } /* ----- Mathchers ------ */ /* * This record matches if the index starts with queries[0] and the record * matches all of the regexps */ function matchPassBeginning(index, longIndex, queries, regexps) { if (index.indexOf(queries[0]) != 0) return false; for (var i=1, l = regexps.length; i < l; i++) { if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; }; return true; } /* * This record matches if the longIndex starts with queries[0] and the * longIndex matches all of the regexps */ function matchPassLongIndex(index, longIndex, queries, regexps) { if (longIndex.indexOf(queries[0]) != 0) return false; for (var i=1, l = regexps.length; i < l; i++) { if (!longIndex.match(regexps[i])) return false; }; return true; } /* * This record matches if the index contains queries[0] and the record * matches all of the regexps */ function matchPassContains(index, longIndex, queries, regexps) { if (index.indexOf(queries[0]) == -1) return false; for (var i=1, l = regexps.length; i < l; i++) { if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; }; return true; } /* * This record matches if regexps[0] matches the index and the record * matches all of the regexps */ function matchPassRegexp(index, longIndex, queries, regexps) { if (!index.match(regexps[0])) return false; for (var i=1, l = regexps.length; i < l; i++) { if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false; }; return true; } /* ----- Highlighters ------ */ function highlightRegexp(info, queries, regexps, highlighters) { var result = createResult(info); for (var i=0, l = regexps.length; i < l; i++) { result.title = result.title.replace(regexps[i], highlighters[i]); result.namespace = result.namespace.replace(regexps[i], highlighters[i]); }; return result; } function hltSubstring(string, pos, length) { return string.substring(0, pos) + '\u0001' + string.substring(pos, pos + length) + '\u0002' + string.substring(pos + length); } function highlightQuery(info, queries, regexps, highlighters) { var result = createResult(info); var pos = 0; var lcTitle = result.title.toLowerCase(); pos = lcTitle.indexOf(queries[0]); if (pos != -1) { result.title = hltSubstring(result.title, pos, queries[0].length); } result.namespace = result.namespace.replace(regexps[0], highlighters[0]); for (var i=1, l = regexps.length; i < l; i++) { result.title = result.title.replace(regexps[i], highlighters[i]); result.namespace = result.namespace.replace(regexps[i], highlighters[i]); }; return result; } function createResult(info) { var result = {}; result.title = info[0]; result.namespace = info[1]; result.path = info[2]; result.params = info[3]; result.snippet = info[4]; result.badge = info[6]; return result; } /* ----- Searching ------ */ function performSearch(data, regexps, queries, highlighters, state) { var searchIndex = data.searchIndex; var longSearchIndex = data.longSearchIndex; var info = data.info; var result = []; var i = state.from; var l = searchIndex.length; var togo = CHUNK_SIZE; var matchFunc, hltFunc; while (state.pass < 4 && state.limit > 0 && togo > 0) { if (state.pass == 0) { matchFunc = matchPassBeginning; hltFunc = highlightQuery; } else if (state.pass == 1) { matchFunc = matchPassLongIndex; hltFunc = highlightQuery; } else if (state.pass == 2) { matchFunc = matchPassContains; hltFunc = highlightQuery; } else if (state.pass == 3) { matchFunc = matchPassRegexp; hltFunc = highlightRegexp; } for (; togo > 0 && i < l && state.limit > 0; i++, togo--) { if (info[i].n == state.n) continue; if (matchFunc(searchIndex[i], longSearchIndex[i], queries, regexps)) { info[i].n = state.n; result.push(hltFunc(info[i], queries, regexps, highlighters)); state.limit--; } }; if (searchIndex.length <= i) { state.pass++; i = state.from = 0; } else { state.from = i; } } return result; } function triggerResults(results, isLast) { this.handlers.forEach(function(fn) { fn.call(this, results, isLast) }); } } PK!^2template/darkfish/_sidebar_table_of_contents.rhtmlnu[<%- comment = if current.respond_to? :comment_location then current.comment_location else current.comment end table = current.parse(comment).table_of_contents if table.length > 1 then %> <%- end -%> PK!>qq&template/darkfish/fonts/Lato-Light.ttfnu[GPOSjNKGSUBV.TLOS/28M`cmapRԟN@cvt &7g|8fpgm zAg gaspgtglyfiS(headDeJ޼6hheaix$hmtxESvJTkern2lllocaKpPP,maxp> R| name UR:post:\cprepx9qH 0JDFLTlatnkernkernJnv$R ^ h B l  & rjZjL*|DV: !.!##L#$4$~%&J'$'()*+f+,6,-.(./t//0:0|2"233T334&4l455b566L667B778889d99:&::;@<=>j?,?@hABCzDEFG*GHfIK V B V#$V&*2497:7<?7DFGHRTmBoByB}BVVVVVVVVBB BBBVK V B V#$V&*2497:7<?7DFGHRTmBoByB}BVVVVVVVVBB BBBV"#&*24FGHRTK V B V#$V&*2497:7<?7DFGHRTmBoByB}BVVVVVVVVBB BBBV- v#&*247L9L:P`Q`R)S`T)U`VDX`YLZt[g\L]mLoLw`yL}L))))))`))))))````))`)LLLLLLL $k7 7 7GG"<#$&*-o24DFGHIJ{PQRSTUVWXY[\]l7mor7tFuFwy{F|7}77G77G7I7 7 7"%$-DFGHJRTVl7mor7t7u7y{7|7}777771#&*24FGHIRTWYZ\moy}i t  y`yt"%#$t&*-824DF`G`H`J[PQR`ST`UVXYZ[\lm`o`rt-u-wy`{-|}`ttttttt````````````t`````yy```t0"%#&*24FGHRTVY\moy}"#&*24FGHRT6V V V"#&*--24789:?DEHIKNPQRSUYZ[\^lmoprtuy{|} 8DFLTlatncase&case,liga2liga8sups>supsD,>B      @ LO,{tu CjqvI,xxDP`KtyPL@Jz  &   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ardeixpkvjsgwl|cnm}byqz`T@ ~1DS[a~    " & 0 : D !"!&"""""""+"H"`"e%&i 1ARZ`x    & 0 9 D !"!&"""""""+"H"`"d%&i{uq[H$I޸ޡޞ:ڜ`T@ ~1DS[a~    " & 0 : D !"!&"""""""+"H"`"e%&i 1ARZ`x    & 0 9 D !"!&"""""""+"H"`"d%&i{uq[H$I޸ޡޞ:ڜ/'37;BK PX@3 `f[[ Q CQ D@4hf[[ Q CQ DY@ ;:$$#,$ +>32#'&>54.#"#"'4632#"&!!7!!332#"&tA1!""'5-PS\88\SP-<""!5) ,@) BQ D   $+#"&/!#"&/  u  ܙ$ܙ$V<6:5BK-PX@(  Y  C Q C D@&  Z  Y  C DY@:98766421/-,(&#"!#!+#"&547!+#"&5<?3#76;>;!323+32%!!^)VV*^R(W*_*_*W(R*REm  &!Fp&!{,F \;FQ@) ! LA*7BK PX@2j  h f_ SC TD@1j  h fk SC TDY@NMCB;965$#$ +.'7632.54>?>;#".'+4.'>H  &4EX8 De>4e_ $ e?  '?]A/_WJ7:mf  $2Tm<P}U,,Lc8LqL&bP'!'#|4QwZEe>K?"!(% (4G[X?-(0K`W'0DX?@<[ [ CSC C SDUS((%"&((($ +#".54>324.#"32>>;+#".54>324.#"32>0Rl<>mP..Pm>>lQ/L#=Q--P<##mP..Pm>>lQ.L#7>;#"&/#".54>7.54>32>7&'CxY5  ":W;*Y-l~OKsG4Z|HGG3^;^s8F}m[&5BkJ(.Ng8 D<*%C\7RVHHI ^[4X?$2aZHmVPVFwX2MrM& 9N/N_n @BQ D $+#"&/  ܙ$(+.54>7yx*Mi@@iM* wyve vuuv eb(+4'&54?'&5476Zyw *Lj@@jL*xyv vuuv {51@.1-,($# BMQE55+5467'7>7./7.=3>?'.'t 4   m,n n-n  m-m n-n m ,@)MYQE +!!#!5!iQNR=I;In@B ?S D"+74632'&5467>7#"&n0'+/(8"  %/U#2;0)URL    '5@$2d)5z@MQE+!!d/zQi"@SD($+74>32#"&i!""'5M""!5@kD""++6;[ 'n')-%I?'@SCSD((($+#".54>324.#"32>?PiiOOiiPdBoRRpBBpRRoBĺWWWWHHGG*@' Bh CR D%+%!47#"/3!!5E  J5'J|"& (iJ2>@;. BhSCQ D-,+)$" 22+2>3!2!5467>54.#"#"&#'>ZQpB1To=E E#co CqW9 0 Kr/_`P~w><8" =rtzENsJ$)Ie<#[b3HU@RD Bhh[SCSDB@;910/.&$HH +2#".'763232>54.#5>54.#"#"/>eQm?+Kf#[b3?^ @[ C D!#+!+#!"&/3467![ Ve UV^4 j /&/@@=-,Bh[Q CSD(#&(#"+#!>32#".'763232>54.#"'!UCx7nq:Nd;j^N  1MiFRi;-[^9H>o|^(?q\p|B#.'$5d]L[3s02@/B[ CSD-+#! +2#".54676;>32>54.#"t[o?E{gcu@T`"TZ4;1ZQVa43]NX`2N7.54>32'2>54.#"2>54.#"DfyD-RqD>`A"9j_^k9"B`>DqR.DyfQ`4Dj<Vi32+>74.#"32>=Wk32#"&4>32#"&!""'5!""'5M""!5D""!5J-H@ (B?K#PX@SCS D@[S DY,*$($+4>32#"&4632'&5467>7#"&!""'50'+/(8"  %/j""!5#2;0)URL    '5@$2 5(+ !'*) A   Ae!@YMQE+!!!!;;,JJ 5(+546767.'&= *(" A   A)!(:9@6BhfSCSD(&#-$+>32#'54>54.#"#"'4>32#"&!DQ`8F|]7/HTI3 A0GSG0*H^3BaB&!""'5 2'*NqFLnS?78")>:3232>54.#"3267632#"$&546$32%2>7.#"XY8R8R6A}t5]%[ %09hP/a}mqd pzvq:e$MG>P3"Zg9(;]W]S'D\5UV.I,7 54&#!yt9'JkE@zqc3`Y3bY*0]U8hXAZd5CkK(K2Rh7|2D@ABhfSCSD,*"  22+%2#".54>32#".#"32>7> (,h{XbeMob/ +=TnF؜WVyLwdV* +/K5g  i+@*- %Y뒖W(:'y @S CS D!(!$+#!!24.#!!2>ybbjRҀcҕRĤbbTT" .@+YQ CQ D +!!!!!"lUSU" (@%YQ C D +!!!#"{gUUv|C4H@E! Bh[SCSD,*%# 44+%2>7!"&=!#".546$32#"'.#"2Ixg]/ 5rYddQvf/  9ahޝUVC+} 8 %:'g  g+?),,0&X쓖X @Y C D+!#!#3!3gggvgZl^@ C D+!#3^ggY'@$Bh CSD#'$+#"&'>7>3232>53;mb-\1  #-LzV-gw|? 0cf"&@#B[ C D'(' +32>7>;#"&'.+#3VT ;S!S  [ff  K X d  V@ CR D+%!!38fWWH %@"Bh C D!5(+>7>;#47+"'#32z  ,GZYF;  y#J (@ C D!+2&53#"'#3 Z1hY2 6yY{'@SCSD((($+#".54>324.#"32>bccbjRҀ~їSS~ҕRĤgg  hgWW씕VVS *@'[S C D !+#!2#%!2>54&#!VfmEu^g7:]q?R4\}J{0T@  BKPX@SCSCD@kSCSDY(((%&+#"&'#".54>324.#"32>+PsHpV ?NccbjRҀ~їSS~ҕRk~-v Fg  hgWW씕VV"2@/ B[S C D" *!+#!2#"&'.#'32>54&#!Vfi8i]Y ;')^g6ƽQeA  >L-TvJW==@:=BhfSCSD;9(&!#!+#".#"#"&'763232>54.54>32~  )FiMMuO)=dd==tlL  (8J`=T[0=dd=6hbnH%-&,Ld7H^B-,5PuWYtCcV,#)#3XyEKaA,*4Qy[Ge=FH#n @Q C D+!#!5nf W0W#@  CSD +%2>53#".53fp;fJ||NjJg;oIG~cku˗VVukc~H@B C D* +3267>;#Q P[ j.46, y' @#B C D,; +32>7>;2>7>;#&'#Ue   eNC\^][u..  u,- y4@B C D(")!+ 32>7>; #"&'+e  beB J ] L T% @ B C D,"+#32>7>;gYZHH? v++ s $@!Q CQ D +!!547!5~ #U%U '@$[OQE !#+!+32>$  $@kD" +32#"&')'n' %"k !@[OQE!"+46;#"&=!!k= s $  @ Bk D,!+3#"&'.'+ <UD    G L3@MQE+!5DDV @kD  +2#"&/ 6  kC'7T@Q-Bh[SC C SD)(/.(7)7"  '' +!"/#".54>754&#"#"/>32%2>7)QXf=3`J-HwuHeF, NmPxO(J:aSH#ͅ?!6H(@,>aD?lP0h(0(NP3_Sx5->$#32#"&'#"32>54&`Bm9oih6hc?9ZXY-XfmPQOzf[VE@ubXX,9@6,BhfSCSD(&#(#"+#".#"32>32#".54>321  #:W>V[01ZNHa?% FXg8_q?5W#q@ BK%PX@CSCS D@!CSC CSDY@## +!"/#"&54>323%267.#"c Bn9oie6`^c?:XXY-ZjmPKHNQ@f[ UF@ubX%0H@EBh[SCSD'&,+&0'0 %% +2#!32>32#".54>"!4.Ti; 14`TKnK, Oao8fxA=skMzY7 ,Pp:oips:!)! 4%GkJG0Z~NPX/n_BK!PX@SCQC D@[SC DY@!$%! +3'&=354>32#"&#"!!nj,PqD? )1S7.54>4.'32>2>54.#"Ao,4]OVF*0ugik6h[2; -GO3]1Rkuv3&A.-W~RLa7@dD#$Ec??dE$$Ed ! &_6HuS.B+.-QC>rX5+I`6Or@9.-()[HuT./9  '1;#,K7 ">V.%B\88]B$$B]88\B%-@*BCSC D##+33>32#4&#"_EnR}R*_bBUe4bW|eXG&@#SCC D +##".54>32_    W!!G'4@1 BSCCSD$"!$%+#"&'76323265#".54>32;Y<. QN    4XA% 0 XQbW!!0@-B[CC D%(%!+3267>;#"&'.+# . TI   S ^-`{ _   @C D+#_Q,8@5+ BCSC D,,##&&! +332>32>32#4&#"#4&#"4 BKU/mATc4JvS,`~u4_I+_toQ6)D1q>Z;1`Z|&KpJ|aV1@.BCSC D#$!+332>32#4&#"4 DoR}R*_bBVi4bW|eXW',@)SCSD'' +2#".54>2>54.#"kt==tkku==ukYY,,YYYY--YIuuHHuuIK=rdcs>>scdr=$D@ABCSCSCD$$&%!+32>32#"&'"32>54&4  Bn9nif6Bc>9YXY-C ZjmPJIg\VF@ubW#D@ABCSCSCD##&#+##"&54>32763267.#"`Bl9oig6 c?6YXY-XfmPNLp]f[RH@ub8@5 BhCSC D#$%!+332>32#".#"20u-L" !0q-yB yY<=@:<BhfSCSD:8'%" #!+#".#"#"&'7>3232>54.54>32 #9S<6Y?#0NchcN0/YSi< &=[C?`@!0NcicN0.UzL[;h4E&/>, ':T5bJ,464@#x@ !BKPX@%jhQCSD@#jh[SDY@ ## +"&5#"&=7>;!!32>32eq  -9%2$4&&upu % d G]);& **3-@*BC CSD$!#+32673#"/#".5逃aC`5 EoS|R*cXVh4bW|@ BC D,!+!#32>7>;T\KH  J H *+ * @#BC D*!); +32>76;2>76;#"'.'+I  '  FFC **-*+(#v@BC D("(!+ 3267>; #"&'+[ $  Xj[  U Z h @BCD,""++32>7>;{D[OO  K I  J: @QCQ D+!!547!5!:d)qK&MK?H3@0*B[[OSG@>;83-+4.#52>54.54>;+";2#".54>):##:)&HiB7!+G3)55)3G+!7BiH&!7)=)7!7hhi8=hM+* 8P19lii5%>./=%5ijl81P8 *+Mh=8ihhQ@QD+3#KKiH5@2B[[OSGEDCB530-3)++546;2>54.54>7.54>54.+"&=323"}&HiB7 !+G3)55)3G+! 7BiH&)9##9)7hhi8=hM+* 8P18lji5%=/.>%5iil91P8 *+Mh=8ihh7!7)=)79@6jk[OSG +2>53#".#"#4>32 %=*N 734632#"&A5'""'5&-PS\88\SP-'5""70;U@R 6&,BjhfkSCTD##'# +.54>?>;#".'>32+M`r>@{s $ W5  !7P8+KfC' EXh: $/Y}N,\a3 JtpM :.!"' 1% bo@i?qCQ:@@=3)Bh[SCS D#&#%&%" +46;4>32#"'.#"!#!>3!#!5>5#C4gfLtW>&  ->V327'#"&''7.732>54.#"($1-n?>m-1$*)$2-n>>m-1$)H+Ic88cJ++Jc88cI+>m-2$*)$2-n?>m-2$)($2-n?8bI++Ib88cJ++JcU( 8@5 B Z Y C D *! +!3267>;!!!!#!5!5!ZZO Z  YPY[n_nhg#!' :v:~:vQ@YQD+3#3#KKKK}kH\A@>HZP=#BhfWSDFD-+(&!#!+#".#"#"&'7>3232>54.5467.54>32>54.'( #9S<8[@#2RhmhR2TR6C/YSi< &>\D>`B"4VmqmV4[g7E.UzL[;'CX`c-G>$=QZ]+YJ 5F'.D7.07F]>S{#&bEApR0C6" % "32#".54>32 W     U,H\@ BKPX@4hf[[ SCSDKPX@4hf[[ SCSD@4hf[[ SCSDYY@ YW*,((#&(%! +632#".54>32#".#"3264>32#".732>54.#"8 ;t`s@Cxc4WJ@ !:[DSa55^MU{S4]dd]44]dc]4;ghhg ;FAvfdwB)! 5bWZa3)Pc^44^cd^44^dhhiij>5&4B@? ,Bh[WSD('.-'4(4$##' +#"&/#".54>754&#"#"/>322>755  15=$!<.*]iDI+;(  0jCeh!81+!*G D$ %9'$A13LO 0-ub"D8' %%(+55   z     { z     S=K PX@_MQE@kMQEY+!#!=R'd)5z@MQE+!!d/zQU/FO:BKPX@/h  [ [SCSDKPX@/h  [ [SCSD@/h  [ [SCSDYY@00OMIG0F0E)!(*,& +4>32#".732>54.#"#32#"&'.#'32654&+U4]dd]44]dc]4;ghhgUu  P nywlvc^44^cd^44^dhhiiyusvd _ @a[\T5%@MQE+!!!%A[D'@WSD((($+4>32#".732>54.#"[/Qn??nQ//Qn??nQ/G$>T00T=$$=T00T>$n>mQ..Qm>>lQ//Ql>0T>$$>T00T?$$?TmP 7@4YYMQE  +!!#!5!!!iQNRRUjInIIa;W-g@ + BK#PX@h[SD@!h[OQEY@(&#! --+2>3!2!546?>54.#"#"&/>V,N9!*8'&1%'4>H |W1I0(E?;*89< #4"G7`fb|=W?@=BKPX@,hh[[SD@1hh[[OSGY@;964.-,+#!?? +2#".'7>3232>54.#5>54.#"#"/>\,L7 H).J5[Y'3?I{W/C+BWTB0M73C$  (%*4!4%1K?"2!A;`f @kD #++7>3 9  0@-BCS CD&$!#+32673#"/#"&'#"&5逃aC`5 Ffb%0cXX\MH+X$6B*@'hiS D+##!#".54>3UVgr==rgR  y8bMP\2o@OSG($+4>32#".$&&$P&&%%V@  BK PX@^jTD@jjTDY@+232654.'73#"&'76(390A'*=Y]1D()N  ,&! `<;0! 5RO BKPX@jjQD@jjMRFY$+37#"/733! :%~ c1W;)@&WSD +2#".54>2654&#"wBjJ''JjBDjK''KjDhiihkii*OoEEoO**OoEEoO*rqqr)'(+7'&547>7.'&54?'&547>7.'&54?      &  %     &  %   q#-O@L! Bh  Z [  CS  D-+(&#"$!" +%3+#5!"/3%37#"/733!47!+>;~m?`C : ( *$ #%~ c1w} dK-=Ge@b710+ Bhh  Z [  CS  DGEB@=<;:9853/.(&#! -- +2>3!2!546?>54.#"#"&/>%37#"/733!+>;f,N9!*8'&1%'4>I| : ( *1I0(E?;*89< #4"@>`f%~ c1b dSqPU_]@N  $SBK PX@B h  h  [[ \ S CS DK PX@B h  h  [[ \ SCS DK PX@B h  h  [[ \ S CS D@B h  h  [[ \ SCS DYYY@!_]ZXUTKHEC=<;:20)' PP!"+%3+#5!"/32#".'7>3232>54.#5>54.#"#*.'>47!+>;~m?`CZ,L7 H).J5[Y'3>J { ( *$ /C+BWTB0M73C$  (%*4!4%1K?"2!G5`f} d*);5@2BhfSCTD('#-$+#".54>?332>324>32#"&DQ`8E}]70GTJ3 A0GTG0*H^3E_@$ !""'52')MoGLkM924#*<45E]B6U;#+#O""!5&$ [&$ [&$ `&$`&$ `&$`4@1YYQ CS D" +!!!!!!!+!HjK8 O i USUc7.|Oh@e<B M Bhf hSCSC S  DKIA@:820(&!OO +232654.'7.54>32#".#"32>7>32#"&'76(390A'$ZeMob/ +=TnF؜WVyLwdV*  (,eyUY]1D()N  ,&! sn i+@*- %Y뒖W(:'+.J5K<;0! "&( Z"&( Z"&( _"&( _&, N&, E&, N&, 1!,@)YS CS D!%(!+3!2#!#%4.#!!!!2>1bbRҀclҕRbbT@T&1{&2 {&2 {&2 {&2{&2 D  (+  ' 7 t34u5pn 4t4vp6o{!-9b@ 21&%BKPX@kCSCSD@jkSCSDY**%(%$+#"&'+7&54>327>;.#"4&'32>bsQ ,lwcySo 7eo$^UGj~їSrVNEdҕRĤg=9` hC?`갠R954&#!VffEu^g7]q?R4\}J'J>@;BhSC CSDED?='%" JJ+2#"&'7>3232>54.54>54.#"#4>UZ./GRG/!7EIE7!2Z~Me< %\G87:%$1$!):DS8I?*+X^eo;kC&DCkC&DvkC&DkCi&DkCW&DjkC&DkBR]@:@BK1PX@5hh  [ S C SD@?hh  [ S CSC SDY@&TSYXS]T]NLDC><7520-,$" BB+2#!32>32#"&'#".54>754&#"#"&/>32>32>5"!4.K`7 l0X|LGdD& JZe4/Uly7?lP.HwuHeF, Mk~/ͅ?!32#".#"32>32#"&'76(390A'%Wg8V[01ZNHa?% -jY]1D()N  ,&! vKsrK>5" =reio:"(" :NO<;0! X&HCX&HvX&HXW&Hj"V&C&v&W&jY}6J6@3<2B65@[SD87B@7J8J.,$"+&54?.'.546?7#".54>32.'2>7.#" ~327>;.#"2>54'h<>=tklQ !&DF=ukX7W 2/0-vKY[.iYZ.P WiCvuHOmCuI1-th9*,?s>rds]E&XC&Xv&XW&Xj&\v!@@=BCSCSCD!!&#+3>32#"&'"32>54&_Bm9nif6Bc>9YXY-XgmPNLg\VF@ubW&\jc&/O@L,BAhZ C CSD('#!&& +2#"&54>7&'!+3"32>!.'F T/L^'1INCfC 23&@2&z"KB92*e y/A'05 ++kBRn@k-H 6Bh h  [SC SCSDDCJICRDR?=1/*(%# BB +2#"&54>7&/#".54>754&#"#"&/>3232>2>7 T/L^)4 )QXf=3`J-HwuHeF, NmPxO(.(@2&:aSH#ͅ?!6H"KB ;3+ (@,>aD?lP0h(0( NP3_Sx "-705 (->$#7!!!!!!#32>$ T/L^&1RPl[.(@2&"KB82+USU "-705 XCNg@d2Bh h  [  SCSCSDEDJIDNEN@>0.+)$"CC +2#"&54>7"#".54>32#!32>3232>"!4. T/L^!+ fxA=sjTi; 14`TKnK, 7EP*,&@2&MzY7 ,Pp"KB4/)GkJ:oips:!)! *" ",505 0Z~NPX/@C D+#_:#@  B CR D+%!!54?3c rf? WKeB ]9#@  BC D+7#54?[ _Y2 TZ4Tv&1 &Qv{7 4@  BKPX@+YSCQ C S DK%PX@)YSCQ C S DK)PX@3YSCQ C Q C SD@1YSCQ CQ C SDYYY@ 1/%(% +!!!!!#".54>32!4.#"32>7l%k]ߠYY߇]k%EJsrKKrsJ2SUNRY/f  h0ZRM=XX씕WWWW2FQa@^. Bh  [ S C SDHG43MLGQHQ><3F4F,*"  22+2#!32>32#"&'#".54>32>2>54.#""!4.K`7 l0Y|LCcE) JZe4,*Ĕbm::mc*E^xZR{R))R{RS|S))S|?HsR1W(Ie>scdr=n4^RU]1W&6  Y&VvW&6Y&V&< 4s&= hJ:&]vs&=kJ:&]s&=kJ:&]v#2@/YSCSD##"" +#543>7'&=37>3#"!{` DlX$3`N7 _ض$5`N7 eb\+0 FpR '3FpRG (@Bk D* +#"/&'+73(A CU  ( @Bk D' +32?>;# C AU 5%q5 @W D +".5332>53$B[9E(A00A)E9['DZ2%B22B%2ZD'}@SD($+#".54>32}    F!!xs=K'PX@WSD@[OSGY$&($+4>32#".732654&#"x/?##?//?##?/:@32@@23@$<++<$$;,,;$2@@22@@ +@(B@jSD+2#"&54>732> T/L^-81.(@2&"KB"=6, "-705 &*iQKPX@WS D@[OSGY@ +2673#".#"#4>32+,;%6"!;63*,=&6"";537/$?.!'!9-$?.!'!| #@ SD   #++7>3!+7>3 * R /   .s\BK1PX@SCS D@SC CSDY@!$## ++#!#"&'7632325#5463s_,mi4 $e=nt '" f@MQE+!!fGf@MQE+!!fG!.(+.5467L=&2#!&K&N;3d6;=n(+'&547>54'&547L=&2#&K&N;2e6:=n(+7'&547>54'&547L=&2#&K&N;2e6:=!;)(+.5467.5467L=&2#L=&2#!&K&N;3d6;=&K&N;3d6;=n')(+'&547>54'&547%'&547>54'&547L=&2#JL=&2#&K&N;2e6:=&K&N;2e6:=n')(+7'&547>54'&547%'&547>54'&547L=&2#JL=&2#&K&N;2e6:=&K&N;2e6:=@ BKPX@CCSCDK%PX@ZCCD@`ZCDYY@ #!""+463632>72!#"'!MS  RN     -@  &" BKPX@/  `  [CCSC  DK%PX@-  `Z  [CC  D@/`  `Z  [C  DYY@+)('%#! !"#+7!!5463632>72!!#.'#"'"&5|MS  RN}NR  SM   B  1i|@OSG($+4>32#"..Pj<=lP..Pl=32#"&%4>32#"&%4>32#"&i!""'5!""'5!""'5M""!5'""!5'""!5Wz'0DXlK@H[   [ CSC C  S D}{sqig_]US((%"&((($+#".54>324.#"32>>;+#".54>324.#"32>%#".54>324.#"32>0Rl<>mP..Pm>>lQ/L#=Q--P<##mP..Pm>>lQ.L#mP..Pm>>lQ.L#7.'&54?    &  %   6 @ C D#"+'+>;k ( * doN[@X ; Bh  h [   [SC S  DNMHGFEA?97$##%'$+3>32#".#"!#!!#!32>32#".'#53.547#Zn@m]Q% "1CY:ZqJZ HpZ>_H4$ %$TfxFqT_ҒN,A+#%?zv /2' |~@%+% #.K5Nً;'10HH#C@@ BhS  CS  D##!4% +67>;#7+"'#32###5 9> ?9 WG l,z*E?x;;h}71@.1BSCS D76***+!>54.#"!"&=!5.54>32!#c`r>VooŔV>q` byDe뇇eDxbkOwg~~??~~gwO4\mؖOO؉m\4{.BC@@4Bh[SCSD0/:8/B0B#+(($+>32#".54>32>54&#"#"&'2>7.#"$CCG(W_2GԌQ`5Iq5cVD1K8%  MRoO +GeEbk9(If=# H~6f[rɖV9W;;5- &Gy3cN/IdKvR+ @B CR D+3!7!&'^\M *  ySz!+&M $@!Q CD +##!##5bbRkkRW&@# BQ CQD+!!!!547 &5W{[ ` RR$1. z@MQE+!!=I("@ Bj[ D*# +#"&=!267>;#5:  :O .)%' IJ ';OL@IK-B[  O  SG=<)(GE32>32%2>7.#"!2>54.#"7\NCCN[79hO//Oh97[NCCN\79hO//OhF,KB;;BK,,M:!!:M+M9!!9M+-KB;;BK(BW//VC(+PsGGrP+(CW..WC(+PrGGsP+N&@S--T@&:V78V::V87V:&@T--S@&K)*@'BSCSD!%)U$+>32#"&#"#"&'7>3232>7 :Vo@'9  4XC- ?]xE!A "<`G/ >WU+ +  DgHcZ* '  GqQ/d@a('B[[[ O SG,*%# //  +267#".#"'>32267#".#"'>32 4Xd84ec`.7Wc<4fc_.4Xd84ec`.7Wc<4fc_*-:+/$,$-8-0$,$-:+.$,$-8-/$,$pkK PX@)^_ ZMQE@'jk ZMQEY@  +!3!!!!#!5!7!uGth@vHvThDe JJJPO!@ @MQE+!! ''%v>     ?xIPO!@ @MQE+5467>7.'.=!5! &&& (?    >If"@ BMQE+3 # >7 .'BnBL  N  @@S@CD+3#kaBK!PX@SCQC  D@[SC  DY@!$%! +3'&=354>32#"&#"!#!nj6g_!G +!G`{ 'U\g7 0 R<}"K!PX@SCQC  DK1PX@[SC  D@![CSC  DYY@""A15! +3'&=354>32;#.#"!!nj4d`"IE<H_6w0KvQ+ { 'AXn>nO/Y~NAGR @jD  +2+:  0[ "6M6  @ja  +2#"&'%tG   2E%@OSG&(($+#".54>32#".54632   0!    !1 U5q@MQE+!!Uaq<J @ja #++7>3J  F  <@Bja, +#"&/.'+73?>;# J IZ{{2 (@%jOSG   +"&5332653$|v@R``R@vpfGQQGbt8{@OSG($+#".54>32{  }!@[OSG$&($+4>32#".732654&#"}-="">-->""=-5@32@@23@^";**;"#:**:#2@@22@@*)1@.[OSG +2673#".#"#4>32*,6"5"!<85*+8$4""<84P7+#;- % 8*"<- % j +@(OSG   #++7>3!+7>3 / q  4  m @kD  +2+U  3 #;U< .U_<ʓ^pӡ6z V6:z/VWgjXXb {mndiI?x!kl |x|VY(;{;{W# sXXkIVkDXDWXK:7::W.DW\Y4:#JX?XXiCUXI'MUjjdMUI[mabI:6IWjS*      7|VVVV '1;{;{;{;{;{;{kkkkkkIkXXXXX"0Y::W:W:W:W:Wm:W::::. k|XX*:X9:{W:W\YW\YsJsJsJvI I II5IIxII&I|.:7nnnn`iWkk6Hh{TMTWc(TJ*lIIIIUII I I2II}I*IjIl#`  V B V#$V&*2497:7<?7DFGHRTmBoByB}BVVVVVVVVBB  BBBV V  B  V # $V & * 2 4 97 :7 < ?7 D F G H R T mB oB yB }B V V V V V V V  V  B B B B B V # & * 2 4 F G H R T V  B  V # $V & * 2 4 97 :7 < ?7 D F G H R T mB oB yB }B V V V V V V V  V  B B B B B V   v#&*247L9L:7P`7Q`7R)7S`7T)7U`7VD7X`7YL7Zt7[g7\L7]7mL7oL7w`7yL7}L7777777777777777777777)7)7)7)7)7)7`7)7)7)7)7)7)7`7`7`7`7777)7)7`77)7L7L7L7L7L7L7L78 8888$88888888888979 9 79 79G99G9999"<9#9$9&9*9-o92949D9F9G9H9I9J{9P9Q9R9S9T9U9V9W9X9Y9[9\9]9l79m9o9r79tF9uF9w9y9{F9|79}99999999999999999999999999999999999999999999999997979G97979G999979:7: : 7: 7:::::"%:$:-:D:F:G:H:J:R:T:V:l7:m:o:r7:t7:u7:y:{7:|7:}::::::::::::::::::::::::::::::::::7:7::7:7:::::7:;;#;&;*;2;4;F;G;H;I;R;T;W;Y;Z;\;m;o;y;};;;;;;;;;;;;;;;;;;;;;;;;;;;;;<< t< < <y<`<y<t<<<"%<#<$t<&<*<-8<2<4<D<F`<G`<H`<J[<P<Q<R`<S<T`<U<V<X<Y<Z<[<\<l<m`<o`<r<t-<u-<w<y`<{-<|<}`<t<t<t<t<t<t<t<<<<<<<<<<<<<<<`<`<`<`<`<`<<`<`<`<`<`<`<<<<<t<<<`<`<<<`<`<`<<<y<<<y<`<`<`<<t=="%=#=&=*=2=4=F=G=H=R=T=V=Y=\=m=o=y=}=============================>#>&>*>2>4>F>G>H>R>T>>>>>>>>>>>>>>>>>>>>>>>>?V? V? V??"?#?&?*?--?2?4?7?8?9?:?# #&#n#$"$$%.%d%%&.&t&'0'))r)~)))))*********++T+`+l+x++++,P,\,h,t,,,-P-\-h-t---.x///(/4/@/L/X/d/p/0000&020>011 11$101<1122223<334*4\4h4t5<5556666(646@6L6X6d66777D7n778R88899>9d99::V:;t;;<<= =>=>4>??F?p???@@A^AAB6BxBBCbCCCD D.D\DDDE$EhEE`"/n   ( ( 0% % 4  2( Z 6 J ^ Pl  P  `     0 V d    4n   Copyright (c) 2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.Lato LightRegulartyPolandLukaszDziedzic: Lato Light: 2013Version 1.105; Western+Polish opensourceLato-LightLato is a trademark of tyPoland Lukasz Dziedzic.Lukasz DziedzicLato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based designer Lukasz Dziedzic ("Lato" means "Summer" in Polish). It tries to carefully balance some potentially conflicting priorities: it should seem quite "transparent" when used in body text but would display some original traits when used in larger sizes. The classical proportions, particularly visible in the uppercase, give the letterforms familiar harmony and elegance. At the same time, its sleek sanserif look makes evident the fact that Lato was designed in 2010, even though it does not follow any current trend. The semi-rounded details of the letters give Lato a feeling of warmth, while the strong structure provides stability and seriousness.http://www.typoland.com/http://www.typoland.com/designers/Lukasz_Dziedzic/Copyright (c) 2013-2013 by tyPoland Lukasz Dziedzic (http://www.typoland.com/) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1 (http://scripts.sil.org/OFL).http://scripts.sil.org/OFLCopyright (c) 2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.Lato LightRegulartyPolandLukaszDziedzic: Lato Light: 2013Lato-LightVersion 1.105; Western+Polish opensourceLato is a trademark of tyPoland Lukasz Dziedzic.Lukasz DziedzicLato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based designer Lukasz Dziedzic ("Lato" means "Summer" in Polish). It tries to carefully balance some potentially conflicting priorities: it should seem quite "transparent" when used in body text but would display some original traits when used in larger sizes. The classical proportions, particularly visible in the uppercase, give the letterforms familiar harmony and elegance. At the same time, its sleek sanserif look makes evident the fact that Lato was designed in 2010, even though it does not follow any current trend. The semi-rounded details of the letters give Lato a feeling of warmth, while the strong structure provides stability and seriousness.http://www.typoland.com/http://www.typoland.com/designers/Lukasz_Dziedzic/Copyright (c) 2013-2013 by tyPoland Lukasz Dziedzic (http://www.typoland.com/) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1 (http://scripts.sil.org/OFL).http://scripts.sil.org/OFLLatoLightZD  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghjikmlnoqprsutvwxzy{}|~      !"#NULLuni00A0uni00ADmacronperiodcenteredAogonekaogonekEogonekeogonekNacutenacuteSacutesacuteZacutezacute Zdotaccent zdotaccentuni02C9EuroDeltauni2669undercommaaccent grave.case dieresis.case macron.case acute.casecircumflex.case caron.case breve.casedotaccent.case ring.case tilde.casehungarumlaut.case caron.saltbKbKVV, `f-, d P&ZE[X!#!X PPX!@Y 8PX!8YY Ead(PX! E 0PX!0Y PX f a PX` PX! ` 6PX!6``YYY+YY#PXeYY-, E %ad CPX#B#B!!Y`-,#!#! dbB #B *! C +0%QX`PaRYX#Y! @SX+!@Y#PXeY-,C+C`B-,#B# #Bab`*-, E EcEb`D`-, E +#%` E#a d PX!0PX @YY#PXeY%#aDD`-,EaD- ,` CJPX #BY CJRX #BY- , b c#a C` ` #B#- ,KTXDY$ e#x- ,KQXKSXDY!Y$e#x- , CUX CaB +YC%B %B %B# %PXC`%B #a *!#a #a *!C`%B%a *!Y CG CG`b EcEb`#DC>C`B-,ETX #B `a  BB` +m+"Y-,+-,+-,+-,+-,+-,+-,+-,+-,+-, +-,+ETX #B `a  BB` +m+"Y-,+-,+-,+-,+-,+-,+- ,+-!,+-",+-#, +-$, <`-%, ` ` C#`C%a`$*!-&,%+%*-', G EcEb`#a8# UX G EcEb`#a8!Y-(,ETX'*0"Y-),+ETX'*0"Y-*, 5`-+,EcEb+EcEb+D>#8**-,, < G EcEb`Ca8--,.<-., < G EcEb`CaCc8-/,% . G#B%IG#G#a Xb!Y#B.*-0,%%G#G#aE+e.# <8-1,%% .G#G#a #BE+ `PX @QX  &YBB# C #G#G#a#F`Cb` + a C`d#CadPXCaC`Y%ba# &#Fa8#CF%CG#G#a` Cb`# +#C`+%a%b&a %`d#%`dPX!#!Y# &#Fa8Y-2, & .G#G#a#<8-3, #B F#G+#a8-4,%%G#G#aTX. <#!%%G#G#a %%G#G#a%%I%aEc# Xb!YcEb`#.# <8#!Y-5, C .G#G#a ` `fb# <8-6,# .F%FRX ,1+!# <#B#8&+C.&+-?, G#B.,*-@, G#B.,*-A,-*-B,/*-C,E# . F#a8&+-D,#BC+-E,<+-F,<+-G,<+-H,<+-I,=+-J,=+-K,=+-L,=+-M,9+-N,9+-O,9+-P,9+-Q,;+-R,;+-S,;+-T,;+-U,>+-V,>+-W,>+-X,>+-Y,:+-Z,:+-[,:+-\,:+-],2+.&+-^,2+6+-_,2+7+-`,2+8+-a,3+.&+-b,3+6+-c,3+7+-d,3+8+-e,4+.&+-f,4+6+-g,4+7+-h,4+8+-i,5+.&+-j,5+6+-k,5+7+-l,5+8+-m,+e$Px0-KKRXYc #D#pE (`f UX%aEc#b#D * **Y( ERD *D$QX@XD&QXXDYYYYDPK!䍒TtTt.template/darkfish/fonts/Lato-RegularItalic.ttfnu[ DSIGtLGPOS,HPGSUBV.TI|OS/2ٮJ`cmapRԟJcvt 'i8fpgm zAj4 gaspiglyfmrO>headd6hhea`L$hmtx4WpTkern@BglocaE/R,maxpC T nameUTpost:]fXprepx9s 0JDFLTlatnkernkernGrTv   V 8,^$^ 0 DJJJL F !z" ##P#$4$~%x&&'()*++,J,-n../$/V///1242n2233V3344J4445567778~88:;";;<=2>,?&?@ABC8CDE.F(> UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U> UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U-#&*24DFGHRTkp> UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U0 ;#&*24759,:|<;?,YrZ\|klm;o;pry;|};;rr;;;;;;& ^^$7A9;<@=?lr|@@^^^0 ;#&*24759,:|<;?,YrZ\|klm;o;pry;|};;rr;;;;;;q6 6 6AA":#$&*-i24DFGHPQRSTUVXYZ\]kl6mopr6tPuPwy{P|6}66A66AA$ $79;<=?@`lr|:J J J#&*->247|89: |LL|"$|-:DFGHPQRSTUXw||||||||LLL| $+  #&*24IWYZ\klmopry|}3 ;#&*24789J:h<,?JY|Z\|klm;o;prt,u,y;{,|};,||,;;;;;$ $79;<=?@`lr|/ vCCv$v-JDFGHRTvvvvvvvvCCCv$ $79;<=?@`lr|#&*2478kpf |LLL|ff"'#$|&*-824D/F/G/H/JEPfQfR/SfT/UfVJXfYWZ[Z\L]_kmLoLpwfyL}L|||||||/////////////f//////ffffWW|///f/JJ___LLLLLLLL| $q6 6 6AA":#$&*-i24DFGHPQRSTUVXYZ\]kl6mopr6tPuPwy{P|6}66A66AAN: : :$-DFGHJPQRSTUVXl:r:t<u<w{<|:::::+  #&*24IWYZ\klmopry|}m7 r 7 7'J'r"2#$r&*-824DAFAGAHAJWPQRASTAUVAX]kl7mJoJpr7t>u>wyJ{>|7}JrrrrrrrAAAAAAAAAAAAAAAAAAArAAAAAAJJ77'77'J'JJr"##&*24kmopy}-#&*24DFGHRTkp:J J J#&*->247|89: UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U& ^^$7A9;<@=?lr|@@^^^& ^^$7A9;<@=?lr|@@^^^$ $79;<=?@`lr|> UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U TT$T9:::<(?:TTTTTTT(T(T TT$T9:::<(?:TTTTTTT(T(T& ^^$7A9;<@=?lr|@@^^^ TT$T9:::<(?:TTTTTTT(T(T> UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U& ^^$7A9;<@=?lr|@@^^^:J J J#&*->247|89:247|89:247|89:247|89:247|89:247|89:u>wyJ{>|7}JrrrrrrrAAAAAAAAAAAAAAAAAAArAAAAAAJJ77'77'J'JJr$ $79;<=?@`lr| @[`lr| @[`lr| @[`lr| @[`lr| @[`lr| Y\lrtu{| @[`lr| @[`lr| @[`lr| @[`lr| @[`lr| @[`lr|. rr$DFGHRTrrr @[`lr|. rr$DFGHRTrrr:J J J#&*->247|89:u>wyJ{>|7}JrrrrrrrAAAAAAAAAAAAAAAAAAArAAAAAAJJ77'77'J'JJr"##&*24kmopy}"##&*24kmopy}"##&*24kmopy}& ^^$7A9;<@=?lr|@@^^^& ^^$7A9;<@=?lr|@@^^^> UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U> UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U0 ;#&*24759,:|<;?,YrZ\|klm;o;pry;|};;rr;;;;;;> UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U> UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U0 ;#&*24759,:|<;?,YrZ\|klm;o;pry;|};;rr;;;;;;& ^^$7A9;<@=?lr|@@^^^0 ;#&*24759,:|<;?,YrZ\|klm;o;pry;|};;rr;;;;;;& ^^$7A9;<@=?lr|@@^^^& ^^$7A9;<@=?lr|@@^^^> UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U:J J J#&*->247|89:?EHIKNPQRSUYZ[\^klmoprtuy{|} 8DFLTlatncase&case,liga2liga8sups>supsD,>B      @ LO,{tu CjqvIxxtP`KtyPLJz  &   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ardeixpkvjsgwl|cnm}byqz`T@ ~1DS[a~    " & 0 : D !"!&"""""""+"H"`"e%&i 1ARZ`x    & 0 9 D !"!&"""""""+"H"`"d%&i{uq[H$I޸ޡޞ:ڜ`T@ ~1DS[a~    " & 0 : D !"!&"""""""+"H"`"e%&i 1ARZ`x    & 0 9 D !"!&"""""""+"H"`"d%&i{uq[H$I޸ޡޞ:ڜ-(8<@J@GBhf[[ Q CQ D@?($#-$ +>32#'.54>54&#"#"'4632#"&!!7!!9DO.?gI)-60#z -5-I9)8(  c>0((0>22cu&#@[87P;+&%ia /(&.8'3</@)(?g6, !&@#Q CSD +#>74>32#".F uF!-."".-!-UV\44\VU->."".-""- *@' BQ D   $+#"&=!#"&=$"%$"%ߛ""!ߛ""!6<@H@E  Y  C Q C D@?>=<<6431.-(&##!#!+#"&547#+#"546?3#7>;>;3323+32%3# Nqt 0M+j'&v -NMv&%jjX ]#( 7KGk X G 7KGbf8CN@J) ?BAK PX@$jhfkCDK PX@$jhfkCD@$jhfkCDYY#'#%+.'7632.54>?>;#".'+4.'>w?=+A\Dg>w]9B|o@&g30 %6I2]@~c>Fu"@":N,`JsP)5H)WHkG" aKN&1/1KoRSxL Q;@"!2IlO_S,A0#2Oh*?1%-DUZ'1EYKPX@'[ [SC S DK PX@+[ [SC C SD@/[ [ CSC C SDYY@ VT((%#&((($ +#".54>324.#"32>>;+#".54>324.#"32>;`{A8^C%6]}F8^C&$1(G4$1'G5w | ~:`|A8]C%6]}F8]D%$1(G5$1'G6xcj7)MoFck8)NpH2H."JsQ1E-!GqU  ci7)MnFcl8)NpH2G."JrQ1F-!Hr9BN@;LK.&BKPX@*hSCS CS D@(hSCS CSDY@IG20)'#! BB+2#"'.#">7>;#"./#".54>7.54>3267FrR-e)<)3R; /2B)6w[G `^Rb65]}H'%9iq#=T1_Fsr,Nj>!8-&C[49x?gBGs` zWf1[QOu\ B?Rj>8W<VF> @ BQ D $+#"&=$"%ߛ""!zS  (+.547* Q*;& UuG JrN)JC .VS / r  (+4.'&546? '.547>9) R);& TuF IsN)1IC /WT. ra6C@0,+'$# BKPX@ kD@ jaY@ 66+7>7'767&/7&546?3>?'.'i !$$$3T  # 2a!  dIefIe  ! dIe fHd  sA .@+jkMRF +!!#!7!5f55i6SQ2$@ ?S D"+74632'&54>7#"&2A6.1F- *' 4A{/B'3-a_Z&  &5E*Ea<@MQE+!!s8-'@SD($+74>32#".-"--""--"n."".-""-. @kD#"++>;]:I4 I "!Oj',@)SCSD'' +2#".54>2>54.#"_sAb~`sAb TqB-Le8TqB-LeIےkIۓJkYxj0Yxi0*@' Bh CR D$+7!7#"&/3!!6{,֌M Kq/J4;@80 BhSCQ D-+'% 44+2>3!2!7>7>54.#"#"&/>Sf99bJQ)R&HIrO)#>U2p% # Wc/ZR[~Cx  "5;)AusxE6R6ufbf4]XCU@R? Bhh[SCSD<:64.-,+#!CC +2#".'763232>54.#7>54.#"#"&/>Tb6*MmCz{VjdjBP,B\ARW.Nf">T2r& # Xc.UxIOyZ;#pl{B.\_:W:8Zr;0Q;"{5P5vebf4-f'@$ B\ C D!#+3+#!"&/3>7!./"+ b{W79DF.@@=,+Bh[Q CSD(#&(""+#!632#".'763232>54.#"'!<379so\ii4]u?p_N=/C_CSd7$HnK2sDgM$/9dQ~͐O)6J%8eV9]C$h022@/B[ CSD/-%# +2#".54>7>;>32>54.#"Oe:Tvbl99W<3.%7$Dd@Oa6'Ge>O^5l2`WoPwy}E3,$)!;cH(5^L=cE%8_~$@!BQ C D$'++>7!"&=7  'D-+)uR>3GD@AB[SCSD54! ?=4G5G+) 3!3 +".5467.54>32'2>54.#"2>54.#"cr>aaHiZe6t|QcN~Z0-Lc5Bz_9$FdQqG :X;HoL'9Y3^Q)&bXq@4[{F-#uiw?.RtF@Z9$LwS5W?#4Sf3-N;"-Lh:+P=%w12@/B[SC D.,&$ +".54>32+>74.#"32>5K`7Rp^h8;T6c0.=P%D_:I{Z3xO~Y0M0\TiN;jXH}vvB<6-/:_D%2Y{Ju5Zv-';K$PX@SCSD@[SDY((($+74>32#".4>32#".-"--""--"d"--""--"n."".-""- ."".-""-.,D ?K$PX@SCS D@[S DY@ )'"+74632'&54>7#"&4>32#"..A6.1F- *' 4Ai"--""--"{/B'3-a_Z&  &5E*E."".-""-W(+6#/+-   '0!@YMQE+!!!!Z:X=Ѓ}X(+ 7>7%>7.'%.54>7/+Z|o   '0n%95@2BhfSCSD(&#*$+>32#7>54&#"#"'4>32#".!KWc8FqP*/HWO= %w 5LWI1_Q8R;'  !-."".-!4(*Je;TvW?;@+0JA>H[=NZ$."".-""-MMTdf@c [ <Bh[  [  [OSGVU^\UdVdLJ@>9731)'TT +%"&'#".54>3232>54.#"3267>32#".54>32%2>7&#"FR?H0G. ?[wT?[)!3aK.DzelPvL  k_0 3HR_ɥu@O؊םYu3WC( GrI9H $@!BZ C D# +!#"&'!+3!.'N %> ^zQB&&Cae*=@: B[S CS D*(" !+3!2# !2>54&#%32>54&+aph2%JoJGy?OxP(QyQ(|-SwI@tbLpcxB*NnE_q+MlAggd/D@A BhfSCSD'%"  //+%2>32#".546$32#".#"BfN7) A^̍KtL|fS$@(EmWtʔU:g ' Qfq\䉻6{2F+N (/(]o{Ba= @S CS D!(!$+#!!24.#!!2>=qՔP7g]Ό2xƎO1vZlyA[aA (@%YQ CQ D+!!!!!!.<=uϱ/aA "@YQ C D+!!!#!.?L/d%:G@D& Bh[SCSD20+)" ::+%2>7#"&50>17!#".546$32#"'.#"4ZOI$' C6sRӖQsSnY%< 5KjK{͓R;l D O':']芹3z2D(N  )%^q~CaE @Z C D+!#!#3!3QEPOOr}@ C D+!#3=QKPXBBYKPX@ CSD@h CSDY#%"+#"&'7>3232>736^0 !+4\J3 um"N~\r% &@# B\ C D'(% +3267>;#".'.+#3B#-,%# '+QQ"  #Y  <naf@ CR D+%!!3/7av"&@#Bh C D!6(+67>;#>7+"'#324 3 /.['*' g#.~++. {aE@B C D!+2>73#"&'#3r j^ ` )gHd)@SCSD(((&+#".546$324.#"32>4_kӕOrӕO8g]vƎP8g]xƎO2zڹh8^扷3|_m|D_m|C^ri/@,[S C D !+#!2# 32>54.#nBrm6JυtJUX."DhE6dVqM4]L:\A#d0P BKPX@SCSCD@kSCSDY(((%&+#"&'#".546$324.#"32>3^R!"56q<ӕOrӕO8g]vƎP8g]xƎO2yظ4w^扷3|_m|D_m|C^rU#7@4B[S C D#",!+#!2#"'.# 32>54&#vJyrm54bW 51 "%/DUY-Y0YNWwS&(0WwGms ==@:=BhfSCSD;9(&#!#"+#".#"#"&'7>3232>54.54>32 &;T?@dE$0NeheN0FtAB,DdKEoM*0NcicN0@xln9#)#(E\54G3')2JhJfPeVY -7-,NmB7I2%&0JlOX|JTI{ @Q C D+!#!7YW$#@  CSD +%2>73#".5473vPeA kjc{ow>jk'Ko>mZi{ӛXHj-/i&K|Z1|W@B C D, +32>7>;#|%7 M**L!g,!@' B C D,> +32>7>;2>7>;#.'#  $+  ' / ( < : :gO&&@B C D'"(!+ 3267>; #"&'+ l  z Q$l q $y@ B C D,"+#32>7>;GG  } !=;^44>$@!Q CQ D+!!7>7!7 " l7< l; !W'@$[OQE!#+!+32!WřC  lq @kD# +32#"&'lI +iH2"9" )'@$ B[OQE!#+!!7>;#"&57X ĘC80@ Bk D+!+3#"&'.'+>rg z`+,+X@MQE+!7+ttM @kD  +2#"&' kc  0+^@ BK"PX@SCS D@SC CSDY@ $!++*' +!#"&57#".54>322>7.#"0\#$S]f732#"&'#"32>54&OX&X`h6"?YmFQ* 0b[P &j74\L<)V4=eF'R_6D?Au32#".#"32>3234]^e:X[/Mrd38 +A3E{\58Q6-F6)!,9L-eG'!65*s@ BK"PX@CSCS D@!CSC CSDY@$"** +!"&57#"&54>323%2>7.#"#&Zck7"?YmFJ{+E90a[O!&j6OY0V$AjK)R^6:6-?;iV 5,^Yw};q*9b@ 0BK PX@hSCSD@hSCSDY@ ,++9,9*&%*+32>32#".54>32%">54.q6uv0K;-& ,3afo@W`4!?[uQMpH#?jR:d #8BoYB  #75K2:k^NxW2,DRB4[{G19B$' ?#g@ BK2PX@"SCQCQD@MWSDY@ ##T%#++'.5737>32#"&#"3ve.KFd AcI>3  +I8& aKW NbW]0\8ZA];K^@9$BKPX@+ [[CSCSD@.h [[SCSDY@=<[YSQEC32.5467#".54>32!2>54&#"4&'.#"32>0"(")1)BzmWe7RY$G# &^<:eL,5fbnQ~ ~6R9YN6R8W 6_*RxN&yoBmM+2PD<32#>54&#"OSOes|LL=B-_ZNATvy+{%RP1ZN_GK PX@SCC D@SCC DY@  +##".54>32zz#,,!",,# >-##-.##/g(Y BK PX@SCCSD@SCCSDY@%#U%+#"&'7>323267#".54>32-LiC#2 GE #-+!"+,#=iN- ` IQ@>-##-.##/N0@-B\CC D%(%!+3267>;#"&'.+#jOy 0 "; Ws  X@C D+33X?G0Z@  BK"PX@SC D@CSC DY@00&%$$! +332>32>32#654&#"#>54&#"GzY<KcgbLhpoLL2;+VPEAM/;0YOD?<~2{1(KG+S{P0GD0[RGP@ BK"PX@SC D@CSC DY@ &$!+332>32#>54&#"GyY<Qmq}LL=A0c\O:<Ć*{%RO4_S7#NK PX@SCSD@SCSDY@## +%2>54&#"".54>32IxT.nhJwT.mYSd8PnSd8P}P_O_9ldb9lcc+@BK PX@SCSCDK"PX@SCSCD@!CSCSCDYY@#!++(&!+32>32#"&'"32>54&Y<&Zcl8"?YmFK|*60c\O &k74\L<)VM5#".54>322>7.#"p ;#PZb432&#"GzY AY** /,a38 * 99@69BhfSCSD/#%/#"+#".#"#"&'7>3232>54.54>32 !/D0-J6>^m^>7gZa/, 0I81O7>^l^>3`V[2S ,;!/8)&:ZHFa:E6D #2C&3<(#7XI@w\7=4_>0b+BK2PX@#jhQCSD@!jh\SDY@ %#(+&+74>7#"&54>?>;!!32>32#"&?q K^, =/)( %0}?ap$:/ 9)2 31 U+1j`#LBK"PX@CT D@C CTDY@ ##*!&+32>73#"&54>57#"&5467bL=B.a[N?zX"Qjq}L|$RP2\P "("Q*K@BC D, +32>7>;#K :t%J$$I& Q. @'BC D*!,< +32>7>;2>7>;#"'.'+Q] Jq W{ t#A A#p#B! C# "! R"@BC D(")!+32>7>; #"&'+h    !   /+Q@ BCD,"!++32>7>;<)  @)*+Y@QCQ D+!!7>7!7!P 6  K#&J #ߌ1YE7@4&:B[[OSG=;303++4𑯎.54>;+";2#".54>85 JI-YV1  'B/"3;5@#C= 2EfC" & 4Bhw|575ai7MEoQ;?<MgA![?;2>5<&454>7.54>54&+"&54>573285 JI-YV1  'B/"3;5@#C= 2EfC" & 4Bhw|575ai7M EoQ32AI%Ef@4f_V$AI%EeA4f_VeUFCpP, '!TGCpP-!'! !&@#SCQD +>73 4>32#".C  hB."--""--"-UW\45\VU-."".-""-&/8@%BK PX@.jhfkSCSD@.jhfkSCSDY@ ##'#+.54>?>;#".'>32+R`4Mф"@-R}04 +=*@[?* '!S`i6!@tjZ]0 Dq`~מ\ ?1< "<#6&Dv>?@<+Bh[SCS D&&%#%&" +#!>3!#!7>7#7>;>32#"&'.#"!zY 60<  ;#9+$q! PmT{X9K#2H4AkQ3 Kj*I p /C..F ^zF&B[5, 0$+OpEF+`#7?@< !B @ ?WSD42*((+467'7>327'#"&''7.732>54.#"![,h:9f+Y"![,h99e,Z!#>Q//S=$$=S//Q>#9e,Z"![,g:9f+\!![,g:.Q=$$=Q./R>##>R~"8@5 B Z Y C D"! ,! +!32>7>;!!!!#!7!7!6ʐ  _ "6 V '' V p'!:; =cicAci5@YQD+3#3#;FVA@>FTL;!BhfWSDDB+)&$#!+#".#"#"&'7>3232>54.5467.54>32>54.'R!/B0/K6DfvfDY_%-6f^a00 !0I:2O7)BUYUB)ag%.3aW[/:Zn3:26Ug1E9.>".A88JdH[)!U9J`7D6B "3E))<0(*0?R8Y'"X>AvZ5>6/B82V51D70#P^'@S D((($+#".54>32#".54>32? )(() g))))((**((**]+Ga@ BK PX@5h f[[ SCSD@5h f[[ SCSDY@\ZPNB@42(&++ +2#".54>32#".#"32>%4>32#".732>54.#"; <9tbs?Dzbm9. 2M:GpP**Kg>?V9!.4`ee_44_ed`4e,QsXXsR-cXsQ,@BIDzdeyCC8A -TxKMyR+e`44`ed`44`eYtS--StYe.Sv?-9L@I!Bh[ WSD/.32.9/9%# -- +"&/#"&54>?6454&#"#"&/>32'26?.04AR%Vj(0"0$6xD,D//.G$ B\9*H 1  ED(K;&& .6 (2.4G(P&#m*"%%(+774 o ;]4 o ;      >=K PX@_MQE@kMQEY+!#![4$9^ a<@MQE+!!s8^3IV>BK PX@/h  [ [SCSD@/h  [ [SCSDY@44VTLJ4I4H)!*,,& +4>32#".732>54.#"#!2#"'.#'32>54.+^4`ee`44`ee`4e,RrXXsR-c焄b kj ! Ps8M/+F4e`44`ed`44`eYtS--StYee|}z^ . r(:&%8$pA@MQE+!!~Aq''@WSD((($+4>32#".732>54.#"3XvDEwX22XwEDvX3}6I**I66I**I6hCvW22WvCBuW33WuA*I66I**J77J3PK <@9jhZMQE  +!!#!7!!!/e--j/Dr{$d-9@6+ Bh[SD(&#! --+26;2!7>?>54&#"#"&/>`m0?"2* 6(6**A!CddS,HA<  *  89:-0+2 ji|d:S@P6Bhh[[SD31.,('&%:: +2#".'763232>54>54&#"#"&/>.K5980Nd48Q7" : +!"5%FV [S5,2=@5HWd->$-E7<]?!1G/!%011Y=>,-.+ 4P4 @kD #++7>3f" %2@/BCT CD%%'%!&+32673#"&=#"&'#"&5<7\SVQF=]|gFPA^#U %Y  RYJB lHC/+$H k7*@'hiS D+##!#".54>3ܵ붝j]i9Hq77]2Z~MZtC@OSG($+4>32#".)67((76)Q8((86))6w KPX@  B@  BYK PX@^TDKPX@jTD@jjTDYY@ +232654&'73#"&'76E(+GB:k JC!;Q0&B (# R?.$9'5z^N BK2PX@jjQD@jjMRFY$+37#"&/733!6 y   hNy u,\ 6]<!)@&WSD!! +2#".54>2654&#":]A"0UxH;^A#0Wy ZYA?2E+@%Ea;37#"&/733!>73n Ujw/F1!Gu6 y  hNy uI  >] [,\ 6],\ 7Hb@_B;5Bhh   Z [  CT D HGFEDC?=9820,* 7 7#" +%+>;26;2!7>?>54&#"#"&/>%37#"&/733!/F1!G`m3C$2* 6(6*/=  +6 y   hNy u5 [IdS-LC>!8*  89:-04) ji<,\ 6]zTZ~@{P " / X B  h h  h [  [\ S C DZYMKGEA@?>8631+)TT##!#+3+#7!"&/3+>;%2#".'763232>54>54&#"#"&/>>73 n Ujw/F1!Gu.K5980Nd48Q7" : 46"5%FV [S5,2@ 15HW I  >] [->$-E7<]?!1G/,2%011Y=>,-0% 4P4c,u';5@2BhfSCSD(&#,$+#".54>?332>324>32#".u!LWb8DoQ,/IWN: $u 1HSF/-;!7S<'  !-."".-!4''HgAQsS<56$-B:8CV;)?+$."".-""-&$ O&$ _&$ O&$O&$ O-&$P9@6AYYQ CS D# +!!!!!!!+!L*: &$@dJKPX@9= HB@9= HBYK PX@0hfSCSC SDKPX@0hfSCSC SD@7hf hSCSCSDYY@FD<;64/-%# JJ +232654&'7.546$32#".#"32>32#"&'76(+GB0r~BtL|fS$@(EmWtʔU:gUBfN7) AWߒJC!;Q0&B (# v dڀ6{2F+N (/(]o{B ' Q^o:?.$9'5aA&( $aA&( $aA&( $aA&( $V &, &, g&, &, E!,@)YS CS D!%(!+3!2#!#%4.#!!!!2>SPԕOpQ{7f]>\ ?2xŎN Z㈷vlyAn[aE&1d&2 d&2 d&2 d&2d&2 l9W  (+  ' 7 9|8fnPg0]d]e[]Z0%1=g@5*)# BK PX@kCSCSD@jkSCSDY**'(%&+#"&'+.546$327>;.#"%4&'32>4_kaCm=JMRrhEY `EJ+)2OvƎP$"<0wHxƎO2zڹh82/ T錷3|;6p Ta<.1_*X;&'^$&8 $&8 $&8 $&8 y&< < ++,@)\[ C D"( +32+#3 32>54&#rn6J΅!3JUX.6cUqLa4]Lt3&P}@ JGBAK,PX@(hSCSCQD@%hWSCSDY@LKFD=;%# PP+2#"&'7>3232>54.54>54.#"+'&573>Y~Q&/FQF/+@K@+>iOY10 "-@0*G3.DQD.1JWJ1-I4>mU: l.KFn(^6Se/D`H638&#/)+=XAV_3E6B "6I*0?.(4H8>XE:@P8;0CtUKW!M\K0&DCi0&Dv+0&D"0&D"0&Dj"0&D6GUbG@ E?"BK PX@5hh  [ S C SDKPX@5hh  [ S C SDK,PX@?hh  [ S CSC SD@Jhh  [ S CS CSC SDYYY@&WV\[VbWbQOIHCA<:75/.(&  GG+232>32#"&'#"&54>7>54#"#"&/>32>32>7">54&]W8wxGc>(!)!7QP`UT^%32#".#"32>32#"&'76(+GB2JqL'Mrd38 +A3E{\58Q6-F6)!,/TTW1JC!;Q0&B (# y CkT{hGDC Kf>eG'!63H-<?.$9'5;q&HC;&Hv;q&H;&Hj=&C_u&v"^&/w&j<1E6@37-B10@[SD32=;2E3E+)!+.54?.'&54?7#".54>32.'2>7.#")`7%XFqQ^FȂRe8E}ia0LL!AoX> &32#"&4>32#"&B&2'&21;X&2'&20<2&(1$>f2&(1$>%)4@32#"BK PX@!CSCSCDKPX@!CSCSCDKPX@!kCSCSD@!jkSCSDYYY@+**4+4&$+"'+7.54>327>;&#"2>54&'|Z$:C(+Pn}[" Z'+P8NJzY1I{Y1 F7=15Xb@.5WcYBZ-LsMg,K ,`&XC++`&Xv++`&X++`&Xj++Q&\v++%,p@ BK PX@!CSCSCD@!CSCSCDY@$",,(%+3>32#"&'#"32>54&%ݰY&X`h6"?YmFK{+.'0b\O!&k74\L<)V4=eF'R_6;6&!.' Y0LRVB N %_-&(   @F:?n)^g !*3 ' QB&&C04F(KPX@&;BK"PX@&;B@&;BYYK PX@#SC SCSDKPX@#SC SCSDK"PX@*hSC SCSD@.hSC C SCSDYYY@65?<5F6F1/('$"44 +2#"&54>7.57#".54>32#32>2>7.#"> Y0LR*:"$S]f7G Y0LRVB/<=ui-&(  @F:?n) !*3 ' ;qAPKPX@G2B@G2BYK PX@*h SCSCSDKPX@*h SCSCSD@1hh SCSCSDYY@CBBPCP><0.)' AA +2#"&5467.54>3232>3232>">54.I Y0LRI9U_2!?[uQMpH#6uv0K;-& ,MT+$(  ?jR:d #8 @F::f(324.#"32>;=qZuFhKkS h/ZSmI0[SmHr~\ㇹ6~&Ge?j|Dck|Cb.4FU@ L2 "BK PX@$h S C SD@$h S C SDY@ HG65GUHU><5F6F0.&$ 44 +232>32#"&'#".54>32>2>54&#"">54.AhJ'8\~ym0K;-&,2afp@i'E΁QzQ)Ukk#?IQ}U+]aN|X/.JH;fP8 h&'="?X5)LC;0& #74L1tsny;eHXe[ZfvNqsLy/VB( .YQ3:A!*! &6 #&Vv++ &6 ,&V~++y&< < ++&= 8Y&]v++&=8Y&]++&=8Y&]++i'6@3 BYSCSD''#"+#763>7'.546767376$3#"!2 :.UH8*0 /UI9+G!˹[7:^E  ſ_;^E}Q@Bk D, +#"&/.'+3r d w q@Bk D( +32?>;#qx d  spAq @W D +".5467332>73r>V6y4B'6#z&Eg!:M- 3?)9!6aI+@SD($+#".54>32#.-""-.#:-""-/##/kJ=KPX@WSD@[OSGY$&($+4>32#".732654&#" 7H()I8 8I)(H7 d6/-77-/6#*D22D*)D00D),88,-88/t YKPX@ B@@ B@YKPX@ SD@jSDY@ +2#"&54>732>R Y0LR.@%W-&(  @F:"@:2 !*3 ' hQK*PX@WS D@O[SGY@ +273#".#"#>32Ai!2B% 5-) (j"3A%!4-()X/M7#-,.N8#) #@ SD   #++7>3!+7>3H"S   !YBK(PX@SCS D@SC CSDY@! 6##++#!#"&'7>3267#7>3"|lkOz=<;N D#u}w H ?C?  @MQE+!!}o@MQE+!!7}(+.5467j^/ ! %J%dL  09@"6 (+'&5467>54&'&547pj^0 ! %J%dL  08@#6 (+7'&5467>54&'&547j^0 ! %J%dL  08@#6 1(+.5467.5467j^/ ! j^/ ! %J%dL  09@"6 *%J%dL  09@"6 1(+'&5467>54&'&547%'&5467>54&'&547yj^0 ! j^0 ! %J%dL  08@#6 *%J%dL  08@#6 1(+7'&5467>54&'&547%'&5467>54&'&547j^0 ! j^0 ! %J%dL  08@#6 *%J%dL  08@#6 %,@)  BCSCD$&$"+>3632>32! #"&'!,*?G#)33#P$KIF &!6H0+u6/, ) D B9E@B  )!("B[C SCD98'%#&$" +>3632>32!!#.'#"&'#"&5<>7!!,*?G#)33#P$KIF &"Pj.*?G!0+O$KIG&!kP/, '(v://  (,KPX@ SD@OSGY($+4>32#".:eLMe;;eMLe:SMe;;eMMd;;d-,';@SD((((($+74>32#".%4>32#".%4>32#".-"--""--""--""--"!..""..!n."".-""-."".-""-."".-""-Z'1EYmKPX@+[   [SC  S  DK PX@/[   [SC C  S D@3[   [ CSC C  S DYY@~|trjh`^VT((%#&((($+#".54>324.#"32>>;+#".54>324.#"32>%#".54>324.#"32>;`{A8^C%6]}F8^C&$1(G4$1'G5w | ~:`|A8]C%6]}F8]D%$1(G5$1'G6):`{A8^C%6]}F8]D%$1(F5#1'F6xcj7)MoFck8)NpH2H."JsQ1E-!GqU  ci7)MnFcl8)NpH2G."JrQ1F-!HrRci7)MnFcl8)NpH2G."JrQ1F-!Hr(+74 o ;   w(+'&54767&'&54?5  p!;{   c @ C D#"+'+>;?/F1!G5 [*B[@X 4 Bh  h [   [SC S  DBA?>=<861/"##%%$+3>32#".#"!#!!#!32>32#".'#7367#T!wp;C  &6J3MoT0dRoI. ASގqv>  ̎LcWB  4f`7#H&6-6-DeqRҀcJGI6%B@?BhS  CS  D%%!4( +>7>;#7+"'#32'###7  fGk. }.iGg 54.#"!"&546767!7.54>32!5Ti<5aReH*Lj@4/LxR,0X|`zȎNAwf~ (JxpZ_0BzMyY:O%TvTatQ+Lprěla A3HB@?"Bh[SCSD54?=4H5H#*++$+>32#".5467>32>7>54&#"#"&'2>7.#"'JMT0ItQ,n݉HwT._g^" e\'C7) :qdU .I5K{\: ]9*8lc?!/X~P#sʔVRQ"=9 7or-S@'>mWgp @ B CR D+)3!.'ԩ   9 !9 $@!Q CD +##!##7Ȳɱȼ]]$@!BQ CQD+!!!!7>7 &5<7RA ! ;4;A ^@MQE+!![Ll"@Bj[ D,'!+!##"&5<>7!2>7>;p"Ne [n  [ A 7Q=';OL@IK-B[  O  SG=<)(GE32>32%2>7.#"!2>54.#"{3P?1DNX35[C'7\xB3O@2DMX35\D'7]y!<86$,4!&A1$1S%B1$1!;86%+4!8K))K8!(KhARi=!9K))K9!(KiARi<5E''E4!32#"#"&'7>32>7)#A*\nOg}F D 6Q=,CWnuf_- L :^B7^@[0!/"B[[ O[ SG42+)&$77  +2>7#".#"'>322>7#".#"'>32@80% (u=4c_\-90% )wB4d^\81% 'v=4c_\-81% )wB5c_[W  l0."(" i31!)!  m/-!(!  h31!)!}kK PX@)^_ ZMQE@'jk ZMQEY@  +!733!!!#7!7!7!}w5}PwSʃZP @ @MQE+!!3-2/*>yz  z{ iP@ @MQE+%!7!7>7%>7.'%.54657n>2/aPz  z"@ BMQE+3 #>7 &'|y|  54&&EF,#& ~-KPX@ kD@ jaY@ +3v 0>'s@  BK2PX@(SCQC CQD@MWSC DY@''W%#+#!+'&5737>32#"&#"yk}f.KFc( Izk''#  SzU1 `KX #O8]n=Z $HnK5>!@ BK PX@(SCQC CQDK&PX@(SCQC CQDK2PX@,CSCQC CQD@$MWCSC DYYY@!!#!%# ++'&5737>32;#.#"3wg.KFb( BnaG5w-_+uaKX !Q7TpA Z$ 7G25K0PX@ QD@MQEY@ +#2~mQRU   @ja  +2#"&/  '@OSG((($+#".54>32#".54>32P%##%X$$$$$$%%$$%%(@MQE+!!4f  @ja #++7>3  f  @Bja& +#"&/+73ǃ r   kk  @Bja !+#'327>3ƒ r  kk(@%jOSG +"&547332673syoNOp,Ie^^ c><4T< *@OSG($+#".54>32"-,!!,-",!!,,"",V-!@[OSG$&($+4>32#".732654&#"4D&'E44E'&D4Y6/-77-/6{'B//B'&@..@&+99+-881@.O[SG +2673#".#"#>32)^.>% 82.'a.>%!82-|*%*G5 -%*H5  b +@(OSG   #++7>3!+7>3(S'])  } @kD  +2+ +$ <] 9^I D{_< ʓ^pӡ - VO'-{6GZ9(z(s2a-O/]-DhR-.++}Madia+aaEdpa61raaoadhrdr ?{?|Zy|(!l(8M0Ob<5;]?$O_gNXGG7 0G _`KQQZ(1X(9{~X;8^=]xka=^8p38;k#8kwd+a+a+a+a6V66g6Eoadddddl0????yhI3000000b<;;;;=_"/<G77777s````Q%Q0db<+a;_YLoaGd.    y|Z|Z|Z8Q8q8p8888/8h8x,,B-OZVVwA*/]+A YxL={+Z+i>G>8G8U8888f888*8888gP`  UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U U    U $U 96 :0 <- ?6 D F G H R T m o y } U U U U U U U - U - U # & * 2 4 D F G H R T k p U    U $U 96 :0 <- ?6 D F G H R T m o y } U U U U U U U - U - U  ;#&*24759,:|<;?,YrZ\|klm;o;pry;|};;rr;;;;;;   ^^$7A9;<@=?lr|@@^^^  ;#&*24759,:|<;?,YrZ\|klm;o;pry;|};;rr;;;;;;6  6 6AA":#$&*-i24DFGHPQRSTUVXYZ\]kl6mopr6tPuPwy{P|6}66A66AA## # # # ##$#7#9#;#<#=#?#@#`#l#r#|##################$J$ J$ J$$#$&$*$->$2$4$7|$8$9$:$<u><w<yJ<{><|7<}J<r<r<r<r<r<r<r<<<<<<<<A<A<A<A<A<A<A<A<A<A<A<A<A<<A<A<A<A<A<A<<<<<r<A<<A<A<<<A<A<A<<<<J<J<7<7<'<7<7<'<J<'<J<J<r=="#=#=&=*=2=4=k=m=o=p=y=}==============>#>&>*>2>4>D>F>G>H>R>T>k>p>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>?J? J? J??#?&?*?->?2?4?7|?8?9?:?247|89:247|89:247|89:247|89:247|89:247|89:u>wyJ{>|7}JrrrrrrrAAAAAAAAAAAAAAAAAAArAAAAAAJJ77'77'J'JJr $79;<=?@`lr| @[`lr| @[`lr| @[`lr| @[`lr| @[`lr| Y\lrtu{| @[`lr| @[`lr| @[`lr| @[`lr| @[`lr| @[`lr| rr$DFGHRTrrr @[`lr| rr$DFGHRTrrrJ J J#&*->247|89:u>wyJ{>|7}JrrrrrrrAAAAAAAAAAAAAAAAAAArAAAAAAJJ77'77'J'JJr"##&*24kmopy}"##&*24kmopy}"##&*24kmopy} ^^$7A9;<@=?lr|@@^^^ ^^$7A9;<@=?lr|@@^^^ UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U ;#&*24759,:|<;?,YrZ\|klm;o;pry;|};;rr;;;;;; UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-U ;#&*24759,:|<;?,YrZ\|klm;o;pry;|};;rr;;;;;; ^^$7A9;<@=?lr|@@^^^ ;#&*24759,:|<;?,YrZ\|klm;o;pry;|};;rr;;;;;; ^^$7A9;<@=?lr|@@^^^ ^^$7A9;<@=?lr|@@^^^ UU$U96:0<-?6DFGHRTmoy}UUUUUUU-U-UJ J J#&*->247|89:|LrF(HxXd`(t(.lR@f|@@ !!l!"&"l#<##$,$F%%%b%&&&&'2'^'((Z()")**++ ++$+0+<+,n,z,,,,,,,--*-6-B-N-Z-f-. .,.8.D.P.b./R/^/j/v///0111111112 22222223L444*4<4N4`4456|667"788P8~889~:8:D:T:`:p:::::::;8;h;;;;>H>>?4?@@:@AAABBCCxDD0D\DDDEEFRFFG0GpGHHHIIJIdIIIJJ:JzJJKb"/n n) ( 0+ C R . 2F x: T h  p R|  P  `4 0   0  d  . 4Copyright (c) 2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.LatoItalictyPolandLukaszDziedzic: Lato Italic: 2013Lato ItalicVersion 1.105; Western+Polish opensourceLato-ItalicLato is a trademark of tyPoland Lukasz Dziedzic.tyPoland Lukasz DziedzicLukasz DziedzicLato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based designer Lukasz Dziedzic ("Lato" means "Summer" in Polish). It tries to carefully balance some potentially conflicting priorities: it should seem quite "transparent" when used in body text but would display some original traits when used in larger sizes. The classical proportions, particularly visible in the uppercase, give the letterforms familiar harmony and elegance. At the same time, its sleek sanserif look makes evident the fact that Lato was designed in 2010, even though it does not follow any current trend. The semi-rounded details of the letters give Lato a feeling of warmth, while the strong structure provides stability and seriousness.http://www.typoland.com/http://www.typoland.com/designers/Lukasz_Dziedzic/Copyright (c) 2010-2013 by tyPoland Lukasz Dziedzic (http://www.typoland.com/) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1 (http://scripts.sil.org/OFL).http://scripts.sil.org/OFLCopyright (c) 2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.LatoItalictyPolandLukaszDziedzic: Lato Italic: 2013Lato-ItalicVersion 1.105; Western+Polish opensourceLato is a trademark of tyPoland Lukasz Dziedzic.tyPoland Lukasz DziedzicLukasz DziedzicLato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based designer Lukasz Dziedzic ("Lato" means "Summer" in Polish). It tries to carefully balance some potentially conflicting priorities: it should seem quite "transparent" when used in body text but would display some original traits when used in larger sizes. The classical proportions, particularly visible in the uppercase, give the letterforms familiar harmony and elegance. At the same time, its sleek sanserif look makes evident the fact that Lato was designed in 2010, even though it does not follow any current trend. The semi-rounded details of the letters give Lato a feeling of warmth, while the strong structure provides stability and seriousness.http://www.typoland.com/http://www.typoland.com/designers/Lukasz_Dziedzic/Copyright (c) 2010-2013 by tyPoland Lukasz Dziedzic (http://www.typoland.com/) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1 (http://scripts.sil.org/OFL).http://scripts.sil.org/OFLrt  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghjikmlnoqprsutvwxzy{}|~      !"#NULLuni00A0uni00ADmacronperiodcenteredAogonekaogonekEogonekeogonekNacutenacuteSacutesacuteZacutezacute Zdotaccent zdotaccentuni02C9EuroDeltauni2669undercommaaccent grave.case dieresis.case macron.case acute.casecircumflex.case caron.case breve.casedotaccent.case ring.case tilde.casehungarumlaut.case caron.saltVV, `f-, d P&ZE[X!#!X PPX!@Y 8PX!8YY Ead(PX! E 0PX!0Y PX f a PX` PX! ` 6PX!6``YYY+YY#PXeYY-, E %ad CPX#B#B!!Y`-,#!#! dbB #B *! C +0%QX`PaRYX#Y! @SX+!@Y#PXeY-,C+C`B-,#B# #Bab`*-, E EcEb`D`-, E +#%` E#a d PX!0PX @YY#PXeY%#aDD`-,EaD- ,` CJPX #BY CJRX #BY- , b c#a C` ` #B#- ,KTXDY$ e#x- ,KQXKSXDY!Y$e#x- , CUX CaB +YC%B %B %B# %PXC`%B #a *!#a #a *!C`%B%a *!Y CG CG`b EcEb`#DC>C`B-,ETX #B `a  BB` +m+"Y-,+-,+-,+-,+-,+-,+-,+-,+-,+-, +-,+ETX #B `a  BB` +m+"Y-,+-,+-,+-,+-,+-,+- ,+-!,+-",+-#, +-$, <`-%, ` ` C#`C%a`$*!-&,%+%*-', G EcEb`#a8# UX G EcEb`#a8!Y-(,ETX'*0"Y-),+ETX'*0"Y-*, 5`-+,EcEb+EcEb+D>#8**-,, < G EcEb`Ca8--,.<-., < G EcEb`CaCc8-/,% . G#B%IG#G#a Xb!Y#B.*-0,%%G#G#aE+e.# <8-1,%% .G#G#a #BE+ `PX @QX  &YBB# C #G#G#a#F`Cb` + a C`d#CadPXCaC`Y%ba# &#Fa8#CF%CG#G#a` Cb`# +#C`+%a%b&a %`d#%`dPX!#!Y# &#Fa8Y-2, & .G#G#a#<8-3, #B F#G+#a8-4,%%G#G#aTX. <#!%%G#G#a %%G#G#a%%I%aEc# Xb!YcEb`#.# <8#!Y-5, C .G#G#a ` `fb# <8-6,# .F%FRX ,1+!# <#B#8&+C.&+-?, G#B.,*-@, G#B.,*-A,-*-B,/*-C,E# . F#a8&+-D,#BC+-E,<+-F,<+-G,<+-H,<+-I,=+-J,=+-K,=+-L,=+-M,9+-N,9+-O,9+-P,9+-Q,;+-R,;+-S,;+-T,;+-U,>+-V,>+-W,>+-X,>+-Y,:+-Z,:+-[,:+-\,:+-],2+.&+-^,2+6+-_,2+7+-`,2+8+-a,3+.&+-b,3+6+-c,3+7+-d,3+8+-e,4+.&+-f,4+6+-g,4+7+-h,4+8+-i,5+.&+-j,5+6+-k,5+7+-l,5+8+-m,+e$Px0-KKRXYc #D#pE (`f UX%aEc#b#D * **Y( ERD *D$QX@XD&QXXDYYYYDPK!^b.template/darkfish/fonts/SourceCodePro-Bold.ttfnu[pBASEe]0FDSIGGDEFxGPOS#f8dbGSUB]JOS/2x`cmapspB3fglyfc[MOvheadʹ6hhea3y4$hmtxsp BlocanyA BmaxpT^X names@post+$9  7 _< s0:($X00( *bXXKX^2)   8ADBO ` X# J6F\i,@J;Dk:B&K&F2@8=HC/7R4HO*L2#H/H/t51>%F J66666FFFF\\\\\\\\^\\\\F\\\\,,,,,,,,,@@@@JJJJJJJJJJJJ;DDD[kkk*kk:::BBBBBBBB&&&&&&&&&&&&&&&&&&&&&&&&FFFFFFF22222222@@@@@@@@@@@@@@@@@@@@@@@@888888I2AJ&.=============='========HCCCCC"////7777777777777777744444444HH HOOOOOOOOOOOO*LLLL2222222###HHHHHHHH///////////////////////// tRttaa/55555555=R1111111>>>>>>>>>>>>>>>>>>>>>>>FFFFFF/HH*ABHHH4C//6/n7F0/*1/@<HHHOO2)2)y#HJ/444ttJJ5++21'>!FF42E29C/B////////////////////////////////QQQQQQQQQQQQQQOQOQQQQQQQQQQQ Jl\8@&JD:BB&@K?J *H5FVA7=I"@;3 H/2>)IH9*FA==3>>=>I0Jt)hjijsnoh} JJl \.@@E:@&@K6@-"J\\l72JJ;E@?&l2.E@6,>J \2@&&=<Tt70IIM%H/HHC2%H@##&Q5"77tC5OO*$MIK /%x/0MHC %@H2=77I////CQQQ8O3*#.<>=58O8O3*#.<>=58O8O3*#.<>=58ObgR3EE*;FFFPPvzZzZ|Y<<>c~hjiJJ@YYG0w><@\hhhhheFT|||@0t&|>$@C-`.OC[C5OY##4  5FFTFFFtbFFFVF44FFIFp@<}! B,;J ]>Gf J<9'H55AADDAA00 ,75.J#Z}uu}nm.}unfzmtwxuB9"munJknf0cho/uzsijj!!KK^^^^^^^, ,,5 >A$,$  Rklmnopqrstuv  !"#$%&'()*+,-./012345:=R^ *)+-KJLNipoqsrVSMT&(uWo69hUl8_7a]~U /9@Z`z~7C\ghnv{~  *,14=E_auz~/_cuCIMPRX[!+;IScgo    " & 0 3 5 : ? D I q y  !!!! !"!&!.!^!!!!""""""""")"+"7"H"a"e###!%%%%%%%%%%&&&<&@&B&`&c&f&k''R'd'..% 0:A[a{7CP^hjox}#,.49@_atz~0brCGMORV[  $2>RXfl~    & / 2 5 9 < D G p t } !!!! !"!&!.!P!!!!""""""""")"+"7"H"`"d###%%%%%%%%%%&&&:&@&B&`&c&e&j''R'd'.."=oY xpo%$#$    ;:.-iodcj$~|yzzTiplG%s޺ޚޙrmcݹjqվջ%y%l  "",028>HNPZ\^bfprxzz||xz RkloVSQT&(mno6789:=MR]^_a~ )*+-JKLNiopqrs;< @ S T!V#U"W$[(b.c/d1e0`,p<q=r>s?xC}IMOTQUVWZ[]\bafjhntuWw? PvOt@wo;g> N2:?AH4;@I   "-./02467C#JEvwxy|~z}JKLMNOPQRS T U V W XYZ[\]^_`abcd*,-358<=QX%Y&Z'n:uAzEyD{G|HXY^_`cdeklmFABCDEFGHIJKLf2g3h4i5j6k7l8m9RSxyz{|}~l16gY]Uebckx}~pqrstuvwyz{| $ !!""##$$R%%k&&l''()**++,,--..//09m:;<<==>>??@@AZ[[\\]]^^__``az{{||}}~~oVSQT&(m6=MR]a~ )-JNio;< @ S T  !  V  #  U  "W$[(b.c/d1e0`,p<q=  r!!>""s##?$$x%%C&&}''I(())M**++O,,--T..//Q0011U22334455V6677W88Z99::[;;<<]==>>\??@@bAABBaCCDDfEEFFjGGHHhIInJJKKLLMMtNNOOPPQQuRRSSTTUUVVWWXXYYZZ[[\\]]^^__``aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~\Ww? PvOt@wo;g> N77CCPPPQQRXY\^ghhjjknovx{}~02:?AH4;@I           " $#&-''2((4)*6,,8.1944=9=>@@AABBCCC#DDJEEE__FaaGtuzz~~vw{|~^oz}/0_bbccJrrssKttuuLMNOPQRS T U V W XYZ[\]^_`abcdCC)GG*HI,MM/OO3PP5RR7VV8WX<[[>+.BQ  X  %Y&Z'n:  u!!A$$z%%E&&y''D(({))G**|++H2233X4455Y6677^8899_::;;`>>??c@@AAdBBCCeDDEEkFFGGlHHIImRRSSXXYYZZ[[\\]]^^__``aabbccffggllmmnnoo~~FABCDEFGHIJKLf2g3h4i5j6k7l8m9RSxyz{|}~  p                       ! " " & & / / 0 0l 2 3 5 5 9 : < < = = > ? D Dh G G H H I I p p q q1 t y } ~  6   F X g Y Z \ ] U d ^ ` e b f!!!!!!k!!! ! !"!"!&!&!.!.!P!Px!Q!R}!S!Zp![!^y!!!!!!!!!!!!""""""""""""""""i""""""""")")"+"+"7"7"H"H"`"`"a"a"d"e####### #!%%s%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&&&:&;&<&<&@&@&B&B&`&`&c&c&e&e&f&f&j&k'''R'R'd'd''...".%**M'<Qp4pWJ}<_ju)X0K&1<G   & 1 < G R `    $ / : E M ~   * 5 @ K V d o z   $ / ; F i t     ) 4 ? J V a l z $/:EP[fq| Xcny*5@KYdoz  +EP[fq| "-]hs~ #.9DOZe;br}*5r}@KVa4?JU`kv  +7Bmx !9DP[ft "-hs~%0;FT_j +(q%0;FQ\gr ! , 7 B M X c n y ! !!!*!s!!!">"""#$#g##$$_$$$%%O%%%%&P&&''H'k''''( ((/(:(u((())7)w))**-*d***++E+d+++,(,^,,,- -6-S----.6.f../G/o///00O00000000001=1H1S1^1i1t111111112 2(232>2I2T2_2j2u2222222222233 33"3J3w333334 44 4.494V4b4444445 555%5V5^5f55555555556)616R66667 77E7k7s778=8i889(9R999::;:]::; ;=;p;;<<>>>$>c>>>??? ?)?8?F?N?]?e?m???????????????@@!@=@K@S@v@@@AASA[AAAAABBLBmBxBBBBBBBBCC*C\CdC{CCCCDD;DiDDDDE EECEKESE[EcEEEEFFF)FSFFFFG&GfGGGH HH7HhHHHHHHHHHHIIII%IjIIIIJ#J_JJJJKK)K1KCKKKSKdKlKKKKLL/LQLwLLLMMM'MdMoMMMMMMN"N*N5N@NKNaNNNNNO,OkOOOPP#PHPyPPPPPPPPPPPQ QQQ'QqQyQQQRKRRRSS,S^SSTTITTTTUURUvUUUUVVJV_VVVWW@WtWWXX_XXXXXXY,YMYnYYYYZZ>ZKZXZaZnZZZZZZZZZZ[[[[3[_[l[[[[[[[\\\;\G\S\f\s\\\\\]*]k]z]]]]]^^_^|^^^_P__``+`:`I`X`p`````aahaab0bbcc&c2c:cBcccccccccccccddd7dNdpddde,eDeeefff3fYflfffg gBgZgggh hhkَ7iю Ky5eӐ!5IlՒ .QӒ&Cdēԓ&6FUeuʔߔ1DWjӕ$7I^rÖ֖#;Tl̗2JbzϘ !6Kezљ-E^}͚6Mlۛ*DTeŜҜߜ%7DP]jwŝҝߝFߥ!1EVgu"Mpx#5 3!%3''#7'377##(()|__+u^l[Mbb p_;;s O 3'&&'#3#'#   ˰˜'(J<<1m44mtJ2"332#32654&##3254&##JDl?6:FHBqG[A6014BOv9=OF?+S KACT)+%$ZX+&6:"&&546632&&#"3267dQTSW>d!Q7$E[]I#;QQ LmlQ3 [pbdp Y`F4 332#'326654&&##F_NM[)3M++M3DppGw(\NNY%\ 3!!3#!\&|{|i 3!!3#i||,#"&&546632&&#"32675#53WSPPTB^Q2'@UNM# _!m LmmP3 [pbdp px0@ 33353##@tJ 353#5!#3JĘ|||l|;"&'73265#5!6u+U9C23.k 0<[H4C'{R@j@DR 3333#D֣K wck 33!k"|:333773#54>7##''#:@@|22H3/ZZtQXPPXQB333&&553#'#B884:tE6|:&2"&&546632'2654&#",MwBBwMNvBBvN3<<33<< NomMMmoNljekkejlK1 332##3254&##KGsEFtETKx=;K'\OLb/Rh3*&NG &%2654&#""&'&&5466323267,3<<33<<_XjBwMNvB`QC# 0llqekkeqlbLmMMm"n FH332#'#3254&##FErE@4}MHw<;H%XNH]`a0&2'*"&'732654&''.546632&&#"*B5U%Y//-6/T$@'=lF;r,K"D0%-MC3$xCGIE7#"3&"&&546632!3267>+< KN|IJvBMh5 L="=!1+h./]h=uRRt>?kD% 62YRI3#57546632&&#"3#Ճ.cM+L4]}m 9]6 l Ws4-<0<J"&&5475&&54675&&5466323##"&'3322654&#"2654&##"'@f;M!&;a8.$d7\:" T\bgHR,,++,;K,+>3#D9,=& )2B+33366326632#4#"#4#"#o 2+D5+5:s =+Q"/VJR-0R-H3336632#4&#"Hx  T7TN )-B .l^2./)"&&546632'2654&#",BsHHsBBsHHsB3333333 =uRSt==tSRu=wM@ALLA@MHH)336632#"'#2654#"Hx N(]j=b8D6U)9[/--2#sUx?6Q$FL./H!57##"&5466323732675&&#"}D#^s=a6*A s+)(<2P yQu>!3X$CGIEt$3336632&&#"tx %i;!)%.Y l=; {6C5'"&'732654&&'&&54632&&#"(C/?.e5)&41eXzjCm'B%T)"#4?MT"} -\ K:EV+X+:)C]1&"&&55#57733#3267O^)}y270!O 7bAms80 j > "&5332673#'#UL),x !Q l^21/!FG%.9 33366773ڻN    N%M''M%T 33366773366773#'&&'#UQ k  L  %H&&J#%H&&H% H+:Y%23'3366773#'&&'#%3    ,9   1P+,PR,+R>;"&'7326773366773&+1 גS   IU*F 35#5!!F O.sNs O~& O~& OC& OT& ON& O/& OP& O~& O +"&54773'&&'#3#'#2654&#",3?+;S"@j   ˰˜'(6-5R( / -6<<1m44mt OT& g %3'&&'#"&54667#'##33267   1D(('(˰*3 #;J<<1m44m2. 4% t9  J O&- Ov& O&T O&V O&X O&Z OC&&- O&\ O&^ O&` O&b OP&& -S3#!#3#3!5#T svvv-d]1]q|||S~&M[S/&M[ 4!*35#5732#'3254&##3#532654&##TKKDk>59FHBrGRFu8=Fjj95233:EE;*K OEDY*lf3-SPPTKB' E[pbdp px0LmmP 7Nm!@C& @N& @ & -& 3_@& 9U3#57533533###35#@====E^]]]KSJ~& J~& JC& JT& JN& J/& Jd& JT& J "&54667#53#5!#3#326731C#Ę*# ";2. 3% |||l|1 JJv& J & -JP&  ;C& DR& 0D R& -DDR& <[ ~& k & k & 0#k  & -#*  /& &-#kD & <#  35'737!k@2r1"&X@JdX~|k=&  :~&:d&: &-B~& B~& BT& BT& B&0Bd& B &-BD&<&2~&&2~&&2C&&2T&&2N&&2/&&2y&&2P& &2T&&2!-"&5467.54663232672654&#"B1C+Oh3BwMNvB`P(! #;33<<33<<2.)= ^XkOOj#5 JSipekkepi& 2&-&2v&&2&T&2&V&2&X&2&Z& 2C&&-&S?("&&5466326654&'7'2654&#",MwBBwM?4 m s'+BvN3<<33<< NomM '$# ,5r+WoNljekkejl&S~&&S~&&Sv&&ST&& S?&-&2&fD )77&&5466327#"'7&#"2654&'EBwMV=5PDBvNT?6Z(3NuABsL);9 PiVOe )PkjQ@UU@A,"&'7326654&#"#36632i0  0+7G+:\6X !YTq]&$1>#'AzJJ33"&'732653Jy"+  !Pt m')~6[7&A333"&5463233&i )) ((6i|)* ** *|.JW~&'h=/&=/&=&=&=&=&=& =&=n)4@"&54677"&&5467&&#"'6632#'#'26752654&#"@AC;M)*C2I(42$I*43u@hxx %[!:IQ &P8=++{J# 6!+=(D*SX "&`&nr8(rR" =&=.,7"&54667'##"&&5467&&#"'663232726751D( %[02I(42$I*43u@hx83!?!:IQ &21 1# :((D*SX "&`&nr4AIR"= &-=&=U)&S')&U=>2&W=F&Y= &&-=t&[=t&]=y&_=E&a= && -Q3@"3&&"&'#"&5467&&#"'66326632#327%3267&&55({1M%F%;Jos"/4)Q(&;@$4F#4$%'3I 7)-65.h("("P>NZ.` )) AmA" 32_ - ,Q/& Q& )&"'###57533#36632'2654#"RH? sBBI#]k=bY)8[/-- B6)FHGL1InRt=x@H|.HD)&< C#&2*C#/&*C#&*C#&*C#& *"z6!&"&5466323'53#'#72675&&#"3Te6V/#2o ? "2+" yQu>MC3&xCGIEb/ &-/D&</&2/R("&5466323'5#53533#'#52675&#"_s=b5*;BBx H+'**<2 uNp<M*LGGF3$x!?BC@7#/&  7#/&  7#&  7#&  7#&  7#&  7#&  7#2"3&"&5467#"&&546632!3267327>+< 3B# N|IJvBMh5 L="=!138 ?./]21#8=uRRt>?kD% 62Y".&B7#&  7 #& - 7#&  7#&  7M)& S #)& U 762& W 7#F& Y 7 #& & - 7#n& e 4-</&"4-<&"4-<&" 4-<&" 4-<&"14-<&"4-<&"4-<&"&#e<&#e<H &#-HD&#< &#2eH&#93#57533#36632#4&#"HBB Q8SN )-)FHGL+`-l^ 2.O/&U-O/&U-O&U-O&U-O&U-O&U-O&U-O&M -O&U-O &$--O&U -O!#5!Z}s*<&-LI&&0L I&&-LDI&&<LI 33773#'L˟JH{2 &'<2 6&'2 &'0C2  &'-C2  k&'&<-C2D &'2&(#>&( # >&(-H/&)H/&)H&)H&)H&)0H&) H &)-HD&)<&3336632#4&#"'667#"&54632x H1JE!'48 (47)8=W@-k]!1-"NE/3).7UKR}/)/&*/)/&*/)&*/)&*/)&*/)&*/) &*/)&*/)!-"&5467.54663232672654&#"@0B+Ru=wM@ALLA@M/Q/&/Q/&/Q&/Q&/ Q&-/)  (77&#"'7&&5466327#"&'72654'!33P9. HsBK=.9/ HsB%F33Q.7!W6St=&7/8 X6Ru=KR@!/)/& Q 872654&#""3&&"&&5466326632#3267#"&'%w2S12T3'=D"3E#5!#3H$K>kM@AMMA@M!.55.h=uRSt=*11*AmA" 41 _'//'t$/&-1R$&-0t$&-1t$&- 1a $&--a $&-&1-/D$&-<5/&. 5&. 5&. 5R&.g 5&.2 5&.05&. 5 &.-=;4"&'732654.54>54&#"#46632)@"1*./('2eLAS)./'N d  $3(,(+#<3>c91M+$2%"&9,-K,RI3#57546632&&#"Ճ.cM+L4]}m 9]6 l W1&6&/1&&/2K1&&/0D1 &&/-D1D&&/ /&0> /&0> &0> &0> &0> &0> &0 > &0> &0> &0>$&"&54667'##"&53326733271D( !Q5UL),:1!?210# J%.l^21/!F4A> 9&0O> r&0H> i&0Q> r&0K>  &0-> &0>n!"&5332673>54'7#'#UL),!)m 7*x !Q l^21/!F'&+/77D7G%.>n/&>n/&>n&>n&> n&- 9&1-T/&2T/&2T&2T&2>;/&4>;/&4>;&4>;&4>;&4 H&4->;&4>;&4F/&5F&5F&5 F&5F &5- FD&5< /&/7326544'&&#""&&546632&&''7&'77F13>9 6?rCqD>e:$C 0#(w*2@&H"(o@MLK :;lIHe6-IKD<Y)ED8b6%>U(:,0..uMsUx?Q$FLCCHE "&'73254&#"#336632q)  / )-x  T7TN!J mQ2.B .l^7\7*<"&'73265#5!.K +15'Z(di 36es.54&#"(hxx &Z02I(42$I*43uIQ % !: nr8'(C*TW "&a&#H) "&'##336632'2654#"Q"F sx N+>Y0=cZ):^,, " 63$>pLVy?xDHH' ,"&'##46632&&#"36632'2654#"S"G s+_N$:"+*G$\j=`Y(8Z-. !!6:`;l(.LoSt=xAI}4"&'732654&#"'66324j+<=%AQM8: D i>I}LK $%]M@AL[&=tSRu=C-+%"32654'67&&546632&#"6632#"'*8!"')r!!$PL=] @2@AW/b*DO.V>F;@ !1A5!Y7St=%X+PD%-.E=*F*//Vm"/"&&57##"&&5466323'5332672675&&#"7H#B#>]4=`5)9$),%83*E(? >uQQu>MS%"lCGIE/l -"&5466323'546632&#"#'#72675&&#"]p<`4';"K?  x H)-$72 yQu>M,H,l#%3$xCGIE6!"3&&"&'73267!&&546632X ::1i*0!="=M :mLBqEI}]/.hX26 &Dk?>uQRt>/!"&&546632373#'#72675&&#">_4=b8&C sx K+)(<2 >uQQu>!33$xCGIEn=7""&&5467!&&#"'6632'267##Mj5S G9"=!0+h1LwEHtH-: @mC% 51X>tRQu>p/1`o(2"&&'7&&#"'663273267#"&'744'326BW, +-1&S%DbKC  #">$4]  ( ) >h?y"]:6$8(F $:Jq@ H(6F"*"&&54675&&546632&&#"33#"3267=FpA>5.0>nF7j+5 H&91eCR75>E+I:.k #E326 ;2=],c]%0!/"+"&&546632'2654&##532654&#"n,9"&'732677##"&&5466323'46632&#"2675&&#" )g,1#I82A">\3>a4&8"L@  b(,%83a."?>oGLq>#(K0m%#3afEC>=C/<,"&'732677##"&&5466323732675&&#")k,1#M79H#>_4oGLq>?3 dpGC>=C@ "&&54>32&&#"3275#53QI|L.Oc5DX"B/(#@'H9$\ j 8rW?bC#%X B5ELSb&-9%"&54673366773'2654&'#/IW#R    R$WJPB&A0 4##4 h1B&BP\) +9#/"&5467&&#"'66326632&#"'2654&',Zn7.**>)R%%S(>*(/6nZ""#" ^X,\*k %**% k*\,X^w$99$Hd#B=&,85+1N lIIf5/"[82,1Gy33!y s5#'##"'#"&53327332675o  3+D 6+5:s =+Q"/VJ\-0O-OH5 57##"'#"&53327332673 -)D 6*4;s a,Q"/VJ\-0O-OX#E>+"&'732654#"#4#"#3366326632%  s o 2+D6*4;Am Z-0R->+Q"/VJ0O0E "&'73265336632#4&#">$x  O4TL #*Hl!%B .l^7)4W4HEt "&&54&#"#336632327&@I #*x  P4SL %4W47)B .l^%!lJ333&&553#'&&'#J    <.\%<.[&/)"&&546632"3&27#,BtGGtBCsGGsCYY_ ;tUVs;;sVUt;``jjQ%"&&5466323#3#3#'27&&#"8f@@f8,"힀/ !3& 8sXXs:tMcXtsBM7?G?#5.54667534&'668b;;b8|9a;;a9.&&.$.&&.=oOOo==oOOo=CJ"IDDIJ4#'##"&'73267x %i;!)%.Zl=; {6C4"&'732673#'#!)%.Zx %i |6CCl<<4E2"&&55##"&'73266733267=FY0+!$40  ./O/m56 |0(("k tE$"&&5336632&&#"3267IN^)x %i;!)%.Y 170!P7bAl=; {6C9/ k t$346632.#"t8v]5T!!A-GqC {D;J6332#'#32654##J9]79)mGV('OVG>:H$<J673254&#3##33VO'(^)97]9G<$H:=H5E5"'3267#"&55732654&&'&&54632&&#"(99  )XI?.e5)&41eXzjCm'B%T)"#4?MT"}  ij^3\ K:EV+X+:)C]+<1"&'7326546632&&#"1A*&&%XL.=%"+""R f +,9^8 i +, 9^8+<1%"&'732655#57546632&&#"3#1A*&&%XL.=%"+""R f +,E9^8 i +,K9^82h'23#5#5354&#"'66O^)}y27/!P7bAms80 j 1E&"&&5#57733#3267O^)}y260!Q7bA^ms9/ k X "&55#57533533##'#'32675#PIRRVVx K9' k]NEKE%,5)b'1#"&&54675#5332654&'53#,Op:/W!2451!W.:o >b5>)"&5332654&#"'632*l2-/3 -Kd9q yv @:\P;8mcl^N9 #'&&'##~N    N&L''L&T #'&&'##'&&'##33677Q k  L  %I%%K#%I%%I% H+:Y93>32&#"#'&&'#;S=%(/ גS    I >V,p(-#K'%K%!9353366773Û64–Zk#?&&?#kFEz"&&55!5#5!!327-@I %3P+ O.sNt%!lFM %%"2232654'67#5#5!6632##  J *G+1:U\ $5.O.sOEL76.1G'm#!(6(4)<4"&'73265#327#"&55#57733546632&&#"r)  4$YMDKz"PD# !Kl')~*% k jVm3X6l')6Z723>54&#"'6632BM A8*FI$pMDsE+O59(:5 /3)]'9/]G6QF'E#3.546632&&#"5O,FsDMo%IG)7B MB'FQ6G]/9'])3/ 5:(235#5736654&#"'66323#͗L]PM=4,JI&tOBoCG0E0\*/3)\(8.]G7`%K9#35#573&&546632&&#"3#L80GCoBPt%IJ,4=MPE%`7G].8(\)3/*\0KCH#575#5733#3#㠠_4=b8&C sx K+)(<2<8=++{J# 6!+=>uQQu>!33$xCGIE/&/ &-/&/I)&S)&U/22&W/F&Y/ &&-/t&[/t&]/y&_/E&a/ && -/('4"&54667'##"&&54663237332672675&&#"-?! K$>_4=b8&C s3' ;+)(<2211$ 6$>uQQu>!34 AOCGIE/</</&6 /<&6 /<&6 /<&6 /<&61 /<&6 /<&6 /<&6 Q4&@ Q4 353#5!3Q/s ssQ4/&@Q4/&@Q4&@Q4&@Q4&@Q4&@Q4&@Q4&N Q4&@Q 4&?-Q4&@ Q4&P O"&5467##5!3267_1D6 *Z2*   ?21.?}s3AQ4"&5467#53#5!3#3267N0D4۱/2(  @21.?s ss3AO. !5#575#5!3#ZEvsKQ43535#575#5!3#3Q/seEZsKes #3267&#"&&'#"&54632#5!" $),  Q5T_WO,*Z6-/!V>>O QFC35&&55336553etQ|Qtetmn=nmt9'3535.5466323#5>54&#"d+AvOPuA*d9669wEZ6[NN[6ZEwj&FN3UmmU3NF&jO 3'&&'#3#'#' p   鳰 !p^-~J<<1X99Xt[F 3!#3#3':G^-~|{|[F( 33353##'Ń^^^-~t[F 353#5!#3'YYFYYO^-~|||l|[FJN2 "&&54632'2654&&#"''b=^5t\\tt\ %&^-~ Ql`vOZ''ZOv`F p!53366773'\(   )^-~(G&&G(P[FHN:%)3535&&5466323#5>54&#"'R)3]??\3)R$ %^-~w2wTUIIUTw2wj+GL1a__a1LG+j[F*N,"&546632373327#"&'#'2677&&#"Xl;`5,I  ,4>30 3/!7+ yRu?+8W9v&l %-Rx?,V,+CJHCHO.246632#"&'2654&#"'6654&#"H/aK7b>+*:O:Z0%O#b'8+*5),%'9Dl?'P?2J `FI^-&;t923'8k>*)'HDII$O1>54.'736673 9I*42)0 -D2$-"/9 "jGPZ?nn|L.f*5#!-"&&54667&&54632&&#"'32654&')BoC-I+-D]a:{8!9j)2W@3E# EF","&&54675&&546632&&#"327&#"3267JNuA>4./>nF5j+6 H$82d"$++63_+i^(VE&'6654&'.54675!#s0D&H;"=GE?hM)=4VI&'5T=_RttVa`((2 7:ZAO>54&#"#4&'336632&0 "M7VEN96(!%XS(T*6k]7! "&54632"3.2667#,nnnn,++, ^SOOS!VNNV!="&&55#5!3267HR!%+,+ H 2]?s3th%.# l IJ!34&'33>7&&'U&Yi= (I)DK"E# XT'?#]:a@$#1kb& &jD H8"@''&&#"'6632## 3  2-Wh!c '%w bnN@<I&3326733267#"&'##"&'@"!/ %19 >$% 5+")4:v*m./+- +H5 E-2ss/)"8t8-"% 0'Y3%"&&546632'2654&#",BqFFqBBqFFqB2002111 =uRSt==tSRu=wM@ALLA@M N""&54665#'665#57!#3267SAz bKR  & ]MJ\)Xc eRnt+bK l HO)46632#"&'2654#"H@nEp~=a6"FV'8\+81^x9wUx? 9l7FLJ?g/@ "&&54663!&&''2654&#"Al@Fp>(?'&);gA).-*(0/ ;qRVq7yV8Gh8wB=;T?H@G2&"&55#57!#3267YFJ > cRms=r+ n > "&&54654&'332654&'7&Nd/1%/1} 9dB!C!S(>#c/-/LR-g@9x;O?t#5.54667534&'668b;;b8|9a;;a9.&&.$.&&.=oOOo=}}=oOOo=CJ"IDDIJ)CD '7373'#w[ɑ~ V7 OEt%5.554&'3336654&'7N[(",{)* ol@h>{R)>#><*@ FQ2hB:|>B-"&54673254&'332654&&'7#"&'#O_,"%&-| !)XQ":4 >74>l>4A]"6++6"4)HC)BC'15yM#**#IF$'6654&'.54>32&&#"s&5*QC(/Pg79\C0?RJC>E&+ #8W><]@"# [H<=8#6)\H.)6".5546632'2654&#">54&#"G/[I,0cL5a=/)'?&?iD&6++:/#4R@B,*# <_DDk>&O?2O2M/G].0-(8  4=V%$2")'K9! ,7&&"&&54&'332667.546632.RAC/*/lMa,U*UwO-9b=Xy?z," hT/4V4"1 4\#\U -<>7X3XnO?tOA *6654&#"5.5467546632i'/{:b;:.b%%*-,N1PX<`8,Y-GJH>3?tSA4U/Y3:LZn2tSvA+U**N>&F">& AO>&=>&=&3%>&>>&>&B>&=>&J>>&JIDJ(34&'33>7'667&&'U&Yi= (I)DK"0,%GD" XT'?#]:a@$#1kb&#H= (W)&iC H80O( %2654&#"5.546632,42244223T1GsBBsG0Q3dPDALLADPBgDSt==tSCfC-U-JF!'6654&&'.546633&"#"r &)9iCKM(Z$>NBI>E&* 8_HUp7y>G.8#6)\tO !!3#tsaLS)K*'6654''7&&''7&'7 4h9< x[~'1^-~[Fh:>J(E"&533267gR?' [L.bZ!m 8#8#8!+b.>j-mi-jj-ls-i3Pn3Pkn=o7!Mh:>J;GN'6654&'7 $+\L&?:J9,)4.5467Z%@&L\+$4),9Jt'7<}[~'6654&'7'7 %LH$6<}:J90#1}.5467'77$IL$ ~<}1#09J7'6654&'7'7 %LH$6^}:J90#1.546777$IL% C}<1#09J&#"&&#"'66323267'6654&'7_! ?)%! ?){ & SAE8  3$  4#/  ;!%& #&&54677"&&#"'66323267O0EBR % ! ?)%! ?)&%!;  v  3$  4# OJ23!!32#'32654&##J[EqDBoE_P;:;;O|#SHJ\)s+..%J2l` DL 3#'53667>7!3#5! U % YO JBg%(9:\ev:Y^>\ܼ\W-3'&&#"'6632353376632&&#"####q   -C&x&B-   qB%x%B[.CC..,*"&'732654&##532654&#"'6632%B5N&S.6C=@WC>47,(B"K-r=tz*)1AEw ,1f#!.*)&m'#&"b(+^Q/K P;C[.@33373#5467#@88:4Dt:|6@C& ER33376632&&#"##E:L"S7 !;˞<D2#w"&'732667667!##G" [W 2C BGbbtE{Fmy0:@ &2@mK16:9F"&'7327733773( . ݜL64E_ ⾜JVH5&&5467534&'6lvvltlvvl`1/4/1` Z ~rq{ XX {qr~ ZU{ C>>C F@D^ 33333#5@K z\ܼ-!#"&&55332673-!Mo;:='.iXD6t: 333333OxOtD^3333333#5~KtK~; s\ܼ93#5!32#'32654##>h?M M>%;N$n@SNP `\$KT{IC^"3KtsGD"%26654&&#""&'##336632  I\12 [G]ees%]TTZ""ZTT]%~!5##&&54663335#"I8FDrELL:==^LNX%t`&001\~]\Na:""'732654&#"##5!#6632*  +$  %3Y6)F p631||+_NNY%l~&79"&&546632&&#"3#3267gUQTT?d!N8#;V SC(?NR GstK3"^CI{UJ$\`2'J JN; E#+"&'732667667!32###%32654##+   7U15[8|2!9%$'L 6;iZ(XHO^).VfFYh+,3UE3335332###732654&##V7U13V6V #!# (XHO^)u(7/&85!#6632#54#"##WhH  ||YeHER~&@~&FC& ?D 3333##5? zt<3#53533#32#'32654&##ww%GsEBqG*!8;:>u``u_"OBN\'r(2+%&2"&&546632"3&&267#,MwBBwMNvBBvN-; ;-/<; NnoKLnnN+KJJKNVRSUo33366776632&&#"ŜO  %NH y6e66e6\S#2l83!73!l 2 3#57!!3#~LLF(|KDe23'&&#"'6632353376632&&#"3#5####q   -C&x&B-   I6 b'B%x%B[.CC.\ܼ.D,,5&&'732654&##532654&#"'66323`)N&S.6C=@WC>47,(B"K-r=tz*)1AdP +&f#!.*)&m'#&"b(+^Q/K P;QbED]33376632&&#"3#5##E:L"S7 !;S s*<D2#w\ܼX3#5!37>32&"#"##13'3     ,p1|03$|@D^333533#5##@K pa\ܼ6D:5.546632&&#"3267!Bj?SW>d!Q7$E[]I#;Q7T S^lQ3 [pbdp YBHH35#57333667733#_BBrFq%I''I%KDU333667733#5#'&'#?   :vW p7G  DO={44{\ܼ0;3,D\!#"&&553326733#5~+Lm:8:&K {.iXD6\ܼ>*336632#54&#">+!Mn;8>'.hXD5J WC& OC& SM\C& 20@/&&2N&&2F/&Fy&=<-32654&#""&54>7667663291+*.(8kv.TsF.2@#4I-L*5W5B7# ګoT*  803fLLs?T##332#32654&##32654&##T;_8(,/8;b;gQ*$$)R^-%',]92;  623?/t3!!tsTF3#'53>77!3#5!n  uO~ 1J ׿` KF`7# V-3'&&#"'6632353376632&&#"#'##5#q  -C$p$C-  qA*p*A <);ii;)<0)"&'732654##53254&#"'6632=o;9)T"F>[xoS2>+H)62m=Hn=%375Dv *]0c/_!>2: 722E"I33366773#5467#I #  " %].;&\.=I&" MF33376632&#"#'#MN.I5 vO[?)  ; "&'73267667!##I  vo  R "(JJ}7o7SY%3#33366773#54667##'&&'#%; 7  6Q9  66OP!J LPOH 33353#5#H/)*H3!##Hȓ}HH)+C#2&3#5!#}ss>;4HB#/:57#"&546632'536632#"&'275&&#"32654&#"&CO*C%#|->J*D'$ ! K yQu> HL sUx? H$ DGIDFLCC%23HTI 33333#5HO~}`@!5#"&&55332753u(#>`6-4$'YJ.)#5 333333#IxI}}#T_3333333#5#FuF;q}}`33#5!32#'3254##&<`88`<&NN}s H>@L p<9&2 3332#'3254##3&$3Q00Q3$?? H>@L p<9Q* 3332#'3254##Qi?d::d?icVVc H>@L p<95"&'73267#53&&#"'66324m'7F#>R L:F2?g:NLI $V17c2+#U#9sXVt:D %2654&#""&'##336632!C^ 45]ATddk=PP>>PP=wec_a"!5##7&&54663335#"{Gm)97]9VVO'H:>G<$7#/)7#-<&*"&'7326654&&#"##57533#36632=%  ,*(BB H1\a9hl)j`MX$*EHGK,^-Et/&#C!"&&546632&&#"3#3267[PIPO9[!?;"8N R>%D4*j :tVWs:Y,1c71Y%5.O$ON*<%@ '"&'73267667!32###%3254##.    4S11S43 DJJ -GP H>@L }>}>EK|<9$?3335332##5#73254##$O6S//S6OCC𳳞 H>@L p<9IMF/&$I/&">;&- KT  3333##'K~} 2t3#53533#32#'3254##&@K p<9/)%K33366776632&&#"ֱK   EA ]%M''M%HXV|#x3!73#x w / 35#575!#3#SSEsrKTc23'&&#"'6632353376632&&#"3#5#'##5#q  -C$p$C-  @>a%A*p*A <);ii;)<`0T+'&&'732654##53254&#"'6632+S,9)T"F>[xoS2>+H)62m=Hn=%375bO ]0c/_!>2: 72=J MTR33376632&#"3#5#'#MN.I5 _Xl3vO[?)  ;`S3#5!376632&&#"#'#3 E0   h3}s[A' EHTI333533#5#5#HO~V`CT#'&&546632&#"3267YsPL;`D77@PN='A;B#hSt=&['LA@M] H953366773ǔP    P'F$$F' H85#57333667733#M'P    PnE'F$$F'[K%TA3'33667733#5#'&&'#%3    ,Za|#9   1P+,P~`R,+R@TJ!5#"&&5533267533#5h% <]5*1O}'UF('`H#V&  2 '=& Q7#& 7"I&"/)&(/)>;&->; &-//&e C$0"&&5467&&54667>7'32654&'%?f=]G+D5bB:@$C"CA!;%DL+; FQ4?Q4EQ4Ru)5AE"&''26533&&554632"#&&'#"&54632'2654&#"53 e  -1 a  -1JJ11II1J q{3[z1_@Cq/[z1_@COXWQQWXOZ"+,"",+"NNJ 2=6654&#""&&5467&&5466326673&''327&&' %D]0?*'I1JS%8=  , 3(#CG%Y}1( "@ %.'3U2AS&G/M/PD)A4; K+;n3 w."%.C$%8  '"&54632'26654&&#"7"&54632,nnnn 33 44,, ++ r(`RS\&&\SR`(*"#))#"*O{ 353#566733OAN%lwo[ w335>54&#"'66326633:[L62&?O2hICd9Aj>?TM}i-/1'O232[=5oo6|**"&'732654&춮&#"'6632Rv%D P+4C"SK^M2,%A!J/l=Ej;@9;S+#.{ 35467#5!533#$D PPkO6ne~p.{"&'732654&#"'!!632Rt'B I-6EB2, A (,;c32&&#"6632=< B%&;4*1\I+.Mc4Df M< 'C*"S$8X4?h%"L9161+$LwTYT)-X&WK!$*WCB_4>{3>7!5!+D20\W+|*N*"&'732654&춮&#"'6632Rv%D P+4C"SK^M2,%A!J/l=Ej;@9B >7!5!%NC$0%54&#"'66326633:\L62&?O2hICd9Aj>?TMk.47'O235`A6qp7|**"&'732654&춮&#"'6632Rv%D P+4C"SK^M2,%A!J/l=Ej;@932&&#"6632=< B%&;4*1\I+.Mc4Df M< 'C*#S$8X4?h."O>383.%NzV\V*.X([N!%+YECb4>3>7!5!+D3=K(R|x@|[Cz`=&3"&54675&&546632654&#"2654&&'+nG1(58a?_q5&2E8k"0.,#1G,8'D."B dO>jVI.51/8[Q_"'C'"'CY #"&546323"&546323"&54632[)33)*22)33))33*22*)33 8()77)(88()77)(88()77)(87'3"&546320+99++999-,88,-9R73"&54632`I+99++998,-99-,8b&7&>54&#"'6632"&54632+. * 0R$c;:\7!/.<+99++99(<.'& K(2$H7(7+)2#9-,88,-9gF&"&&54>'33267"&5463249]7!/.+. +1R$c5+99++99$H7(7+)2#(<.'& J(38,-99-,8/''3##/푑R/'{""&5467632-7>WX&48 (36"TLR}(ND02).7"'667#"&54632'48 (47)8=W"NE/3).7UKR}3"'{E"$'{E$'{"&&54632#"'gWW=8)73) 84"(}RKU7.)3/E%'57Z>77'7'7>>77*'{;.'{F~F~F~P675!PooX655!XooP675!PooX6e%"&&546632,.K++K./J++Je*I..I**I..I*vS%"&&546632'2654&#",4S//S45R//R5,77,+88S/R23Q//Q32R/K:..::..:r7!.r(`7!%35#R`LFzr753zrDZ`753%3'ZղY`xFT73DTd47377'yC4yYZzR%5!*dRDZ0%5!'7#*Y0x|T%%5%3DTY4%%5%3'5yF4\yZk7!'26654&&#"<*B&&B**B&&Bk6 %A))A%%A))A%XJ55!X<\5!<nn<5!5!< ^^^^>I5!>ISSc"&'732667,xg&A??A&g=?C$++$C?=M &&5467arraRYQQYV捍VAWwvW~M '6654&'7RYQQYRbqqAWvwWAV捍h!#3(\N@Nhh53#5!h(NNjh/"&546654&&'5>54&&54633#"33`Z<66<Z`M)>(/55/(>)=Q$53!V"36#Q=N*(O,93  39.L)*Nih/532654&54675&&54654&##532#i)>'.66.'>)M`Z<66<Z`N*)L.93  39,O(*N=Q#63"V!35$Q=J`3JI{fm3J`3{Ifm33낂H0H@[67'7'7737'@a N a@t[,DG++GD,Y 5'37' v Pv vY75'75'37'7' v P v ~~ v v ~~ v G1>"&'732654.5467&&54632&&#"654&&'7j"T3<&=C=&-% ^T:]D86'?E?'+) b 4=$6O(%T)+K3+A/&D)DU)\' -@-,A&C[!% ( 0 %"&&5466333 AnAAlA*44hLTb)9$w&Ȍt>'vD$=I7&>54&#"'6632"&54632&>54&#"'6632"&54632N %AJ'?V! 4+99++99 % AJ'?V! 4+99++99/G;7 TI>+@314!9-,88,-9 /G;7 TI>+@314!9-,88,-9<D$*6%&>54&#"'6632"&54632'3"&54632f % AJ'?V! 4+99++990+99++99/G;7 TI>+@314!9-,88,-9 9-,88,-9$*67&>54&#"'6632"&54632'3"&54632N %AJ'?V! 4+99++990+99++99/G;7 TI>+@314!9-,88,-9 9-,88,-9@(7''36654&#"'6632"&54632 v%<,&<Q(v'2#"&546q v%<,&<Q(v,3< DE,4"&&546632'26654&&#"'32##53254&##,LMMLLMMLAb66bAAb66b:+F)*F*< QghOOhgQ=D{RRyCCyRR{DWm901@[@e7)2"&&546632'2654&#"'532#'#532654&##+6Z66Z67Z55Z7?QQ??QQY#.*<74[;;[44[;;[41SFFSSFFS8 "M<7 8,") Bng""gT 5:6 ^<  *&);=   (%(? :^GG^`ss`m&/9".546632#'##"&&5466754&&#"32672675SnhCIK\ $!&0:".54>32#'##"&&5466754&#"32672675S#G<$=a6-;**U$F9*TW\T(;c<2#&?'6E' )?=eHTo6I[ $"F37#7#537#53733733#3##7#i hKW P\TiTOZT_Uhny^n^^n^T'7'7737'@R N R@e,8H H8,~|675!|`oo|6|6@'-3'7&&'77.54632237&&'#74&'27" W'L@3)N2wdX"7I*O47iM`JEs #dr)@1L[ $T h*A11P. a, Zl 2x2x 2l 2x 2l2l 2x2l 2l 2X2}X2ol2v 2: "&54632'2654&#",KbbKKbbK))**nbbllbbnR8FE66EF8F 535#566733ym08UiZCZF'6654&#"'6323Yf# -$=>aEUD89A]$!08QF>0S1Z:'"&'732654춮&#"'6632*7XA.&25*/!&= I1'B(B&+-I''3>7# 0"< 1#$6F53533##5Ok\_::_d6'ddGVV:"&'732654&#"'7!#6632*7WA.&. - %>&[''3" [79(:M: $"32654"&54632&&#"66321$)"4T]f[/:*$.01=G'C )$6p\^tD 71B9'>$F >7#5!2#:.3=_[4[::fkA:$0"&54675&&54632'6654&#"2654&',HX,%#!V=@SE()X7""/!"@."3*299293%.A  : %73267&&#""&'73267#"&546632!#(#%.=*%/.1=G'D*T\dQ )$D 71B9'?$q\]t&.54667J'11'O/))//U]<<]V.(?uA@v?}&'6654&'7P/))/P'00(?v@Au?(.V]<<]U=l "&54632,%%%%$%%$v'66'#"&54632&(''HA7 #"a9QD "&54632'2654&#",@TT@@TT@ \MNYYNM\O'33%%33'8!5#56673Q&*S@D356654&#"'66323>T>A(;G2\7)L#8$:3"AWD%"&'732654춮#"'6632-F#)-#& '#*E(2E#N B 7 >1(! &,8D7573533##5`LMA^33^=3XXB==8"&'732654&#"'73#6632."D#)++Յ 2;L B X#3..@D"%"3254"&546632&&#"66321 $GO%I6 7* &"'.6G ^I-M/= ."0..B8 3>7#5!&&(-HE'W8+MS5D$/"&54675&&54632'654&#"2654&',;K'J35I#K.  6% ! )22)  $$%6     D #%3267&&#""&'73267#"&54632%  #!6) &!'-6G6GO%I < -! 0./A^J,M/ &&5467B3993OS+(Y8xOOx70am7i/ '6654'7O)*SO399Y0/i7ma07xOOxlz "&54632,%%%% %&&%}vz'66'#"&54632&(''#%A8 $#3/9P+{ 77o 77{ 7+{ 77{7+o7+{77o7+{7+{777.l7v7o)oJo7o""&5467&#"'6632#'#'26752H)A>#8 o+#u2\L8P*T+1U o"&&546632&&#"3267[2P/4U1"50  '//$ )@o)M67M*@ 1)(1@oK "&546632'53#'#72675&&#" @L)A$&gT0 $ o\P6N*1t, T  )./+p"3&&"&&546632#3278*#3T10N-ON5%**"Gz (M74M+\B">wR5#5754632&&#"3#JJGO3#˾wk5#53"&54632&}7&&''wQv"$$"k7"&'732655#53"&546320 "~D)&&'' I  #Q(E*"$$"wK 3373#'hqr|pQ-w~~-QoK"&5#533267zC=E  &oL>QP0w"!3366326632#54&#"#54&#"0T.""- 2"73hhwJ+"J=˾ܾw336632#54&#"U5%83hwJ+I>˾o"&&546632'2654&#",,L//L,,L//L,  o)M67M**M76M)S1()11)(17336632#"&'72654#"U3>G)A%(4#8 !\L8P*3_+1U  %57#"&546632373'2675&&#"]-@L)A$*Q $ c0\P6N*">  )./+w336632&&#"V@# 6wJI)(W#,o&"&'732654&'.54632&&#",)T/504"PF+E/,0-5#Ro?  &/:=  %.>o""&55#57733#327mPBEJ W!"4oQAoMaaQn% J o"&553326753#'#83hhU5oH=.tw 3366773yh0  0cuwJ33&w337733773#''#xRf&S(_OxwIddddZZ|w7'3366773#'&&'#|oholioo"  w4  4447"&'7326773366773  h/  (ctCM@//@>w 57#5!3#w7Q7Qp "'7"3&&"&&546632#327:}Fl7*#3T10N-ON5%**"GnD (M74M+\B">p "'7"3&&"&&546632#32704kGv*#3T10N-ON5%**"G2D (M74M+\B">2"3&&"&5467#"&&546632#326732678*#'". 3T10N-ON5%("1  *z d""&(M74M+\B" =(/ p"&54673&&#"'6632'267#'OP/#)"G1N//M0&%p]C" >)M74M+N!!wN4632&&#"6632#54&#"CI. 5$83hwR:K L?H> %%"&54673366773'2654&'#/1:hh*  )ce91  6,- "" -,6@  wM5&&546632&&#"1@/M-3H3+ +3?w$I7.<"A!7$o"&546632373#'#72675&&#" >M)B%2& PT2 $!o\P6N))! T  )./++%"&'732677#"&546632373'2675&&#"H#3$#->M+B#,S\A %"C &\F2K)@D p )(')wk 535#533"&54632tfj&&''wQQQv"$$"ol'2@53بHH=5! AA>=5!>AA$?4S)7'7&547'76327'#"'72654&#"mIQ"!PIY0642YIQ"RIZ46/e$22$$22?JR.A?.RJZZJR-@!7RJ[ N5-,66,-5@ +773254.546753&&#"#5&&@@/W/J*CJC*XLb4MI#?)E*BKB*WSb1hsd!-*>.AV + T.)>.?])C&)356654'#57&&546632&&#"3#!C4BpT ;gB>Y#O,07#[P5 V)?\2*'P.0$[ $4|9{35#535#5333667733#3#⩩==F7F%!B !B F7F-G1"&'#57445447#576632&&#"3!3#3267}f?67Aj3_%Q4 2BD1#6Q(e vqD Eny(&O<8J  J8=L,0` !5&&5466753&'66757av8a>Q'?C$;E"%#$$)_ mGhB a]Z ]_\-A@.&&"&'7>77#5737>32&&#"3#!2  WK /VE; &'s'Q` l=9e+I[+ n+#7kY#O,07#[B,D  E ?\2*'P.0J  J*|<{#'+3'5#575#57533533#3##'#73'#'3'#3'# "*SFFFFTPjEEEETP #>10= zz626<2"">}Y5.59F;  ;C? - }##&C#5.5466753&&#"3275#53&Bf;9gCbU=Q4 AGK@#LI)nf P_\U he@Pqegm zx$f56"&5467#57367#5736654&#"'66323#3!327Gko\l Dt %(AH=)p gU  ED  O'0_RJ K  %<^((O3!5.5466753&&'67CGn?=nIQW@Q"+#Q!O/3.01nd Nb_T ][ AO Z (L$-eTklY {75327#573&&##5!#3##'YItQ F7I:MK H6uGDuJ#?J@Q'{ 5'75'75377>54&'7yD#gD#g##*H,yg @17!@2~E@V7E@V"8#  [|=#5{35'75'75#5!#77q#q#q#q#7@H77@Hkks7?I77?I#5{ 3#57!#5!gEKL1JJ9{!35#575#5732##3#32654&##mmmmClACm@=74::47E3D'&QAAR%2KU7.504{35#57!!3#3#LLݏaU|y{PZaGp7'77'7\K33KI/0IGphGphH' D&h F '3?K"&54632'2654&#"'%"&54632'2654&#""&54632'2654&#"6II67II7&X6II67II7-6JJ67II7H<''&'>H<''&'Q|' qD&hG|' qD&h Q' qD&hG|' qD&h G' qD&h G|' qD&h G' qD&hG' qD&hG'qD&hG|' qD&hG|'qD&hH|' qD&hG|' qD&hG' qD&hG|'qD&hG|'qD&hG|' qD&h5F{ !-5#56673'%5#56673"&54632'2654&#"Q&+S&@Q&+S6JJ67II7@,^]A H<''&'G' D&h F^6 75#53533#l^hhF~5!FhhTp# 7'7'77'IIIIpJJJJFIK "&54632"&54632%5!,"//"#..#"//"#..+""++""++""++""+hhF&tF-g'&ty%%5%~ fby75%5%5b fF0 35!5%5%F4̬hhzy."".F0 35!%5775''5F4hhy."".yzF6 75#53533#5!l̞hhhhV 3#''#Vvy.--.tF(l77#537#5!733#3!XGYIH]GYIH(zggzzggz4$%".#"'66323267/%$'X U./%$&XU)))NC(*)NC4v$&tF^~%5!5!^hF^~7!!F^ hI^D7546632#54&#"I;fBBf;l@77@^Gh::hGCHHCF^673!Fl`^hye(4%"&'##"&&5463236632%267&&#"%2654&#"5P)B.(A&ZI/A#L3-J,-N$( 4"&+$10y.@%/0M-^h,(5/2V7Fb3%!)0 ).$&./"&&546632'2654&#"-(B''B()A&&A)%%%%%A**A%%A**A%F)! )) !)c3/cKpc&vcr''3/c@<I< +73267&&#""&&5466324454&#"'6632.&A3*7=5Z57a>#D3;2@)Y4Ng4I+,>L!70X=Eh;  T`Z#'L[r_b""&'732654&&546632&#" 'QN  'Pj>GMRGoAk>GLSFpAp#46632&#"rQN &pGoAk>G}br"&'732653 'Pj>GqFpA!Y4'736673Jc bPEG**|9a9u O#33736677#O˰˜'(   t4m1<<1mB 35!5#535!5!B&|{|t,5,c'tAA;.{ 55!!!;⧮=xW"#W||?{!#!&x sH".:"&546632&&#"3267'77'7"&54632'2654&#"?T,G(2/  !! )9kK33K@TT@@TT@8WO6K(< 1)(/ =I/0I\MNYYNM\O'33%%33'J )6654&#""&''667546323267;,+6Cl  71jQJW*[H./5!T*X6 4IKZ~uZP>kd64,Y0>1".54>32!"32673!2554'&&#",9cK++Kc99cK+b6T5_"&(r G&(H 4\zFFz\44\zF <=3 7'7'%'7Sj S iG6 %%7'7'7S i6j Sf6 7'77ij S6T j 8 5!!!!#FN((N  ODU##UD97'3'#'##nO  ODU##UEEN((J '7!5!75'!5!'74EN((NEODU##UDO9733737*ODU##UDOFN((NFd%'7!'57!'7dM[[MM[$[MpIIn??nIIp>H,O44N,,N44O,6E43EE34Eu 7!%!!KGA lAK:- 7!667%!&&'73667!K9Z&A4["B.]#1R1_ lA'EO(K:RzMD=7p8cRp&&'73>7I5](=$f{CZd=UJ==>xݼEN_5-!"&&5466323'6654&'4!-N/ OG6195m&$<$ 0^<*P*,Qafj!"&&546632%#"&&546632b1 (E*"eT2 (E*"e&$<$ 716CC617 >1CO&3cR 99 Rc3&\#53... hiX!%#"&54>73#"&'#!5667C'9MCsXXsCM9'BUFhFU3'BF-OZxUUxZO-FB'3cR 99 Rc]x+7EMU%"&&546632'26654&&#"'"&546323"&54632"&'73267'254#"3254#",ZNNZZMMZDg::gDDg::g iAQ/ 9''9 /Q MXYMMYXMC;jFFj;;jFFj;' && '' && 'B9!!9B0Id'3;C%"&&5466322654&#"32654&#"267'#"''"54323"5432,THHTUHH:FO/VV/O0HRSHHSRH(&&&&&&&&@;@@;@%#.5463236632.EPOA'kS?TT?Sk'AOPE->02@\D_`7DD7`_D\@20>x"6BNV&&#"3262672654&#""&&54632#32654&#""&'6632672'&00 6XRN88ohgq6b@U~Eo;H7X3%j KUXhOPfWh)  03P6/?DNSIuE;VbjMG MJ7T/73  e+%.45-%+L53g%,:H%"&&5467&5467&&54>7'267!'66327&&#"66327&&#",nB-1%?1 ,30 1?%1-Bn9QPb# "" #@;0: ?6;  'O ;6? :0;@`5==5""A77A""A77x %;IW%"&54632'"&5463226654&#""&'&5467663266327&&#"66327&&#",[_gSSg_[Bh;xmmxJsAAsJA6q$aaAsVUA+D''D+AU\@mEDn@ja݁hI)Em@d 7%2654&#"'7&&'#5367'7675373#'#5&',5EE55EEIR bb PIQl RIQ bbPIR lF66FF66FIPhQIR mm QIO hRIS mm J3'377''#x>9--99-- QP{y]\yy\]#5 33%!5''##vg JDDJh/cwppwc""C 5254#56]]k\\ODDORDCSzC &546"3zk\\k]]SCDRODDA5&&546632&&#"1@/M-3H3+ +3?P%H7.=#@!6%t373'!<<'!%<Z%"&'573267O#?  &)87iQ9?E }1z/1/u1uAyx3ykP1/}1z/xb3Zkn=m;P< 85 >  24 .) ".:FR^jv"&54632'"&546323"&54632%"&54632!"&54632%"&54632!"&54632%"&54632!"&54632%"&54632"&54632'"&54632+|]ac] -RmmR+}1z/'72d1b~'7QNw_+b'7N!+1/'7&Hd1Hb~'7ANJ_.>'Xc#.u1'73'#8ll8}144\C'73'#@ZZ@h'oo'Tn=".#"'6632327n% \@:% \@=MK7MKfT"&&#"'66323267s#1$_G4$0%_FLDKEP5!(P]]/5!.^^P/< "&'73267,URT((()TQ<[B // B[< "&'73267,VTr rT "&54632,+77++77>1()33)(1d "&54632,(22((22/%%..%%/m; "&546323"&54632#--##--#--##--;."#..#".."#..#".tN "&546323"&54632** ** ** ))* )) ** )) *8'6654&'7 $, bP'?8:ZB5",v'6654&'7 $,]L&?: I1(",w<R "&'73267'"&54632,XYL6.-7LXY ,, ,,<[B$44$B[(!!**!!(x "&'73267'"&54632,QY H 9))9 H[Q ++ ++FC%%%%CFx(! )) !(8 "&54632'2654&#",ACCAACCA8=+*==*+=7~ "&54632'2654&#",3??32@@26--55--675 '7'7NXbGNXb5#,#,y'7'7Ie^AHd^"4"4uA'737l8}}8lA4\\4T'737Z@hh@Zn(TT(n$n63$bB5 '7'7lbXelbX5,#,9y'7'7z^dsz^e4"45 '6632&&#"TQVVQT)(((5B[[B 00M '6632&&#"PRJJRP*""*CFFC""2x"&54676326%.;<B &&22-.F0$ "8.5467W%@'Pb +%8,"5BZ2u'67#"&54632B &&&-;21$ "1-.F85#5353JuuTBGB533#TuuBGB>5#53Al>OG"'6654&'7- % m 2R;(, /15D"p &546"3pZLLZ$ $9//9653533UTUGhhG5#53#UUiFFi 5#53533#UUTUUBGBBGBf53GG  m '6654&'7 ;,"P=g;6(%318 &&5467ZP=g^ :-"8(%31; '6654&'73 ;,.2V&&g;iH " 31 '6654&'73 ;,.2V&&g;iH " 31"&546673326750A%S!!@21 4% / A"&5466733267:1D&Z! #;2. 5& 1 Jg73j$5!#5#Ln܎GGu nDJL%".#"'6632327%=3,\92&=2-\94DC4DD 526548$ $ZLL769//9*53353LnL֎GG 5!'35#nn6Jk '&32366324&#"#54&#"St'  (<8SF OP /6 '7'77'1??1AA1??1A6,89,77,98,7n=fT("&5533267b=2j E:" O0C(5!^^cJ '6632.#"w&gxxg&A??JC?==?C%**;r "&546323"&54632''7########8NN;$$$$$$$$$4 "&546323"&54632''7""####""?_\$##$$##$}'9h:> "&5463277"&54632####;&hM{####H! !! !;r "&546323"&54632''7########dNN;$$$$$$$$u4 "&546323"&54632''7""####""|\_$##$$##$}9o7! "&54632'77"&54632!!!!_Ig#R!!!!H;G ,"&546323"&54632'"&&#"'6632327########E +! @2&!*! @3;$$$$$$$$88'79;9 "&546323"&54632%5!########(;$$$$$$$$EE "&546323"&54632%5!""####"".$##$$##$EE;i "&546323"&54632''737########\0dd0\;$$$$$$$$\,AA,\ "&546323"&54632''737""####""\;^^;\$##$$##$f'II'f6A) '73'#7'7/]t]/f8ON64\\4A,3- '73'#7'7;Z~Z;\,d1'dd'H2V<6) '73'#''7/]t]/fiNS64\\4Aw4/ '73'#''7;Z~Z;\e0a'dd'HM;W6*2'73'#7'6654&'7/]t]/f &RA 464\\4A 2 >*# &)'73'#'6654&'7;Z~Z;\ & S@C'dd'H/ <-!,'6F'73'#7"&&#"'632327/]t]/f<&C N%C 64TT48^&o&o'73'#7"&&#"'6632327;Z~Z;\>(F0*'F0'\\'?Z&96' 96<t "&'73267''7,URK-+,,KQM@]W<[B$44$B[,A "&'73267''7,JRH.%%/HR9H_\FC#''#CFl/9<t "&'73267''7,URK-+,,KQ_tW]<[B$44$B[xA "&'73267''7,JRH.%%/HR[s\_FC#''#CFl9<y "&'73267''6654&'7,URK-+,,KQy 'SCF<[B$44$B[}3 P4+1' "&'73267''6654&'7,JRH.%%/HRj &R@CFC#''#CFm/ =-!,'<E !"&'73267'"&&#"'6632327,NGH%((%HH&K3)% K32  2>'96' 864B'73'#7"&'732674RtR4VA;6!%& 6;4!YY!=^:((:'73'#7"&'732678W~W8\ILG&()%GK'\\'H]<1  1<Pn5!''7(1<P]]y犊K %3!3w>jq33犊,,j!!,,^5!5!Eq퉉^p3!3qdpxxp %!#!!!Ԋ,^^pq ##!#q?pw^p !#!##!J?,qdwpq #!5!5!5!q,ppq ###5!q?pwwp #!5!##5!J?퉣,pv^ 73!!!,,^^ 73333^w^^ 333!qqw^q %!5!5!5!3qJ,,^ %!53333ww^ !533!5!3ԣqvp %!#3!!!Ԋ,,^x^p 3##33^pxwx^p 333##!^,pxwwpq #!5!5!5!3q,,pp 3!##533q퉣pxwwp 3!533##5!qԣ,pxp 5!!#!5!EԊqpq ###5!#qpwwp 5!##!##5!E⣉,J,qw^ !5!3!5!,,qd %!533333ww^ 33!!5335!qJԣqwvp%!#!5!5!5!3!!!Ԋ,,,,^p###533333#qpwwwwp 33!!533##!##5!qJԣ,J,qwvwpq4>33#"9fLEE@i>pMf9>i@ppqq!#4&&##532q>i@EEMf9p@i>9fq##532665q9fMEE@i>pLf9>i@333#".>i@EELf9Xp@i>9fX3# LLX#5L LX#5533 LLLAAAAqq'5!E犊q73q75!犊pqq3pq'!E7!7!pq!p%!5!5!5!J,DDp!333DDpw%!!!!J,DDp%###!DDw,X!X,DpX5!XppX!Xp^pX}!Xp pX,!XpDpX!XpkpX!XppX9!Xp7pX!Xpxp ! pxp!pxpw!wpxp,!,pxp3pxp3pxpK3Kpx,pX!,,px*X #/;GS_kw+7CO[gs4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&8      8      8      8      8      8      8      U      ZU      ZU      ZU      ZU      ZU      ZU      *L* #/;GS_kw+7CO[gs4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&    >    >    >    >    >    >    >   NU   NU   NU   NU   NU   NU   N*:E #/;GS_kw+7CO[gs4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&/""//""//""//""//""//""/G    /""//""//""//""//""//""/G    /""//""//""//""//""//""/G    /""//""//""//""//""//""/G    /""//""//""//""//""//""/G    /""//""//""//""//""//""/G    /""//""//""//""//""//""/G    "//""//""//""//""//""//B   N"//""//""//""//""//""//B   N"//""//""//""//""//""//B   N"//""//""//""//""//""//B   N"//""//""//""//""//""//B   N"//""//""//""//""//""//B   N"//""//""//""//""//""//B   9X5!X9 pX3 Kpxp,,!,pD,pX,!,,pD,,!,,DpX!!,,pxDDpX!!,,,DDDpX!!!XX,DxpX!!!XXp,,X!,,,DpX!!,,,,DDDpX!!!X,,p5-jB'3#57546632&#"3#33"&54632IBB$PC4ZZJ+77++77}m5V4 l !&s>1()33)(1 Z'"&533267%#57546632&#"3#L;  $#BB$PC4ZZ [K#m }m5V4 l !&s>z$#4>55#7#3ϑ"8CC8"op"8CD8"H_?,)4MAB>9 0?@>AB>9 gV 8  A 70A5G:0<8A00<A:89 JA:>@>?8A=K9 A:>@>?8A=K9 A:>@>?8A=K9 A5@1A:89 1:8@8;;8G5A:0O :@0B:0 []70G5@:=CBK9 =>;L [0]B8?>3@0DA:89 45D8A [-]B8?>3@0DA:0O 72574>G:0 [*]70G5@:=CBK9 7=0: 4>;;0@0 [$]B8?>3@0DA:85 70<5AB8B5;8 [-,*]?@>AB>9 0, A:>@>?8A=K9 A5@1A:89 1, ?@>AB>9 g, A:>@>?8A=K9 A00<A:89 J, A:>@>?8A=K9 2 $%&'()*+,-./0123456789:;<=DEFGHIJKLMNOPQRSTUVWXYZ[\]bc     de !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRfSTUVgWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~hjikmlnoqprsutvwxzy{}|      !"#$%&~'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ "      B >@^`_?  !"#$%&'(#)*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !AaC      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-.AmacronAbreve Aringacuteuni01CDAogonekuni1EA0uni1EA2uni1EA4uni1EA6uni1EA8uni1EAAuni1EACuni1EAEuni1EB0uni1EB2uni1EB4uni1EB6AEacuteuni01E2uni0243uni1E06 Ccircumflex CdotaccentDcaronuni1E0Cuni1E0Euni1E10Dcroatuni018AEcaronEmacronEbreve EdotaccentEogonekuni1EB8uni1EBAuni1EBCuni1EBEuni1EC0uni1EC2uni1EC4uni1EC6uni1E16uni01F4 Gcircumflex Gdotaccentuni0122Gcaronuni1E20 uni00470303uni0193 Hcircumflexuni1E26uni1E24uni1E28uni1E2AHbarItildeImacronuni01CFIogonekuni1EC8uni1ECAIbreve Jcircumflexuni0136uni1E32uni1E34LacuteLcaronuni013Buni1E36uni1E38uni1E3ALdotuni1E3Euni1E40uni1E42Nacuteuni01F8Ncaronuni0145uni1E44uni1E46uni1E48Omacron OhungarumlautObreveuni01D1uni01EAuni1ECCuni1ECEuni1ED0uni1ED2uni1ED4uni1ED6uni1ED8Ohornuni1EDAuni1EDCuni1EDEuni1EE0uni1EE2uni1E52 OslashacuteRacuteRcaronuni1E58uni0156uni1E5Auni1E5Cuni1E5ESacute Scircumflexuni1E66uni015Euni0218uni1E60uni1E62uni1E9ETcaronuni0162uni021Auni1E6Cuni1E6ETbarUtildeUmacronUbreveUring Uhungarumlautuni01D3Uogonekuni01D5uni01D7uni01D9uni01DBuni1EE4uni1EE6Uhornuni1EE8uni1EEAuni1EECuni1EEEuni1EF0uni1E7EWgraveWacute Wcircumflex WdieresisYgrave Ycircumflexuni1E8Euni1EF4uni1EF6uni1EF8Zacute Zdotaccentuni1E90uni1E92uni1E94uni018FEngIJuni004C00B7004C uni01320301amacronabreve aringacuteuni01CEaogonekuni1EA1uni1EA3uni1EA5uni1EA7uni1EA9uni1EABuni1EADuni1EAFuni1EB1uni1EB3uni1EB5uni1EB7aeacuteuni01E3uni0180uni1E07 ccircumflex cdotaccentdcaronuni1E0Duni1E0Funi1E11ecaronemacronebreveeogonek edotaccentuni1EB9uni1EBBuni1EBDuni1EBFuni1EC1uni1EC3uni1EC5uni1EC7uni1E17uni01F5 gcircumflex gdotaccentuni0123gcaronuni1E21 uni00670303 hcircumflexuni1E27uni1E25uni1E96uni1E29uni1E2Bhbaritildeimacronuni01D0iogonekuni1EC9uni1ECBibreve jcircumflexuni0137uni1E33uni1E35 kgreenlandiclacutelcaronuni013Cuni1E37uni1E39uni1E3Bldotuni1E3Funi1E41uni1E43nacuteuni01F9ncaronuni0146uni1E45uni1E47uni1E49 napostropheomacron ohungarumlautuni01D2uni01EBuni1ECDuni1ECFuni1ED1uni1ED3uni1ED5uni1ED7uni1ED9obreveuni1E53ohornuni1EDBuni1EDDuni1EDFuni1EE1uni1EE3 oslashacuteracuteuni0157rcaronuni1E59uni1E5Buni1E5Duni1E5Fsacute scircumflexuni1E67uni015Funi0219uni1E61uni1E63longstcaronuni0163uni021Buni1E6Duni1E6Funi1E97tbarutildeumacronubreveuring uhungarumlautuni01D4uogonekuni01D6uni01D8uni01DAuni01DCuni1EE5uni1EE7uhornuni1EE9uni1EEBuni1EEDuni1EEFuni1EF1uni1E7Fwgravewacute wcircumflex wdieresisygrave ycircumflexuni1E8Funi1EF5uni1EF7uni1EF9zacute zdotaccentuni1E91uni1E93uni1E95enguni0237ijuni006C00B7006C uni01330301uni0250uni0252uni0253uni0254uni0255uni0256uni0257uni0258uni0251uni0299uni0259uni025Auni025Buni025Cuni025Euni025Funi0260uni0261uni0262uni0263uni0264uni0265uni0266uni0267uni029Cuni0268uni026Auni029Duni029Euni026Buni026Cuni026Duni026Euni029Funi026Funi0270uni0271uni0272uni0273uni0274uni0275uni0276uni0278uni0279uni027Auni027Buni027Duni027Euni0280uni0281uni0282uni0283uni0284uni0287uni0288uni0289uni028Auni028Buni028Cuni028Duni028Euni028Funi0290uni0291uni0292uni02A4uni02A6uni02A7uni0294uni0295uni02A1uni02A2uni01C2uni0298 uni014A.aa.aagrave.aaacute.a acircumflex.aatilde.a adieresis.a amacron.aabreve.aaring.a aringacute.a uni01CE.a uni1EA1.a uni1EA3.a uni1EA5.a uni1EA7.a uni1EA9.a uni1EAB.a uni1EAD.a uni1EAF.a uni1EB1.a uni1EB3.a uni1EB5.a uni1EB7.a aogonek.ag.a uni01F5.a gcircumflex.agbreve.a gdotaccent.a uni0123.agcaron.a uni1E21.a uni00670303.ai.a dotlessi.aigrave.aiacute.a icircumflex.aitilde.a idieresis.a imacron.a uni01D0.a iogonek.a uni1EC9.a uni1ECB.a uni012D.a uni0268.a iogonek.d iogonek.da uni0268.d uni0268.da uni029D.dl.alacute.alcaron.a uni013C.a uni1E37.a uni1E39.a uni1E3B.alslash.aldot.auni006C00B7006C.a uni026B.a uni026C.aAlphaBetaGammauni0394EpsilonZetaEtaThetaIotaKappaLambdaMuNuXiOmicronPiRhoSigmaTauUpsilonPhiChiPsiuni03A9 Alphatonos EpsilontonosEtatonos Iotatonos Iotadieresis Omicrontonos UpsilontonosUpsilondieresis Omegatonosalphabetagammadeltaepsilonzetaetathetaiotakappalambdauni03BCnuxiomicronrhosigmatauupsilonphichipsiomegauni03C2uni03D0uni03D1uni03D5phi.a alphatonos epsilontonosetatonos iotatonos iotadieresis omicrontonos upsilontonosupsilondieresis omegatonosiotadieresistonosupsilondieresistonosuni03D7uni03D9uni03DBuni03DDuni03E1uni037E anoteleia anoteleia.capuni0374uni0375tonos tonos.cap dieresistonosuni037Auni1FBEuni1FBDuni1FBFuni1FFEuni1FEFuni1FFDuni1FCDuni1FDDuni1FCEuni1FDEuni1FCFuni1FDFuni1FC0uni1FEDuni1FEEuni1FC1 uni1FBD.cap uni1FFE.cap uni1FEF.cap uni1FFD.cap uni1FCD.cap uni1FDD.cap uni1FCE.cap uni1FDE.cap uni1FCF.cap uni1FDF.capuni0410uni0411uni0412uni0413uni0414uni0415uni0416uni0417uni0418uni0419uni041Auni041Buni041Cuni041Duni041Euni041Funi0420uni0421uni0422uni0423uni0424uni0425uni0426uni0427uni0428uni0429uni042Auni042Buni042Cuni042Duni042Euni042Funi0400uni0401uni0402uni0403uni0404uni0405uni0406uni0407uni0408uni0409uni040Auni040Buni040Cuni040Duni040Euni040Funi0462uni0472uni0474uni0490uni0492uni0496uni0498uni049Auni04A0uni04A2uni04AAuni04AEuni04B0uni04B2uni04B6uni04BAuni04C0uni04C1uni04D0uni04D4uni04D6uni04D8uni04E2uni04E6uni04E8uni04EEuni04F2uni0430uni0431uni0432uni0433uni0434uni0435uni0436uni0437uni0438uni0439uni043Auni043Buni043Cuni043Duni043Euni043Funi0440uni0441uni0442uni0443uni0444uni0445uni0446uni0447uni0448uni0449uni044Auni044Buni044Cuni044Duni044Euni044Funi0450uni0451uni0452uni0453uni0454uni0455uni0456uni0457uni0458uni0459uni045Auni045Buni045Cuni045Duni045Euni045Funi0463uni0473uni0475uni0491uni0493uni0497uni0499uni049Buni04A1uni04A3uni04ABuni04AFuni04B1uni04B3uni04B7uni04BBuni04C2uni04CFuni04D1uni04D5uni04D7uni04D9uni04E3uni04E7uni04E9uni04EFuni04F3 uni0430.a uni04D1.a uni0431.srb uni0456.a uni0457.a uni04CF.auni2116zero.aone.a zero.onumone.onumtwo.onum three.onum four.onum five.onumsix.onum seven.onum eight.onum nine.onumzero.bone.bzero.capone.captwo.cap three.capfour.capfive.capsix.cap seven.cap eight.capnine.capzero.cone.c quotereverseduni00ADuni2010 figuredashuni2015uni25E6uni25AAuni25ABuni25B4uni25B5uni25B8uni25B9uni25BEuni25BFuni25C2uni25C3 invbullet filledrect underscoredbluni203Euni203Funi2016 exclamdbluni2047uni2049uni2048uni203Duni2E18uni231Cuni231Duni231Euni231Funi27E6uni27E7uni2E22uni2E23uni2E24uni2E25uni2117uni2120at.case asterisk.ahyphen.a uni00AD.a uni2010.adollar.a zero.supsone.supstwo.sups three.sups four.sups five.supssix.sups seven.sups eight.sups nine.supsparenleft.supsparenright.sups period.sups comma.sups zero.subsone.substwo.subs three.subs four.subs five.subssix.subs seven.subs eight.subs nine.subsparenleft.subsparenright.subs period.subs comma.subs zero.dnomone.dnomtwo.dnom three.dnom four.dnom five.dnomsix.dnom seven.dnom eight.dnom nine.dnomparenleft.dnomparenright.dnom period.dnom comma.dnom zero.numrone.numrtwo.numr three.numr four.numr five.numrsix.numr seven.numr eight.numr nine.numrparenleft.numrparenright.numr period.numr comma.numr ordfeminine.aa.supsb.supsc.supsd.supse.supsf.supsg.supsh.supsi.supsj.supsk.supsl.supsm.supsn.supso.supsp.supsq.supsr.supss.supst.supsu.supsv.supsw.supsx.supsy.supsz.sups egrave.sups eacute.sups eogonek.sups uni0259.sups uni0266.supsuni02E0uni02E4a.supag.supai.supa colon.sups hyphen.sups endash.sups emdash.supsEurouni0192 colonmonetarylirauni20A6pesetauni20A9donguni20B1uni20B2uni20B4uni20B5uni20B9uni20BAuni20AEuni20B8uni20BDuni2215 slash.fraconethird twothirdsuni2155uni2156uni2157uni2158uni2159uni215Auni2150 oneeighth threeeighths fiveeighths seveneighthsuni2151uni2152uni2189uni2219 equivalence revlogicalnot intersection orthogonaluni2032uni2033uni2035uni00B5 integraltp integralbtuni2206uni2126uni2200uni2203uni2237uni2105uni2113 estimateduni2190arrowupuni2192 arrowdownuni2196uni2197uni2198uni2199uni21D0uni21D1uni21D2uni21D3 arrowboth arrowupdn arrowupdnbseuni25CFuni25CBuni25A0uni25A1uni2752uni25C6triagupuni25B3uni25B6uni25B7triagdnuni25BDuni25C0uni25C1triagrttriaglf invcircleuni25C9uni2610uni2611uni2713 musicalnotemusicalnotedblheartclubdiamondspade smileface invsmilefaceuni2764uni2615u1F4A9u1F916u1F512femalemalesunhouseuni02B9uni02BBuni02BCuni02BEuni02BFuni02C1uni02D0uni02D1uni02DEuni02C8uni02C9uni02CAuni02CBuni02CCuni25CCuni0300 uni0300.capuni0340uni0301 uni0301.cap uni0301.guni0302 uni0302.capuni0303 uni0303.capuni0304 uni0304.capuni0305 uni0305.capuni0306 uni0306.c uni0306.cap uni0306.ccapuni0307 uni0307.capuni0308 uni0308.capuni0309 uni0309.capuni0310 uni0310.capuni030A uni030A.capuni030B uni030B.capuni030C uni030C.cap uni030C.auni030F uni030F.capuni0311 uni0311.capuni0312 uni0312.guni0313uni0343uni0318uni0319uni031Auni031Buni031Cuni031Duni031Euni031Funi0320uni0323uni0324uni0325uni0326 uni0326.auni0327 uni0327.capuni0328 uni0328.capuni0329uni032Auni032Cuni032Euni032Funi0330uni0331uni0334uni0339uni033Auni033Buni033Cuni033Duni0342 uni0342.capuni0345uni035Funi0361 uni03080301uni03080301.cap uni03080301.g uni03080300uni03080300.cap uni03080300.g uni03080303 uni03080304uni03080304.cap uni0308030Cuni0308030C.cap uni03020301uni03020301.cap uni03020300uni03020300.cap uni03020309uni03020309.cap uni03020303uni03020303.cap uni03060301uni03060301.cap uni03060300uni03060300.cap uni03060309uni03060309.cap uni03060303uni03060303.cap uni03020306uni03020306.cap uni03040301uni03040301.cap uni030C0307uni030C0307.cap uni03120301 uni03120300 uni03120303 uni03130301 uni03130300 uni03130303uni00A0uni2007 space.frac nbspace.fracuni2500uni2501uni2502uni2503uni2504uni2505uni2506uni2507uni2508uni2509uni250Auni250Buni250Cuni250Duni250Euni250Funi2510uni2511uni2512uni2513uni2514uni2515uni2516uni2517uni2518uni2519uni251Auni251Buni251Cuni251Duni251Euni251Funi2520uni2521uni2522uni2523uni2524uni2525uni2526uni2527uni2528uni2529uni252Auni252Buni252Cuni252Duni252Euni252Funi2530uni2531uni2532uni2533uni2534uni2535uni2536uni2537uni2538uni2539uni253Auni253Buni253Cuni253Duni253Euni253Funi2540uni2541uni2542uni2543uni2544uni2545uni2546uni2547uni2548uni2549uni254Auni254Buni254Cuni254Duni254Euni254Funi2550uni2551uni2552uni2553uni2554uni2555uni2556uni2557uni2558uni2559uni255Auni255Buni255Cuni255Duni255Euni255Funi2560uni2561uni2562uni2563uni2564uni2565uni2566uni2567uni2568uni2569uni256Auni256Buni256Cuni256Duni256Euni256Funi2570uni2571uni2572uni2573uni2574uni2575uni2576uni2577uni2578uni2579uni257Auni257Buni257Cuni257Duni257Euni257Funi2580uni2581uni2582uni2583uni2584uni2585uni2586uni2587uni2588uni2589uni258Auni258Buni258Cuni258Duni258Euni258Funi2590uni2591uni2592uni2593uni2594uni2595uni2596uni2597uni2598uni2599uni259Auni259Buni259Cuni259Duni259Euni259Funi202FuniFEFFu1F3B5u1F3B6f_if_luniE0A0uniE0A1uniE0A2uniE0B0uniE0B1uniE0B2uniE0B3ideoromnDFLTcyrlgreklatn V t  !!""#')13577::==@@MM[[^^eevv    $$**00??BBQQUU\\aassww    ##&&56;;?@HHLNQRYY\^bbddffllnnqquu  $%'-0146KLeeEHn#11BDHn (DFLTcyrl.grekXlatnl SRB  ! " #ATH &NSM 6SKS F $ %&'(ccmpccmpccmpccmp ccmpccmpccmp"ccmp*frac2frac8frac>fracDfracJfracPfracVfrac\markbmarkvmarkmarkmarkmarkmarkmarkmkmkmkmkmkmkmkmkmkmkmkmk mkmk&mkmk,size2size6size:size>sizeBsizeFsizeJsizeN                 d&.8BJT\dlt|vxzh z   `  P  t     8   & ^ ^ \ |  ZSx~xxxxxxxxxrrr x&,xxx2xx8rr8 >DJPV\bhnrrtzzrr rrrrh88xxxxxx  rx"(x.x4"x.x&x:@FrrrrLRrXrhr,,aCMJHB@1-?@VY;C4`8(H)vY>"T6R%'r*Pf3d)J ,.9EEEGBL$>F4OD\& Z `   , D L hh.djpv|^^^^^  ^,WBO1@V'b>7w6NMx jZZZZZZZZZZZZZZZZZZZZZZZ} &,28>DJPV\Vbhntz&VbnzhDDV2Jbn ""(.4:@FLRX^2V       >d,U*DCEO@0-86T4%Y3o2333q9 37L".D3h<3(*3B,$I33o3n3N 3W343-3633Vyq3$RK3  ,ZoJo ",z HHDJ>>>>PV>\bDDDJ>hPPPnV>JJJJtt>,`!6L2 ZShnhhnhhnhnhnhnhhnnhnhnhnhnhnhnhnhnhnhhhhhhhnhnhhnhhhnhnhnhnhnhnhnhnhnhnhnhnhnhhhhhh &&,28822>DJP,,,,,,,,#,,GF,!#$%&'/(a #"%+,4 hjFGE JJJMMKinLR# 11(BD)Hn, !#$%&')*+,-./01345@M[e QUaw    56?@HLMNQRY\]^bdflnqu $%'()*+,-01456KLe&23. !#$')*-./035MU?@LRY\]$%(06< >AEE} !#$%&')*+,-./01345M[Ua    6?@LQRY\]^du= 'R'*45 $*047:=^ *Us #&?@     DFLTcyrlfgreklatnR! (08@HPX`hpx SRB T" !)19AIQYaiqy" "*2:BJRZbjrz" #+3;CKS[cks{ATH ^NSM SKS ! $,4<DLT\dlt| ! %-5=EMU]emu} "&.6>FNV^fnv~ "'/7?GOW_gow  casePcaseVcase\casebcasehcasencasetcasezccmpccmpccmpccmpccmpccmpccmpccmpcv01cv01cv01cv01cv01cv01cv01cv01cv02 cv02&cv02,cv022cv028cv02>cv02Dcv02Jcv04Pcv04Vcv04\cv04bcv04hcv04ncv04tcv04zcv06cv06cv06cv06cv06cv06cv06cv06cv07cv07cv07cv07cv07cv07cv07cv07cv08cv08cv08cv08cv08cv08cv08cv08 cv09cv09cv09cv09"cv09(cv09.cv094cv09:cv10@cv10Fcv10Lcv10Rcv10Xcv10^cv10dcv10jcv11pcv11vcv11|cv11cv11cv11cv11cv11cv12cv12cv12cv12cv12cv12cv12cv12cv14cv14cv14cv14cv14cv14cv14cv14cv15 cv15 cv15 cv15 cv15 cv15 cv15 $cv15 *cv16 0cv16 6cv16 ss06 Dss06 Jss07 Pss07 Vss07 \ss07 bss07 hss07 nss07 tss07 zsubs subs subs subs subs subs subs subs sups sups sups sups sups sups sups sups zerozerozero zerozerozerozero$zero*        @:4.(" ~xrltnhb\VPJRLF@:4.(0*$ ~ztnhb\                                  ~tj`VPJD>82,&$              $JRZbjr~&.6>FNV^fn,*0.,z 2<x Vh!#L  &,28>DJP  ** U!!":d $USYc W $][a_aC$*06<KMHJNOQNC &,jjiikkC &,mmllnnC,6@JT`jt~@4e4v4 44 4$04 B?2Q4'\w44;2*v"d" !$%"#    ###)*+,-./0123456789:;<=>?@ABCDEFGrMNOP N R9  35CILPRTVXZ\^`bdfP !"#$%&'(5)*+,-./01234ef'J: 6789:;<=>K6 ?RABCDEFGHIJK@STUVWXYZ[L\]NPhijL4444 8C<<< < @ M4N4*(UMOQNP  35CILPRTVXZ\^`bdf(q    r "   _b+.qtA_+q b.tA$4   CHKOQSUWY[]_ace?$%QHL !#  "$'*/06 6Y[[>]x?zz[|\^~!   24CHKOQSUWY[]_ace!  35CILPRTVXZ\^`bdfmv  !o hj% qr5)*00mv9mnopqrstuvxyz{|}~   24CHKOQSUWY[]_ace\\&&))"";B//  $'JKLMNOPQRSTU[\]^_`abMO@A[1myRnnz$?($%QHL   24CHKOQSUWY[]_ace%ooPK!՞ww(template/darkfish/fonts/Lato-Regular.ttfnu[ DSIGwGPOS,KGSUBV.TLOS/2ٮiM`cmapRԟNPcvt 'm`8fpgm zAm gaspmXglyf*~ʙS8Bheade|6hhea$hmtx[`TkernlBjT,lloca.V,maxp< X< name $X\^post:]iprepx9w, 0JDFLTlatnkernkernJnv$R ^ h B l  & rjZjL*|DV: !.!##L#$4$~%&J'$'()*+f+,6,-.(./t//0:0|2"233T334&4l455b566L667B778889d99:&::;@<=>j?,?@hABCzDEFG*GHfIK JNJ#$J&*2490:0<?0DFGHRTmNoNyN}NJJJJJJJJNNNNNJK JNJ#$J&*2490:0<?0DFGHRTmNoNyN}NJJJJJJJJNNNNNJ"#&*24FGHRTK JNJ#$J&*2490:0<?0DFGHRTmNoNyN}NJJJJJJJJNNNNNJ-  x#&*247L9L:?DEHIKNPQRSUYZ[\^lmoprtuy{|} 8DFLTlatncase&case,liga2liga8sups>supsD,>B      @ LO,{tu CjqvIxxxP`KtyPL@Jz  &   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ardeixpkvjsgwl|cnm}byqz`T@ ~1DS[a~    " & 0 : D !"!&"""""""+"H"`"e%&i 1ARZ`x    & 0 9 D !"!&"""""""+"H"`"d%&i{uq[H$I޸ޡޞ:ڜ`T@ ~1DS[a~    " & 0 : D !"!&"""""""+"H"`"e%&i 1ARZ`x    & 0 9 D !"!&"""""""+"H"`"d%&i{uq[H$I޸ޡޞ:ڜ-%59=J@GBhf[[ Q CQ D=<($#*$ +>32#'&>54&#"#"'4632#"&!!7!!9DO.?gI)-60#z -70 I9)8(  c>0((0>22cu&#@[87P;+&%iu"3+(.:(3</@)(?g6, !&@#Q CSD +#.54>32#". y +!..""..!-VW[44[WV-<."".-""- ,@) BQ D   $+#"&/!#"&/3ޛ ## "ޛ ## "6Q>BH@E  Y  C Q C DBA@?>>86530/*(##!#!+#"&5467#+#"&546?3#7>;>;3323+32%3#TQ GG-OUA $'H+PTTO!I %&A AY"Z% 9FJf"ZK 9Fj$g8CN~@J( I>) ? 4BK PX@$hfSCSD@$hfSCSDY#&#&+.'7>32.54>?>;#".'+4.'>yH50FaD%FkA9mh Bi<+):L1!HpE324.#"32>>;+#".54>324.#"32>4Wt?DsV00VsDCuU11A%%A00A%%A1  54Ws?DsV00VsDCtV01A%%A00A%%A1?T[00[TV\00\VB\;;\BA[99[w RT[00[TV\00\VB]::]BAZ99ZRx?K@8IH+%BKPX@*hSCS CS D@(hSCS CSDY@FD/-(&"  ??+2#"&'.#">7>;#"&/#".54>7.54>3267O_7o 1E.2P9"6&&-nFB,$^PyJ/SrD=:5d0Nd4pDYjk3To<8. 9M-#@AE&]CJsa[j6g]F}jTMNI_7AcD#RD93 @ BQ D $+#"&/3ޛ ## " (+.54>7!nh OKiAAiKO  imum 0szyt1lJ (+4'&546?'.54676*mi  OKiAAiKO hnu1tyzs0 `_0J@-)($  BKPX@ QD@MQEY@ 00+5467'767./7.=3>?'.'b!,$%#,# X ,!!, _"cKd eKd %) cKd  eKd !'d" ,@)MYQE +!!#!5!ikUR^P@?S D$+74>32'&547>7#".^,/0G-    *{)'3-a_Z&   %0:!!-d R@MQE+!!dXQ@SD($+74>32#".X!..""..!n."".-""- @kD#"++>;7KY 0!K#" "<L'@SCSD((($+#".54>324.#"32>LQmnPPnmQ7]zBBz\77\zBBz]7̼XXXX켤߈;;ߤވ;;*@' Bh CR D&+%!47#"&/3!!4  8,- Mqh$3;@8/ BhSCQ D,*$" 33+2>3!2!5467>54.#"#"&/>Y[sB0Rk<(R&"D9^C$(F^66\G1   ]P{6g^P}u=~ "l=(:klo??_> 9N/bf5l.JU@RF Bhh[SCSDCA;910/.&$JJ +2#".'763232>54.#5>54.#"#"&/>l[o>#A\9KcrpHL(DeKKqK&Qp[R%'D]66\G0   ]P{4`SDkQ8%co;9dP  I@,1N`/:`F(&B\8>\< 9O.bf5(`&@#B[ C D!#+3+#!"&/3467!fy[< ;l.@@=,+Bh[Q CSD(#&(""+#!632#".'763232>54.#"'!09>Bp_pt;Pm?tdV!63HaCKxU.'OvO6t>ptK&1Bt]rF*6L&0Y|MClL*!l2.2@/B[ CSD+)! +2#".5467>;>32>54.#"VtDHml|CT[k2 3|(MoGHtS-,PpCHtQ+n9mfc~HEp^z#'LErR-.RpBFqO*1Smn<@Q C D$'++>7!"&=< .'Z P",S%*y`&3GD@AB[SCSD54! ?=4G5G+) 3!3 +".5467.54>32'2>54.#"2>54.#"CkFqs>rbar>tpGkFoM)1Sl;;lS1)MoFFc>!Aa@@aA!>c9j^&*tOf::fOt*&^j9'Gc32+>74.#"32>%QnAF~hgxA,=' 0&7+Li?BmM*'IiAHoL(L6ic^zFDzg>oji8;4,.CmL)+Lj?DkJ&/Nfy';K$PX@SCSD@[SDY((($+74>32#".4>32#".!..""..!!..""..!n."".-""- ."".-""-y2D?K$PX@SCS D@[S DY@ /-%#$+74>32'&547>7#".4>32#".,/0G-    *!..""..!{)'3-a_Z&   %0:!!-."".-""-W(+?--  !@YMQE+!!!![[>ևW(+75467%>7.'%.=++?  oJ"(<9@6BhfSCSD(&#-$+>32#'54>54.#"#"'4>32#"."KYg3232>54.#"3267632#"$&54>32%2>7&#"Nb :N54&#%!2>54&#!Ʉ{;!CeDCx6SwM$RxO&4`W5bTB[l; &E_9o$@[6~vZ .D@ABhfSCSD)'..+2#".546$32#".#"32>76 LXbi Y? (6Jb@sMMi@fWK&( SfrkkbTY  O҂ґL 1" @S CS D!(!$+#!!24.#!!2>ffHsUsH̡ggАLL! .@+YQ CQ D +!!!!!!P-$! (@%YQ C D +!!!#!PL Z@4K@H! Bh[SCSD,*%# 44+%2>7#"&=!#"$&546$32#"'.#"-:aVL&6uYigU}j.7>YySyĊJM <n':'kj/C*X (%OтՔN8 @Y C D+!#!#3!38t@ C D+!#3<QKPXBBYKPX@ CSD@h CSDY!&$+#"'>7>3232>53;smai<2BgG%xF9(TZ:"&@# B[ C D)(% +3267>;#".'.+#3I&-) %*: !X% $Y  9  p@ CR D+%!!3pl£#%@"Bh C D!6)+>7>;#467+"'#32o  --  53q g0--2 8@ C D!+2.53#"&'#3>bd 1g70\'@SCSD((($+#"$&546$324.#"32>ffffHtsHHstH̡kk  llґNN҄ёMM*@'[S C D !+#!2#'32>54&+ɄAFȁSV,?tedxC,OnB\$0s BK PX@kSCSDKPX@SCSCD@kSCSDYY(((%&+#"&'#"$&546$324.#"32>)NpFp$89{CfffHtsHHstHe/sk  llґNN҄ёMM#2@/B[S C D#!,!+#!2#"'.#'32>54&+Ɓ>0[S$5((UW,V7h[LiJ())Kh?:==@:=BhfSCSD;9(&#!#"+#".#"#"&'7>3232>54.54>32 -EaEAdC";a{{a;@{rQ86QsSElK(;`{{`;;pkxJ")"#53#".53Ya3OԄԔO3a7>;#  " "P++P"g( @#B C D+< +32>7>;2>7>;#&'#"(  Q#8!O )#A  >""?4C!<gE)%@B C D("(!+ 3267>; #"&'+'va %   PY@ B C D,"+#32>7>; H G ::_#>>"-V $@!Q CQ D +!!547!52,H"Lv '@$[OQE !#+!+32pFF @kD# +32#"&'L!0 YK8 " '"#Z !@[OQE!"+46;#"&=!!Zp3F@ Bk D+!+3#"&'.'+sf z`+,+[@MQE+!5xx& @kD  +2#"&'! f \z)9}@ !/BKPX@'h[SCS D@+h[SC CSDY@+*10*9+9%##' +!#"&/#".54>754&#"#"&/>322>75zO (LT_:;gL-BecAYA/ TvUZ.2/NE?{l1,<^$9'!BeE32#"&'#"32654.?iXd632#".54>32E#6M8JrM'*LmDAT8$ 2Bn_xE?ysj?A 5dX\a3&AQKF|qNE?H%p@ BK"PX@CSCS D@!CSC CSDY@%%+!"/#".54>323%267.#"[& AlWd632#".54>"!4.#[p?^0TtHCaF/ 2!\ip7iHAzr'"B_=sl*`_/$A(;&GʃjM>gK)]@ BK2PX@SCQC D@YSC DY@ 4%+3'.=354>32+"!!p1[PD: .K6%] IbW]0Y6XA]29M]@2A*BKPX@, [[CS CSD@/h [[S CSDY@ONWUN]O]JH@>#!99 +2!#"'#".5467.54>7.54>4.'32>2>54&#"Bs/*s"9eSG? !:`zz`:Azoon7_S+3!0 KU9f*H^hl19G#HmJHrO*6S8qlkq8RB! APJyV..$% 2XFAz_9,Ja5KiC8/.**]JyU.&. N6";+0BN6K-]nn]-K6-@*BCSC D##+33>32#4&#"AgSU,ilO:ES7eV{sLAGK PX@SCC D@SCC DY@  +##".54>32X#.-##-.# >-##-/##/(Y BK PX@SCCSD@SCCSDY@%#U%+#"&'7>323265#".54>32X EmL!6 NB#.-##-.#=iN- ` IQ@>-##-/##/0@-B[CC D%(%!+3267>;#"&'.+#K.@ 2 Ws   X@C D+#X?*V) BKPX@SC D@CSC DY@**##&$! +332>32>32#4&#"#4&#"j& 8\gEVa2P}W.hc,O<#b^Bq/%hEXra7P43b\{w{<[<{zxG= LBKPX@SC D@CSC DY@ #$!+332>32#4&#"j& BkSU,ilO:%nIZ7eV{sLAH#NK PX@SCSD@SCSDY@## +2#".54>2654&#",o}CC}oo~DD~oLpK%%KpJwxIIxwJxɴ4bZZa4%@ BK PX@SCSCDKPX@SCSCD@!CSCSCDYY@%%($!+32>32#"&'"32654.j& AmWd69@PIB6ʻc[*H%KPX@ B@ BYK PX@SCSCDKPX@SCSCD@!CSCSCDYY@%%(#+##".54>32763267.#"Ų@iWd632#"&#"f 4g*D:4]}*jwlg{><=@:<BhfSCSD:8'%" #!+#".#"#"&'7>3232>54.54>32 &7L4-H3-J^c^J-2b]j<*(9Q=4N4-J_c_J-0\Vd:N(5'4&!([A:kQ0?7,>!t@ BK2PX@$jhQCTD@"jh[TDY@ !!+"&5#"&=7>;!!32>32xz)Z">1) 4.~lG9@>U+1zLBKPX@CS D@C CSDY@ $!#+32673#"/#".5,jkN:j& BjSV+zs~JB %mIY7dV@BC D, +32>7>;#ct$H##H$ . @'BC D*!,< +32>7>;2>7>;#"'.'+ M      t$C""C$p#D!!H "/0R"@BC D("(!+ 3267>; #"&'+  c  @@BCD,""++32>7>; ^  ,,}FU@QCQ D+!!5467!5!U ) '#&J #ߌ,@3@0$B[[OSG86303++4춮.54>;+";2#".54>FCCF)S{R5 MY)7!!7)YM 5R{S)?QkP@2bbd4EtT.OeV8hcb2&A3% %4@%2bch8WdP/TtE4ccbp@QD+3#把X,@5@2B[[OSG?>=<1/,)3)++546;2654.54>7.54>54&+"&=323"*R{R5 MY)7!!7)YM 5R{R*FCCF2bcc4EtT/PdW8hcb2%@4% %3A&2bch8VeO.TtE4dbb2@PkQt9@6jkO[SG +2673#".#"#4>32AI%Ef@4f_V$AI%EeA4f_VeUFCpP, '!TGCpP-!'! !&@#SCQD +4>734>32#". y "--""--"-UW\44\WU--""-.""..7@ 32&*BK PX@)jhfTCSDK PX@)jhfTCSD@)jhfTCSDYY@ ##'#+.54>?>;#".'>32+1\q?B~w BR6. !-?*4?U;& 0 " ?HJ9c4[>@@=7+Bh[SCS D%&#&'%" +46;4>32#"&'.#"!#!>3!#!5>5#4 6nnNy^EH   )3B-?`@ {929 <">0$^{G'DZ4. /#*NnDHKm-Ls "3E.!`#7?@< !B @ ?WSD42*((+467'7>327'#"&''7.732>54.#"![,h:9f+Y"![,h99e,Y"#>Q//S=$$=S//Q>#9e,Z"![,g:9f+\"![,g:.Q=$$=Q./R>##>R,S"8@5 B Z Y C D"! ,! +!32>7>;!!!!#!5!5!2h !g3TTq(#:;"6fig;gip@YQD+3#3#把rHZA@>HXN=#BhfWSDFD-+(&!#!+#".#"#"&'7>3232>54.5467.54>32>54.'1 &7L40M51OfifO1NT1>2a\j<)(:U?2O62RhnhR2V]2?0\Vd:Fm>604FOT(B6*8&9/+.7G\=Q&%bEFwW2E6D #->&-B3*,3F]@N}#&iK:kP0>73G95K/$8.&##IV{'3K PX@ S D@OSGY((($+#".54>32#".54>32 )(() g)))) ((**((**D.Jb@ BK PX@4hf[[ SCSD@4hf[[ SCSDY@ _],,*(#%(%" +>32#".54>32#".#"32>4>32#".732>54.#"  =9tbs?Ezbl9. 2L;FqO++Lj>0B0%R4_ee_44_ee_4d,RrXc-RsXb@BIDzdeyCD7A -TxKMyR+  e`44`ed`44`eYtS-dYvS.e\?T)5E@B!-Bh[WSD+*/.*5+5%##' +#"&/#".54>754&#"#"&/>322675T< .28"&A0&Xk:9&2%4yI6T:3J$Fa<4H 1  )<)"C5#%?< *1."BK PX@/h  [ [SCSD@/h  [ [SCSDY@44VTLJ4I4H)!*,,& +4>32#".732>54.#"#!2#"'.#'32>54.+D4_ee_44_ee_4d,RrXc-RsXb kj ! Pt7M/+F4e`44`ed`44`eYtS-dYvS.e|}z^ . r(:&%8$RD@MQE+!!>DuF''@WSD((($+4>32#".732>54.#"F2XwEEwX22XwEEwX26I**H66H**I6hCvW22WvCBuW33WuA*I66I**J77JdP" 7@4YYMQE  +!!#!5!!!ikkBpx%RQe-9@6+ Bh[SD(&"  --+2>;2!546?>54&#"#"&/>Z4U:M+  455370* jjT|Re=S@P9Bhh[[SD640.*)('== +2#".'763232>54.#5>54&#"#"&/>b3R; wBE*E[09T=+7 + / 'A/WG:009  C,ATe3D(-N>7T91H/ (+W<424/( 5O5U @kD #++7>3Uj!  z3@0BCS CD&$!#+32673#"/#"&'#"&5,liN:j& CWJp'Y&)nmxJB %mHD3.*W&($*7*@'hiS D+##!#".54>3۝hu??uh77]=iQVe8|@OSG($+4>32#".|)68((86)Q8((86))6 KPX@  B@  BYK PX@^TDKPX@jTD@jjTDYY@+232654.'73#"&'76 *+)<&+pZQ 9P0)J ! PE6 3$7xD_O BK$PX@jjQD@jjMRFY$+37#"/733!k  'li+X 8zUH<)@&WSD +2#".54>2654&#"~FqP,,PqFGrQ,,QrGTSSTWSS+PsGHtQ++QtHGsP+iddhhddi %%(+7'&54767&'&54?%'&54767&'&54?:   :(:   :   {{   f| &0O@L$ Bh  Z [  CS  D0.+)&% $!# +3+#5!"&/3%37#"/733!4673+>;m Rm V|k  'li,L2. M A  9;+X 8zU,\ f]-=Ge@b710+ Bhh  Z [  CS  DGEB@=<;:9853/.(&"  -- +2>;2!546?>54&#"#"&/>%37#"/733!+>;f4U:M+  455370* jj3+X 8zUv\ D}NT^x@uJ  %RB h  h  [[ \ S CS D^\YWTSGEA?;:980.)'!NN!#+3+#5!"&/32#".'763232>54.#5>54&#"#"&/>4673+>;m Rm V|B3R; wBE*E[09T=+7 + / 'A/WG:009  C,AT,L2. M A  93D(-N>7T91H/ (+W<424/( 5O5\,\ ,)=9@6BhfSCTD('#-$+#".54>?332>324>32#".KXh2/ IB@:> IBYK PX@0hfSCSC SDK PX@0hfSCSC SDKPX@0hfSCSC SD@7hf hSCSCSDYYY@GE=<861/'% KK +232654.'7.546$32#".#"32>7632#"&'76 *+)<&$Vi Y? (6Jb@sMMi@fWK& LSZQ 9P0)J ! v ukbTY  O҂ґL 1" Sap7E6 3$7!&( 7!&( 7!&( B!&( B&, &, {&, x&, 2!,@)YS CS D!%(!+3!2#!#%4.#!!!!2>2ffHt}UtH gg2АLrL8&1\&2 \&2 \&2 \&2\&2 ~X  (+  ' 7 b__d_YX`b`dY`X\!-8h@21&%BKPX@kCSCSD@jkSCSDY)*%(%$+#"&'+&546$327>;.#"4&'32>flOd:Np{fsSR dgpAKE54&+ɄAFȁSV,?tedxC,OnBvHwKPXBBYKPX@hSCSD@#hSC CSDY@CB=;%# HH+2#"&'7>3232>54.54>54.#"#4>gb/+@K@+5P]P59dOa<)(7K5,F18TbT8-CNC-8Y?DoO+E<]n332#"&'#".54>754&#"#"&/>32>32>5"!4.Rg;.MiAE\=&/!Wcj4u7Wjw;ErS-BecAYA/ Tqx!6{l1dQ9cI*=`E)X8#FjH32#".#"32>32#"&'76 *+)<&%Sf:?ysj?/#6M8JrM'*LmDAT8$ 2;aZQ 9P0)J ! y OqqNE?@ 5dX\a3& AHJ:E6 3$7J&HCJ&HvJ&HJ{&Hj&C(&v6&){&jL4H6@3:0B43@[SD65@>5H6H.,$"+.54?.'.54?7#".54>32.'2>7.#"g-e9`Q#a{xb}H>thdAu^_GsQ.4Kc>KqL'.Pi) H"><0z9 C1|nVB{p^~JVW@6mo+Q?%2WwDQV-&QH&RCH&RvH&RH&RH{&Rjd"++@([YOSG(((%+!!4>32#".4>32#".dBb!--""--!!--""--!."".-""-S."".-""-@-I!+5t@43%$ BAK PX@ jkSCSD@ jkSCSDY@ -,,5-5%%(%'+#"&'+7.54>327>;&#"2>54'=BC}oL67;CBFD~oO8D Z;IoLtO(7KsO(4OFtDvxI" JE|wJ&#[aN86d$5dZ`0z&XCz&Xvz&Xz{&Xj&\v#q@ BK PX@!CSCSCD@!CSCSCDY@##(#+3>32#"&'"32654.?iWd6!&'d ]3XeO< }"==%*"1* ?  BOB:e&Zg '/&+ G6Q)E\CS@;I BKPX@1h  [SC SCSD@8hh  [SC SCSDY@EDKJDSES%##.%#' +!32>32#"&54>7&/#".54>754&#"#"&/>322>75z*"1*  ]3Xe'5 (LT_:;gL-BecAYA/ TvUZ.2/NE?{l1,< '/&+ BOB83- ^$9'!BeE ]3XeO=A@=E>E97+)&$  << +2#"&5467.54>32#!32>3232>"!4. ]3XeB4g~FAzn[p?^0TtHCaF/ 22R'!1* '"B_BOB5]%HȁjM=sl*`_/$AgK)X@C D+#X ,#@  B CR D+%!!54?3lһ%ā"*_ V6K#@  BC D+7#54? MfCLi D8&1 &Qv\'02@  BKPX@"YS C S DK"PX@,YSCQ  C S DK,PX@6YSCQ  C Q C SDK0PX@4YSCQ  C Q C SD@2YSCQ  CQ C SDYYYY@-+#!(# +!!!!!5#".54>3254.#"32>'P-T\\ꎡT@whhxAAxhhw@$xk  ly3ӔOOӄӓNNHu0@K@ . BK PX@,h  [ S C SD@,h  [ S C SDY@$BA21GFAKBK:81@2@,*"  00+2#!32>32#"&'#".54>32>2654.#""!4.Rg;.MiA=Y@- 3!Wcj4w76du@@wf52"DhEGhE"e=`E*&Vv:&6>&V&< DV&= NFU&]vV&=XFU&]V&=XFU&]j#6@3 BYSCTD###"+#5432>7'.=37>3#"!Y<-Q?,Y.Q@- B&͹^9:\DIƿb:]Dd @Bk D' +#"/+3dw {ߦ~~ d@Bk D+ +32>?>;#{   wߦ }  } RDq D @W D +".5332>532MhA~"9++9"~Ai+Ib7!9((9!7bI+@SD($+#".54>32#.-""-.#:-""-/##/jk=KPX@WSD@[OSGY$&($+4>32#".732654&#"j 7H()I8 8I)(H7 d6/-77-/6#*D22D*)D00D),88,-88 YKPX@ B@@ B@YKPX@ SD@jSDY@ +2#"&54>732> ]3Xe+;"\*"1* BOB;6/ '/&+ YQK.PX@WS D@O[SGY@ +2673#".#"#4>32$'l/A(#=60Ho0B'#=6/-*,/O8"X0O9"^ #@ SD   #++7>3!+7>3 J !!V!  0!YBK(PX@SCS D@SC CSDY@! 6##++#!#"&'7>3265#54>3sy"BB9 H$rw K >B|@   @MQE+!!  @MQE+!!2:'(+.5467rYP7 0a0ZE"  ,16 D&  ZF(+'.547>54&'&547YO7 0`0[E"  -16 D&  ZF(+%'.547>54&'&547YO7 0`0[E"  -16 D&  :W1(+.5467.5467rYP7 YP7 0a0ZE"  ,16 D&  ,0a0ZE"  ,16 D&  Zv1(+'.547>54&'&547%'.547>54&'&547YO7 YO7 0`0[E"  -16 D&  ,0`0[E"  -16 D&  Zv1(+%'.547>54&'&547%'.547>54&'&547YO7 YO7 0`0[E"  -16 D&  ,0`0[E"  -16 D&  v3@0 BCSCD#$&"+4632632>72!#"'!v)+"LPP'(57&NE,(x&75(w0 0<` v/G@D %$ B[C SCD/.$$#$&" +4632632>72!!#.'#"'"&=!!v)+"LPP'(57&NE,(x(,EN&75(NE+)w0 0<<00<X,KPX@ SD@OSGY($+4>32#".;dLMe;;eMLd;SMe;;eMMd;;dXV';@SD((((($+74>32#".%4>32#".%4>32#".X!..""..!!..""..!!..""..!n."".-""-."".-""-."".-""-H'1EYmKPX@+[   [SC  S  DK"PX@/[   [SC C  S D@3[   [ CSC C  S DYY@~|trjh`^VT((%#&((($+#".54>324.#"32>>;+#".54>324.#"32>%#".54>324.#"32>4Wt?DsV00VsDCuU11A%%A00A%%A1  54Ws?DsV00VsDCtV01A%%A00A%%A1h4Wt?DsV00VsDCuU11A%%A00A%%A1?T[00[TV\00\VB\;;\BA[99[}  RT[00[TV\00\VB]::]BAZ99ZAT[00[TV\00\VB]::]BAZ99Z(+5:  :   (+'&54767&'&54?:   :{   D# @ C D#"+'+>;,L2. M5\ "rG[@X 5 Bh  h [   [SC S  DGF@?>=9720"###%$+3>32#".#"!#!!#!32>32#".'#53&45467#"_lF=%>aK #j6R<+   KFЏtW~ˏLdXD &.&7(8 % FfqOӃf)@I)&C@@BhS  CS  D&&!4) +>7>;#7+"'#32'###5  jn  nj ~U/ mKMHP iiV~71@.1BSCS D76***+!>54.#"!"&=!5.54>32!#DQc7E{dd{E7bQ$`l;cc;m`$Ag]km88mk]gAJ#d`e֚VVրe`d#\2*>C@@0Bh[SCSD,+64+>,>#'(($+>32#".54>32>54&#"#"&'2>7.#"\'INV3Zh9IݔVh:Lph0|*G8*  xBw`G &>W:TX- mWAfF%b @ B CR D+3!%!.'`SM   g:"";> $@!Q CD +##!##5 WWT&@#BQ CQD+!!!!5467 .5Te=Q u ;4;A  \@MQE+!!\."@ Bj[ D,# +#"&=!2>7>;#)O  s֕!)9e D"8GP: ';OL@IK-B[  O  SG=<)(GE32>32%2>7.#"!2>54.#"8[MAAL\7>qU22Uq>7\LAAM[8>pV22VpO$>7227>$$?00?$?//?$$>8228>";L**L;"0Y|LL|X1";L**L;"1X|LL|Y05E''E4/H00H//H00H/4E''E5\#(@%BSCSD6''"+>32#"#"&'7>32>7v&E do AcK#J   :W=%CV  mvf_- L ;]B~7@0!/"BK PX@+[[ O[ SGKPX@$[[ WSD@+[[ O[ SGYY@42+)&$77  +2>7#".#"'>322>7#".#"'>326." #p=4ge_-8." #qB5hd_-6." #p=4ge_-8." #qB5hd_Z r/.!(!  m31!)!  q0.!)! m31!(!~kK PX@)^_ ZMQE@'jk ZMQEY@  +!733!!!#7!5!7!rr_2wwK_VȇP!@@MQE+!!G.32yz   z{ P!@ @MQE+5467%67.'%.=!5!)81GJz   z"@ BMQE+3 #>7 &'|z|  54&&EF+#&@CD+3#!a@ BK2PX@SCQC D@YSC DY@!!U%+3'.=354>32#"&#"!#!p:ts&O dT] I8]p> ] 3`BK&PX@SCQC DK2PX@"CSCQC D@ YCSC DYY@A!% +3'.=354>32;#.#"!!p4hhSHd6m(] I6TpB Y*6 @SD  +2+h  >1P 2H4  @ja  +2#"&'% Ӌ  v'@OSG((($+#".54>32#".54>32)'')((((''))''))D'"@MQE+!!D"j  @ja #++7>3    x@Bja* +#"&/&'+73x     __ x@ Bja,!+#'32>?>;     ^^J (@%jOSG   +"&53326533sNVVNssr;==;i|@OSG($+#".54>32"-,!!,-",!!,,"",v-!@[OSG$&($+4>32#".732654&#"v3D&'E55E'&D3Y6/-77-/6{'B//B'&@..@&+99+-88V1@.O[SG +2673#".#"#4>32#%b*>(#@;4"%d+?'#@:4)%+H5+$+I4N  +@(OSG   #++7>3!+7>3V&!`(   | @SD  +2+   >9 !;ZBGC_<ʓ^pӡD- V DC'-6j$H~RXXJ `d^dX<hl(lln`"lVP ZZlZfx<R0<\<\$:PVXXZf&\^J^HJ2XjXXHP^H&d>,XzFX,XXXt4,Xrf<D\d<DfFdRTfXz:*"|fxHffD,P P P P P P BZZffff*2<\<\<\<\<\~<\\\\\\\`\JJJJJRLXXHXHXHXHXHdX@XzXzXzXzPP \ZZJJ>,6X\HH:d>$:d>VFVFVFjffff ffjfff^0Xj:ZZ:ZZvvX HxxfD"@V\pX>XTz.X: tffffDffffffvffNfl#`  JNJ#$J&*2490:0<?0DFGHRTmNoNyN}NJJJJJJJJNNNNNJ J  N  J # $J & * 2 4 90 :0 < ?0 D F G H R T mN oN yN }N J J J J J J J  J  N N   N N N J # & * 2 4 F G H R T J  N  J # $J & * 2 4 90 :0 < ?0 D F G H R T mN oN yN }N J J J J J J J  J  N N   N N N J  x#&*247L9L:#>&>*>2>4>F>G>H>R>T>>>>>>>>>>>>>>>>>>>>>>>>?J? J? J??"?#?&?*?-2?2?4?7|?8?9x?:?<\??x?Y?\?lJ?m?o?rJ?tH?uH?y?{H?|J?}????????????\???\???J?J?J?J????JDD D DYDZD\DlDrDtDuD{D|DDDDDEE E E E9E:E?E@EYE[E\E`ElErE|EEEEEHH H H H9H:H?H@HYH[H\H`HlHrH|HHHHHIDI DI DI~I~IlDIrDItdIudI{dI|DIDIDI~IDIDI~IDKK K KYKZK\KlKrKtKuK{K|KKKKKNFNGNHNRNTNNNNNNNNNNNNNNNPP P PYPZP\PlPrPtPuP{P|PPPPPQQ Q QYQZQ\QlQrQtQuQ{Q|QQQQQRR R R R9R:R?R@RYR[R\R`RlRrR|RRRRRSS S S S9S:S?S@SYS[S\S`SlSrS|SSSSSU|U|UDUUUUUUUUU|U|Y Y|Y|YY$YFYGYHYRYTYYYYYYYYYYYYYYYYYYYYYYYY|Y|YZZZZ[F[G[H[R[T[[[[[[[[[[[[[[[\ \|\|\\$\F\G\H\R\T\\\\\\\\\\\\\\\\\\\\\\\\|\|\^#^&^*^2^4^F^G^H^R^T^^^^^^^^^^^^^^^^^^^^^^^^l JllNllJl#l$Jl&l*l2l4l90l:0l<l?0lDlFlGlHlRlTlmNloNlyNl}NlJlJlJlJlJlJlJllllllllllllllllllllllllllllJllllllllNlNlllNlNlNlJmNm m Nm Nmxmxmm$m7Lm9m:m;m<`m=m?mlNmrNm|Nmmmmmmmm`mm`mmmmNmNmxmNmNmxmNmoNo o No Noxoxoo$o7Lo9o:o;o<`o=o?olNorNo|Noooooooo`oo`ooooNoNoxoNoNoxoNopp p p p pppp$p7p9p;p<p=p?p@p`plprp|pppppppppppppppppppppr JrrNrrJr#r$Jr&r*r2r4r90r:0r<r?0rDrFrGrHrRrTrmNroNryNr}NrJrJrJrJrJrJrJrrrrrrrrrrrrrrrrrrrrrrrrrrrrJrrrrrrrrNrNrrrNrNrNrJt HtHt$Ht9:t::t<(t?:tHtHtHtHtHtHtHt(tHt(tHu HuHu$Hu9:u::u<(u?:uHuHuHuHuHuHuHu(uHu(uHyNy y Ny Nyxyxyy$y7Ly9y:y;y<`y=y?ylNyrNy|Nyyyyyyyy`yy`yyyyNyNyxyNyNyxyNy{ H{H{$H{9:{::{<({?:{H{H{H{H{H{H{H{({H{({H| J||N||J|#|$J|&|*|2|4|90|:0|<|?0|D|F|G|H|R|T|mN|oN|yN|}N|J|J|J|J|J|J|J||||||||||||||||||||||||||||J||||||||N|N|||N|N|N|J}N} } N} N}x}x}}$}7L}9}:};}<`}=}?}lN}rN}|N}}}}}}}}`}}`}}}}N}N}x}N}N}x}N}J J J"#&*-2247|89x:<\?xY\lJmorJtHuHy{H|J}\\JJJJJJ J J"#&*-2247|89x:<\?xY\lJmorJtHuHy{H|J}\\JJJJJJ J J"#&*-2247|89x:<\?xY\lJmorJtHuHy{H|J}\\JJJJJJ J J"#&*-2247|89x:<\?xY\lJmorJtHuHy{H|J}\\JJJJJJ J J"#&*-2247|89x:<\?xY\lJmorJtHuHy{H|J}\\JJJJJJ J J"#&*-2247|89x:<\?xY\lJmorJtHuHy{H|J}\\JJJJJjmjojyj}jjjjjj $79;<=?@`lr| $79;<=?@`lr| $79;<=?@`lr| $79;<=?@`lr| $79;<=?@`lr| $79;<=?@`lr| $ $ $ $ \  h`h\""#$\&*-824DF`G`H`JTPQR`ST`UVXYZ[|\lm`o`rt2u2wy`{2|}`\\\\\\\````````````\`````hh```\ $79;<=?@`lr| YZ\lrtu{| YZ\lrtu{| YZ\lrtu{| YZ\lrtu{| YZ\lrtu{| YZ\lrtu{| 9:?@Y[\`lr| 9:?@Y[\`lr| 9:?@Y[\`lr| 9:?@Y[\`lr| 9:?@Y[\`lr| YZ\lrtu{| 9:?@Y[\`lr| 9:?@Y[\`lr| 9:?@Y[\`lr| 9:?@Y[\`lr| 9:?@Y[\`lr| 9:?@Y[\`lr| 9:?@Y[\`lr|J J J"#&*-2247|89x:<\?xY\lJmorJtHuHy{H|J}\\JJJJJ YZ\lrtu{|jmjojyj}jjjjjj 9:?@Y[\`lr|t t t9^:&`.d8TvlHPTn"`N*ZN  z !!"# #j##$n$$% %l%&&X&&'('l''(l))*>*J*V*b*n*z**++++,,, ,,,8,,,,,,,,------......../00000000111111112(2222223d3p44445d6"6<6p66678T8`8l8x888888889*9R9999:4::;;x;;;<<0<~<==j=>>p?~???@~@ADAABBNBhBC8CD8DDEEHE^EF8F`FFFGG4GbGGGH@HzHb"/n n* ( 0/ G V 2 2J |> X l t T  P  `> 0   0  d  8 4Copyright (c) 2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.LatoRegulartyPolandLukaszDziedzic: Lato Regular: 2013Lato RegularVersion 1.105; Western+Polish opensourceLato-RegularLato is a trademark of tyPoland Lukasz Dziedzic.tyPoland Lukasz DziedzicLukasz DziedzicLato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based designer Lukasz Dziedzic ("Lato" means "Summer" in Polish). It tries to carefully balance some potentially conflicting priorities: it should seem quite "transparent" when used in body text but would display some original traits when used in larger sizes. The classical proportions, particularly visible in the uppercase, give the letterforms familiar harmony and elegance. At the same time, its sleek sanserif look makes evident the fact that Lato was designed in 2010, even though it does not follow any current trend. The semi-rounded details of the letters give Lato a feeling of warmth, while the strong structure provides stability and seriousness.http://www.typoland.com/http://www.typoland.com/designers/Lukasz_Dziedzic/Copyright (c) 2010-2013 by tyPoland Lukasz Dziedzic (http://www.typoland.com/) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1 (http://scripts.sil.org/OFL).http://scripts.sil.org/OFLCopyright (c) 2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.LatoRegulartyPolandLukaszDziedzic: Lato Regular: 2013Lato-RegularVersion 1.105; Western+Polish opensourceLato is a trademark of tyPoland Lukasz Dziedzic.tyPoland Lukasz DziedzicLukasz DziedzicLato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based designer Lukasz Dziedzic ("Lato" means "Summer" in Polish). It tries to carefully balance some potentially conflicting priorities: it should seem quite "transparent" when used in body text but would display some original traits when used in larger sizes. The classical proportions, particularly visible in the uppercase, give the letterforms familiar harmony and elegance. At the same time, its sleek sanserif look makes evident the fact that Lato was designed in 2010, even though it does not follow any current trend. The semi-rounded details of the letters give Lato a feeling of warmth, while the strong structure provides stability and seriousness.http://www.typoland.com/http://www.typoland.com/designers/Lukasz_Dziedzic/Copyright (c) 2010-2013 by tyPoland Lukasz Dziedzic (http://www.typoland.com/) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1 (http://scripts.sil.org/OFL).http://scripts.sil.org/OFLtx  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghjikmlnoqprsutvwxzy{}|~      !"#NULLuni00A0uni00ADmacronperiodcenteredAogonekaogonekEogonekeogonekNacutenacuteSacutesacuteZacutezacute Zdotaccent zdotaccentuni02C9EuroDeltauni2669undercommaaccent grave.case dieresis.case macron.case acute.casecircumflex.case caron.case breve.casedotaccent.case ring.case tilde.casehungarumlaut.case caron.saltVV, `f-, d P&ZE[X!#!X PPX!@Y 8PX!8YY Ead(PX! E 0PX!0Y PX f a PX` PX! ` 6PX!6``YYY+YY#PXeYY-, E %ad CPX#B#B!!Y`-,#!#! dbB #B *! C +0%QX`PaRYX#Y! @SX+!@Y#PXeY-,C+C`B-,#B# #Bab`*-, E EcEb`D`-, E +#%` E#a d PX!0PX @YY#PXeY%#aDD`-,EaD- ,` CJPX #BY CJRX #BY- , b c#a C` ` #B#- ,KTXDY$ e#x- ,KQXKSXDY!Y$e#x- , CUX CaB +YC%B %B %B# %PXC`%B #a *!#a #a *!C`%B%a *!Y CG CG`b EcEb`#DC>C`B-,ETX #B `a  BB` +m+"Y-,+-,+-,+-,+-,+-,+-,+-,+-,+-, +-,+ETX #B `a  BB` +m+"Y-,+-,+-,+-,+-,+-,+- ,+-!,+-",+-#, +-$, <`-%, ` ` C#`C%a`$*!-&,%+%*-', G EcEb`#a8# UX G EcEb`#a8!Y-(,ETX'*0"Y-),+ETX'*0"Y-*, 5`-+,EcEb+EcEb+D>#8**-,, < G EcEb`Ca8--,.<-., < G EcEb`CaCc8-/,% . G#B%IG#G#a Xb!Y#B.*-0,%%G#G#aE+e.# <8-1,%% .G#G#a #BE+ `PX @QX  &YBB# C #G#G#a#F`Cb` + a C`d#CadPXCaC`Y%ba# &#Fa8#CF%CG#G#a` Cb`# +#C`+%a%b&a %`d#%`dPX!#!Y# &#Fa8Y-2, & .G#G#a#<8-3, #B F#G+#a8-4,%%G#G#aTX. <#!%%G#G#a %%G#G#a%%I%aEc# Xb!YcEb`#.# <8#!Y-5, C .G#G#a ` `fb# <8-6,# .F%FRX ,1+!# <#B#8&+C.&+-?, G#B.,*-@, G#B.,*-A,-*-B,/*-C,E# . F#a8&+-D,#BC+-E,<+-F,<+-G,<+-H,<+-I,=+-J,=+-K,=+-L,=+-M,9+-N,9+-O,9+-P,9+-Q,;+-R,;+-S,;+-T,;+-U,>+-V,>+-W,>+-X,>+-Y,:+-Z,:+-[,:+-\,:+-],2+.&+-^,2+6+-_,2+7+-`,2+8+-a,3+.&+-b,3+6+-c,3+7+-d,3+8+-e,4+.&+-f,4+6+-g,4+7+-h,4+8+-i,5+.&+-j,5+6+-k,5+7+-l,5+8+-m,+e$Px0-KKRXYc #D#pE (`f UX%aEc#b#D * **Y( ERD *D$QX@XD&QXXDYYYYDPK!Zoo,template/darkfish/fonts/Lato-LightItalic.ttfnu[GPOS'HPGSUBV.TIlOS/28J|`cmapRԟJcvt &6e8fpgm zAe gaspeglyf^Oheadd6hhea1$hmtx?kTkernOQ@gloca)N4,maxp> P` nameBbdP}post:\bprepx9op 0JDFLTlatnkernkernGrTv   V 8,^$^ 0 DJJJL F !z" ##P#$4$~%x&&'()*++,J,-n../$/V///1242n2233V3344J4445567778~88:;";;<=2>,?&?@ABC8CDE.F(> [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[> [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[-#&*24DFGHRTkp> [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[0= = =I#&*247A9=:m > >GG"F#$&*-o24DFGHPQRSTUVXYZ\]kl>mopr>tPuPwy{P|>}>>G>>GG$ $79;<=?@`lr|:V V V#&*-224789: LL"$-.DFGHPQRSTUXwLLL $+  #&*24IWYZ\klmopry|}3 $#&*24789V:y<=?VYzZ\zklm$o$prt=u=y${=|}$=zz=$$$$$$ $79;<=?@`lr|/ ==$-VDFGHRT===$ $79;<=?@`lr|#&*2478kpf LLL]]"-#$&*-824D)F)G)H)JAP]Q]R)S]T)U]VFX]YQZy[b\L]ekmLoLpw]yL}L)))))))))))))]))))))]]]]QQ)))])FFeeeLLLLLLLL $q> > >GG"F#$&*-o24DFGHPQRSTUVXYZ\]kl>mopr>tPuPwy{P|>}>>G>>GGNF F F$-DFGHJPQRSTUVXlFrFt<u<w{<|FFFFF+  #&*24IWYZ\klmopry|}m4 ~ 4 4[V[~"2#$~&*-824DGFGGGHGJ_PQRGSTGUVGX]kl4mVoVpr4t2u2wyV{2|4}V~~~~~~~GGGGGGGGGGGGGGGGGGG~GGGGGGVV44[44[V[VV~" #&*24kmopy}-#&*24DFGHRTkp:V V V#&*-224789: [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[&y y yjj$7G9; [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[ ee$e9F:F<(?Feeeeeee(e(e ee$e9F:F<(?Feeeeeee(e(e&y y yjj$7G9; [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[&y y yjj$7G9; [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[> [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[0= = =I#&*247A9=:m [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[> [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[0= = =I#&*247A9=:m [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[:V V V#&*-224789:?EHIKNPQRSUYZ[\^klmoprtuy{|} 8DFLTlatncase&case,liga2liga8sups>supsD,>B      @ LO,{tu CjqvI,xxAP`KtyPLJz  &   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ardeixpkvjsgwl|cnm}byqz`T@ ~1DS[a~    " & 0 : D !"!&"""""""+"H"`"e%&i 1ARZ`x    & 0 9 D !"!&"""""""+"H"`"d%&i{uq[H$I޸ޡޞ:ڜ`T@ ~1DS[a~    " & 0 : D !"!&"""""""+"H"`"e%&i 1ARZ`x    & 0 9 D !"!&"""""""+"H"`"d%&i{uq[H$I޸ޡޞ:ڜ/,8<@BK PX@3 `f[[ Q CQ D@4hf[[ Q CQ DY@@?>=<;:9751/+)&$$ +>32#'.<54>54.#"#"'4632#"&!!7!!374>32#"&F  >F!""'5-PS\88\SP-<""!5t ,@) Bk D   $+#"&'7!#"&'7e$  &]$  &ܚ$ܚ$Pr:>yK)PX@(  Y  C Q C D@&  Z  Y  C DY@>=<;::5320-,'%#"!#!+#"&547!+#"546?3#76;>;!323+32%!!' Ԇ)ۂ )։(+)   ,E  l%D  m$yErB[9DO@! *BK PX@2j  h f_ SC SD@1j  h fk SC SDY@LKA@#$#$ +.'7632.54>?>;#".'+4.'>ေ>  "/AU8oc6M9*,6Tl}8'0DXuKPX@+[ [SC C SD@/[ [ CSC C SDY@ US((%"&((($ +#".54>324.#"32>>;+#".54>324.#"32>7Zt>3W?#4XvA3V?$J.>$0XC'-?$0WC(XAB7Zt>3W>#4XuA3V?$J.=$0XC(.?$0WB(qgh4&ImGgi5&JmI7>;#"&/#".54>7.54>32>7>hJ)40K6=eI(>;a2A <TDM/lzGG|\6:cM106b0.J_2>si^(GrP,)Kh?  E:%,Mi>EINHG ^[ 3V>#-U|NRy\FFPd8BeD"!:P/Vize @ Bk D $+#"&'7e$  &ܚ$H  (+.54>7!2! ++<' 4UxR& S~T+OH  XPVr w  (+4.'&546?'&547>\!1! ++<' 4UxR& S~T++OH  YPVr w ;*@'40/+'&" Bja;;+7>7'7>7./7.5<?3>?'.'x    2   n+n  n,n   n,n  n+n   3 .@+jkMRF +!!#!7!7O7L8Q 8=G;G?@B ?S D"+74632'.54>7#"&?0'+/(8"'$ %/U#2;0)URL  %9J,2c*x@MQE+!!n RxN:@SD&$+74>32#"&:!#7''5M""'55@kD""++6; !&''/$Z`',@)SCSD'' +2#".54>2>54.#"\r@by\r@b.cQ5\}GcQ5]}HّjHّGj_)ʂz;_Ƀ{;)@&Bh CR D$+%!7#"/3!!F I5(HE 'iHF51<@9- BhSCQ D+)#! 11+2>3!2!7>7>54.#"#"/>Kc9;eK G#hq !K}Z2-Mf9Du_F.\~*S}R[D8!5! C{|NCcA 'Ig?Zb4q<HU@RD Bhh[SCSDB@:80/.-%#HH +2#".'763232>54.#7>54.#"#"/>K`73XwCEgF#Qhaf< ) 2OpNag6$Vm ak8,Kd9Dv`F.[~)OvLP~^? 7Oe:`xD.\Y GhF"Ci@7aG)B2X|L@_?'Hg@Zb4>^+@( B\ C D!#+!+#!"&/367!Z1T2g;Tk 5b2 i - 'g8-@@=+*Bh[Q CSD(#&(""+#!632#".'763232>54.#"'!2kgg3[m:hXI  -HgF[yF(TXn8{_$6aP}NJJ#-'%=riBmN,%r32@/B[ CSD0.&$ +2#".54>7>;>32>54.#"Tb6QoYf7:Z> Q&>B*PsJ^p=,QtG_o=M5`RlJ7h\:qwH *K#?G-DtU0=lWFrP+Do$@!BQ C D$'++>7!"&57 H. #   >f&%;OD@A B[SCSD=<'&GE7.54>32'2>54.#"2>54.#"^m<6`MmpBxfW_1)MpH6]E'2XwE2^H+Z22@/B[SC D/-%# +".54>32+>74.#"32>MP^3OiUc5:V7H T >BV+NnBVl=)MnD]i8Z3\OfI8fVDrosEI&L)BHCqQ-9gVClK(Ai:Z;K#PX@SCSD@[SDY&&&$+74>32#"&4>32#"&:!#7''5f!#7''5M""'55D""'55<e)K@ B ?K#PX@SCS D@[S DY@ (& "+74632'.54>7#"&4>32#"&<0'+/(8"'$ %/o!#7''5U#2;0)URL  %9J,2<""'55 5(+%(BA     c!@YMQE+!!!!; /:+GG 5(+ 767>7&'&5<>7L%(A    ~'95@2BhfSCSD(&#,$+>32#7>54.#"#"'4>32#"&EQ\4=gK*1LYQ< @9NZL2 9M,>\@( "!""'5 3'&Fa;SvXA<>(,E>?PhH/K5#*# g""!5a2Wlf@c ^ ?Bh[  [  [OSGYXb`XlYlOMCA=;86,*"  WW +%"&5<7#".54>3232>54.#"3267632#".54>32%2>7.#"IG?L-B*!>ZqN1T!';sZ7Lg\a7Vz_ o^JP[ǡq=I҉ՙTD?lT7%AXck4!9*X $@!BZ C D# +!#"&'!+3!.'XLeLb>E   b z*5*=@: B[S CS D*(" !+3!2# !2654.#%!2>54&#!yfb/,QtICsJD)OsJa\,*OrHD|eIybp<:]B$H:_zAw~/D@A BhfSCSD'%" //+%2>32#".546$32#".#"ItZA. #.ixPzŋKp ItaQ&  )N}`aBvE%+%*/K5X⊹3y,B*( ,5,h|NjJ-@S CS D!(!&+#!!24.#!!2>-1[g$}ʍLg?uhxޢZ/}ڵb3Uދy†Hc? (@%YQ CQ D+!!!!!!4WG7 I 5PR? "@YQ C D+!!!#!4WJO Pd5Su9G@D$ Bh[SCSD1/(& 99+%2>7#"504>7!#".546$32#"'.#"CobZ-0k?5o}R͐MnM~hV&  '7Kb?]BzA*  %:'Y㊻3w,@)'!h|njK! @Z C D+!#!#3!3sdSSddR(RdYk@ C D+!#3 dd'@$Bh CSD#%$+#"&'7>3232>73}HnW6Y+  #1#;lW= xduq76%Wi &@# B\ C D'(% +3267>;#"&'.+#3^M"(PQ~P * TTcdL X f  UX@ CR D+7!!3h 6cUU<!'@$Bh C D!6(+67>;#>7+"'#32- ~EW nWD   y #F!@B C D!+2>73#"'#3b W. QW1 0 y-Gq'@SCSD((($+#".546$324.#"32>qm|ȍLn}ɍLg?vgޣ\@vgޢ[0xY≺3xY{ŋKh{ŊKg? /@,[S C D   !+#!2# 32>54&#GFcTJvT^k:;lHSq5aU#N ||ȍLn}ɍLg?vgޣ\@vgޢ[0⼓1{ C2Y≺3xY{ŋKh{ŊKg3!7@4 B[S C D! *!+#!2#"'.# 32>54&#POcP54.54>32  ";]FLwS,2QgmgQ2B{mS:((0GgKQsDKH @Q C D+!#!7 8c6 T3T#@  CSD +%2>73#".5473o]uL kdl]sgo:kdl-WFH~clu˖VG|e,-l(Th; @B C D, +32>7>;#O&   GN:Y c00 y~( @#B C D+; +32>7>;2>7>;#.'#N MY Yh)) h)) y  /@ B C D)"'!+ 32676; #"&'+Y -cY   b  4r p @ B C D,"+#32>7>;gIcIX+ SGH? d!  ,$@!Q CQ D+!!7>7!728 A  !  R! RDD'@$[OQE!#+!+32D& ̼ #   qH@kD" +32#"&'q'' %$+ '@$ B[OQE!#+!!7>;#"5(˻ # v @ Bk D+!+3#"&'&'+\;UC   F L1@MQE+!7 +AA~@kD+2#"/s5 <s+^@ BK%PX@SCS D@SC CSDY@ #!++*' +!#"&5#".54>322>7&#".!&[gr=?^? ,QpR32#"&'#"32>54&f]a'`ju32#".#"32>325_[^5VT*!>XnI1OB6 1N;Tk=AbC5TA1& ;L,;jVOvV1#2! % ZlEvV0")" @.p@ "BK%PX@CSCS D@!CSC CSDY@&$.. +!"&5#".54>323%2>7.#"!'alv=AbB" ;UlIQ,I\I9rk]$#+E?mYE/f =Q_42\QLb9GGKQ@?tc N@3Xt@FF,=7@42BhSCSD.--=.=*&%,+32>32#".54>32%">54.F8`Ќ5UC3( 1]_f:SX.;WpOIe?PcCO,,G%)JB;1')$($ 4K07eZKzZ4)=GgDqQ%)0361(B%^BK!PX@kSCQD@kYSDY@%%!$%$ ++'&546737>32#"&#"!2j*#~ :Wn?8  (-Q?-  ~w ~UV+ 0 AhK{F>Td@<& CBBKPX@+ [[CSCSD@.h [[SCSDY@VU^\UdVdQOGD7642*( +#".54>32.5467#".54>32!4&'.#"32>2>54&#"(/(#*#@tdO_4Kb"D#")[69bG(1]W3Z# l 1X)ca1'Hf>N[2@eF$n]@dE$l7ZKA>@$3016@'?uZ6 =X8HoL(4 #H3$GgDEh?  L1F%?T.+C-*FZ 6Wo8hi3Tm9jnf,@)BCSC D%%+33>32#654&#"f^\(akp9po ^KMS6pi^$AKuQ*2]|.)fj7gZx&@#SCC D +##".54>32Ny]yW !m(4@1 BSCCSD%#!%%+#"&'7>323267#".54>32J(?W5)JR 4XA% XQbW !c0@-B\CC D%(%!+3267>;#"&'.+#rm% R9   lP $=] { _   u@C D+33u]Q^5Z@  BK)PX@SC D@CSC DY@55%&($! +332>32>32#>54&#"#654&#"^x+#NqdU']gl5k^ ]K>M1eaW#C]K :JrI?$ꛫ~v"'PwO'} 6_|7Z]-Z\|E6TWо^!P@ BK)PX@SC D@CSC DY@ !!%&!+332>32#654&#"^x+")cnt;op ^KMS8rk^$=$O}W- 2[|.)ej9i]G%,@)SCSD%% +%2>54&#"".54>32Wf7~:fVE/wP]3HlP]3I>[g)JexFK8j`yߪe9i^yޫf2-m@ !BK)PX@SCSCD@!CSCSCDY@%#--*&!+32>32#"&'"32>54&2+# 'amv=AbB" ;UlHQ+;9sj^$#,E?mYE/fF$Q_42[PMb9HF?tdO@3XuA<s.6@3#BSCSCD&$..*) +#"&547#".54>322>?&#"6O&Yeo32&#"^x+#Dc)+.(k=<$أY!<=@:<BhfSCSD:8'%" #!+#".#"#"&'7>3232>54.54>32 2J73[C'&?OTO?&3^Ra/ 5R>;aE&&>PSP>&2Z|JT|0i"9K*)8)%4K5@x]8C6" ' 'DY2,<+#2H4:kS144l@+g@ &BK!PX@#jhQCSD@!jh\SDY@ %#(&&+74>7#"5?>;!!32>32#"&DB ./ E=0!3&(r9R]$9,5) d G)4!A:**3Zr"P@ BK%PX@CT D@C CTDY@ ""'!%+32>73#"&5#"&54>7!KMS7pj^$@^x,)cmt:oo /(fk8i\O|U- 3ZS@BC D+ +3267>;#SI  GN ,*0 Vx) @#BC D(!+: +32>76;2>7>;#"'&5+VC V$ F BVD B))** (V@BC D("(!+3267>; #"&'+sP    TP   Pr q 0  Q V@ BCD,"!++32>7>;CJ   I   <@QCQ D+!!7>7!7!6a/ ^  K& MKGFD7@4"5B[[OSG<:303)+4𑯎&54>;+";20#".54>D9J\+NoE3:P1 '?.*")"'8#38U:#*#9I;tw<-TF3 )5 =vw{A)B0  %BY4D{ut@QD+3#KKD7@45"B[[OSG<:303)+3"+7>;2>54&54>7.54>54.+"&504>732D9J\+NoE3:P1 '>/*")"'9"37V:#*#9I;tw<-TF3 (6 =vw{A(C0  %BY4D{utP9@6jk[OSG +2>53#".#"#4>32%=*N 734632#"&D ) C 5'#7''5&-PS\88\SP-'7#'55/:K@H%BjhfkSCSD##'# +.54>?>;#".'>32+Vb4Lˀ# #)V.  4N8KlI* J]l:$ #)LmEir= @o`לX ;- "' 1% Q]7lJi=C@@+ Bh[SCS D%&%##(" +#!>3!#!7>7#7>;>32#"'.#"!a%'#/)5$=/*$ LzfPuQ4(  &;XAN`= $ ,F9/'@ #4I5W% )]uC%?V0 <.4_O$D#79@6! B @ ?WSD42*((+467'7>327'#"&''7.732>54.#"(#2-n?>n-1%))#1-n?>m,1$)H+Ib89cJ++Jc98bI+>m-2%*)$2-n?>m-2$)($2-m?8bI++Ib88cJ++Jc!8@5 B Z Y C D! +! +!32>7>;!!!!#!7!7![M   N[o/]/nhd## 9v88v@YQD+3#3#KKKKX}bEYA@>EWM:#BhfWSDCA,*'%!#!+#".#"#"&'763232>54.5467.54>32>54.'K  1I76[B%(BUXUB(^](22]Ta0  4P>>bD$ImmIdq*42Z}LS{0!8IPR$NC2CJL#`M #:N*)>3,-3AR7^&"U;Dy\5B6" % 'CY2=S@:GaGU)!V>;lR145&<2+(+&kE(?3*&&+gvqm%3K'PX@ S D@OSGY&(($+#".54>32#".54632 V 0"   "1 k/Ka@ BKPX@4hf[[ SCSDKPX@4hf[[ SCSD@4hf[[ SCSDYY@ ^\*,*(#&(%" +>32#".54>32#".#"32>4>32#".732>54.#"Y";t`s@Cwc4WJA !;[DSa55_Ld0:L@I!Bh[ WSD21651:2:%#00 +"&=#".54>7>454#"#"&/>32'26? 4cB2&)[go'8)   1i?*>)  =[+9G D.11!*H7! w/-1A$ 4Ya*5)KB.)%%(+77    =     z   { z   T=K PX@_MQE@kMQEY+!#!<.O$'c*x@MQE+!!n RxNq1GP<BKPX@/h  [ [SCSDKPX@/h  [ [SCSD@/h  [ [SCSDYY@22PNJH2G2F)!**,& +4>32#".732>54.#"#32#"'.#'32654&+q4^dd^44^cc^432#".732>54.#"0Qm>?nQ//Qn?>mQ0E$>U00T=$$=T00U>$n>mQ..Qm>>lQ//Ql>0T>$$>T00T?$$?T<P8 <@9jhZMQE  +!!#!7!!!2 O1L1S2VjGlGGV/g@ - BK!PX@h[SD@!h[OQEY@+)%# //+2>3!2!767%>54.#"#"/>(E33C%(' "=,#/9Z $V,?*-LD?!;>@$-B= `e|V>@:BKPX@,hh[[SD@1hh[[OSGY@8631+*)( >> +2#".'763232>54.#7>54.#"#"/>(D2UE@A+H^3!3C$  ('0;-!2RH+B;0I2T@kD"++7>3T7 $7@4#BCS CD$$&(!&+32673#"50>7#"&'#"&5RcjXH][z3K]Xn(.cmybX ;3X[JD*R#yB4*@'hiS D+##!#".54>34 UVm\h8EnR  y-SwKVi;@OSG($+4>32#".$&&$P&&%%TV@  BK PX@^jTD@jjTDY@+232654.'73#"&'764#3:(8"8:'JN2E(&D  2* a73!5% lQN BKPX@jjQD@jjMRFY$+37#"/733!C 9R%h5;#)@&WSD## +2#".54>2>54&#"7U;+OpE8V;+Oq7T8RR:U8R$C]9O[2$B]9O\2*MlBYk+NlAYj%#(+7'&54767&'&54?'&54767&'&54?     ' '   ' '  `(.Q@N" Bh  h   Z \  C D.-('&%$#%"#!" +%3+#7!"5'3+6;37#"/733!>7!n=A &$(C  9R'"U d#k%w h5t |H9Jb@_D=7Bhh   Z [  CT D JIHGFEB@;:52/- 9 9"" +%+6;2>3!2!7>7%>54.#"#*/>%37#"/733!w &$(y(E33C%(' "=,#/>X C  9R d#K,?*-LD?! ;>@$-F9`e %w h5rY_y@vU ! . B  h h  h [  [\ S C D_^SPMKEDCB:820*(YY"#!#+%3+#7!"5'3+6;%2#".'763232>54.#7>54.#"#*/>>7! n=A &$((D2UE@A+H^3!3C$ -%0;-!2RH+E80I2 |;(:5@2BhfSCSD('#,$+#".54>?332>324>32#"&;DP\4;gL+1KZP; >6MXK1!8K)=]B'!""'53'%Db>RtS=68%+?99KeG0L5$*$P""!5X&$ @X&$ HX&$ @X&$@X&$ @X&$@:@7BYYQ CS D# +!!!!!!+!!6 W XMwz  5PRb z5+Lh@e9? J Bhf hSCSC S  DHF>=750.&$!LL +232654.'7.546$32#".#"32>32#"&'76#3:(8"/rFp ItaQ&  )N}`aBvbItZA. #-dsLJN2E(&D  2* r^܅3y,B*( ,5,h|NjJ%+%*-I5L73!5% ?&( G?&( G?&( G?&( G&, &, &, &, E`!,@)YS CS D!%(!+3!2#!#%4.#!!!!2>MR}ɍLl$T?ugHsJxݡZUމry†H>c!&1q&2 q&2 q&2 q&2q&2 )C  (+  ' 7 )cF6Z,9C 3u3wp4pO!-9b@ 21&%BKPX@kCSCSD@jkSCSDY**%(%$+#"&'+7.546$327>;.#"%4&'32>qmhC")JNnmEz 4DHw:6%:`ޣ\"409Zޢ[0x>9Q卺3xE? QvE<@h(oE67g&8 &8 &8 &8 &< &Y,@)\[ C D"& +32+#3 32>54&#Ju#cd-T^k:ilHT54.54>54.#"+'&573>InJ%4MZM4.EQE.6_M]~0  3L::^B$/HRH/5O]O54T=A{cE p*#W|-I\.FdL<:A+)3'&7TBL\3C6! % (E]58F0#-B58RC=GZ?D9&Bv^zv (_K<s&DCT<&Dv-<s&D<h&D<m&Dj<s&D22jGWd@?E!BK)PX@5hh  [ S C SD@?hh  [ S CSC SDY@&YX^]XdYdSQIHCA=;860/'% GG+232>32#"&'#".54>?>54&#"#"/>32>32>7">54&Z7]D&>y5UD3( 0\`g:t[jo08]C%F \[BaF. Qcrt 9=0B'=oY< GtY; {4b ;Q0:hN0))$($ 3K1MjA8W32#".#"32>32#"&'76#3:(8"1OtM&!>XnI1OB6 1N;Tk=AbC5TA1& 2XVV/ JN2E(&D  2* u?iSOvV1#2! % ZlEvV0")" 7I,P73!5% FF&HCFF&HvFF&HFQm&Hja`&Cx'&vB%&IDm&jIy7I5@20B76 @[SD98A?8I9I,*" +&54?.'&54?7#".54>324654&'267.#"3vD QC +H4@~L^5Ayi1`TE\UI! +GeDZ`2*Hc. y#0 =3 o(f~Yn9h[mU9X=K,3dO1H|^M{V.^j&Q++G&RC++G&Rv++G&R++Gj&R++Go&Rj++3^#+@([YOSG&&&%+!!4>32#"&4>32#"&U%$.&$,X%$.%#-G{&1#%/Y&1#%/  *5u@ 43$#BKPX@!kCSCSD@!jkSCSDY@,++5,5'%  +"'+7.54>327>;&#"2>54&'YF !&+-HlDq-= 2u),I7GnWh9Wg9G K`5[yߪe(&S5XyޫfWGYAZkBn*GBr&XC++r&Xv++r&X++ro&Xj++V&\v++;0?@<"BCSCSCD(&00*%+3>32#"&'#"32>54&;]b'`ktC#?mYF/gN\32[PMb9HGE@ud'6"3XuAVo&\j++'0L@I-BAhZ C CSD)($"''+2#"&54>7.'!+332>!.'  Q+BK*6eLbg7.3*$E  !B:">6. b y $0<")0 +,<s4FK%PX@&;B@&;BYK%PX@*hSC SCSD@.hSC C SCSDY@65><5F6F1/('$"44 +2#"&54>7.5#".54>32#32>2>7&#",  Q+BK-8!&[gr=?^? ,QpR7!!!!!!#32>X  Q+BK*6 WG7 I p3+3*$!B:">6.RPR $0<")0 FFL]e@bR9@?Bh h SCSCSDNMM]N]IG>=750.LL +2#"&54>7"#".54>3232>32732>">54.C  Q+BK$/ SX.;WpOIe?8`Ќ5UC3( /XZ_6)-3+3*$PcCO,,G!B:93-7eZKzZ4)=G)JB;1')$($ 1H0 $0<")0 DqQ%)0361(xN@C D+#Ny]y0!@ B CR D+%!!7>?3g ~Dh 6H  [c= UMf@ ^S8@BC D+46?37#S L]H _\Z TvW2 VV!&1 ^&Qv++ 46@  BKPX@*YSCQ  C S DKPX@4YSCQ  CS C S DK#PX@*YSCQ  C S DK%PX@4YSCQ  CS C S D@2YSCQ  CQ C SDYYYY@1/'% (% +!!!!!#".54>324.#"32> ZG2 H '+qVo}CeWrQ,]7g]w̕U8h\x̔TRPR>N{U-Wއ6z5aVgx‰Kkx‰Ij68N]S@PT6$Bh S C SDPO:9O]P]FD9N:N42*(" 88 +232>32#"&'#".54>32>2>54.#"">54.=aD#8^ƃy5UD3( 0\`g:yUi~GOtK$Mix:8GrW>(:W;Zh88Z~H{_? {-0J 9O0%F@80'  $($ 3K1EnL):aEZuvI2Vs?CoO+Tۈ6fP0q:k_:EN'6)'&6 !&Vv++'&6 !&V++&< &,&= F <&]v++,&=F <&]++,&=F <&]++U%SKPX@ YSCSDKPX@ YSCSDKPX@ YSCSDKPX@ YSCSDKPX@ YSCSDKPX@ YSCSDKPX@ YSCSD@ YSCSDYYYYYYY@%%"" +#763>7'&546737>3#"!VwW%3eWE//"5dWE1f b\+/FqS  1 FqREoR @Bk D' +#"/+73R= { AS r @Bk D' +32?6;#A { ?S rq$qa @W D+".547332>73e5K.C 3&,?+C#=Y5H*4%3B&2ZD'2@SD($+#".54>32    F!!s=K'PX@WSD@[OSGY$&($+4>32#".732654&#"/?##?//?##?/:@32@@23@$<++<$$;,,;$2@@22@@7\ +@(B@jSD+2#"&54>732>F  Q+BK1>-3+3*$!B:%C:/ $0<")0 |nhQKPX@WS D@[OSGY@ +2673#".#"#>32(.9(6 1-+&0:)5 2,*7/$>.!(!:-$?-!'! #@ SD   #++7>3!+7>3 ) =-  Y\BK1PX@SCS D@SC CSDY@!$## ++#!#"&'7632327#7>3Yq]qVVsb0  V$d;ns & ! ld@MQE+!!+dEBd@MQE+!! VdE#(+&5467\H):#7;XB 1v?/*\(+'&5467>54&'&547E\H*8 7;XA 1v?, (+7'&5467>54&'&547\H*8 7;XA 1v?,#)(+&5467&5467\H):\H):#7;XB 1v?/*7;XB 1v?/*e+(+'&5467>54&'&547%'&5467>54&'&547T\H*8 8\H*8 7;XA 1v?,7;XA 1v?,+(+7'&5467>54&'&547%'&5467>54&'&547|\H*8 8\H*8 7;XA 1v?,7;XA 1v?,"YKPX@#CSCSCD@OCSCDY@ $!#"+>3>32>72! #"'!FK/  GLF=O  h=&  f6* BKPX@6   `   [CSCSC  D@1   `O   [CSC  DY@661.,+)'$##!##+%!7>3>32>72!!#.'#"'"&5467XFK/  GLFZ_FK,  G&OOM$ & +'  91|@OSG($+4>32#".9.Pi<=lP..Pl=32#"&%4>32#"&%4>32#"&:!#7''5!""'5!#7''5M""'55'""!5'""'55}'0DXlKPX@/[   [SC C  S D@3[   [ CSC C  S DY@}{sqig_]US((%"&((($+#".54>324.#"32>>;+#".54>324.#"32>%#".54>324.#"32>7Zt>3W?#4XvA3V?$J.>$0XC'-?$0WC(XAB7Zt>3W>#4XuA3V?$J.=$0XC(.?$0WB(6Zt?3W>#4XuA3V?$J.=$0WC'->$0WC'qgh4&ImGgi5&JmI32#".#"!#!!#!32>32#".5#73>7#Lqr@jWI %,@W:_`e 4aY>cM:)  )^l|Fnu<^ғN,A*$$@}u *X0 zC%+% !.K5Qه9/Y*H&9@6BhiS  D&&!4) +>7>;#7+"'#32'###7 6E<6  754.#"!"504>7!7.54>32!,dyDCv]p˛[0Y|L+3N]4lrÍPKghYyjn7I׎VhF Rw\YFv}͛h3W/AC@@5"Bh[SCSD10;90A1A#)**$+>32#".54>32>54&#"#"'2>7.#"%BBD&EjH& kԂClM)&EawK1WG4ol-G6% NKv_!7V?fr=t=# 5d^AI,SvKRtT/7T:NV&Fx4dN0``yi @ B CR D+)3!.'ijYj%&w $@!Q CD +##!##7w __ PiiP*@' BQ CQD+!!!767 &5467 IR RR$2- {@MQE+!!< GES"@Bj[ D+%!+!##"&5467!267>;RM9  7 )#( L';OL@IK-B[  O  SG=<)(GE32>32%2>7.#"!2>54.#"3O?3"HPX30T>$3Un<3O?3"GPX31U?$2Up(IDA -4@(-P=$-<m0Q;"-<$(ICA!,5?'BV..VB'$C`32#"&#"#"&'7>3232>7EZl;$4  `"Kas@;  6[J7>WU+ , dZ) ' GrQ7d@a!0"/B[[[ O SG42+)&$77  +2>7#".#"'>322>7#".#"'>3243-% #i83a]\.3,% #h<4a][2-& #h84a]\/3,$ $h<5a]Z( 8+.$,$ 6-/$,$ 8*/$,$ 6-0%+% pkK PX@)^_ ZMQE@'jk ZMQEY@  +!3!!!!#!7!7!F͇ FEZ>c GGGgPO@@MQE+!!&)$@A v>    xIuPQ@ @MQE+%!7!7>767.'&5<>7c AG&)$PI>    f"@ BMQE+3 # >7 .'BnBL  M  @@S ~@ja+3v 0@T%k@ BK!PX@"kSCQC D@ k[SC DY@ !&%$ +!#!+'&5737>32#"&#"8w^nFl*"~ DlX%$  ,"<}v *U\e6. @$@ BK!PX@$kSC QC DK%PX@"k [SC DK)PX@&k [CSC D@-hk [CSC DYYY@$$!!%$ ++'&5737>32;#.#"!3l*"~ BjYE94]/h0EqU7 ~v *BXm> nL /X~NBFS-K1PX@ jD@ jaY@ +#n;N[{ @ja  +2#"&/ I   6 @OSG$$$"+#"&54632#"&546324/../O.--.,, -- ,, --6p@MQE+!! p:, @ja #++7>3  I @Bja+ +#"&/.'+73GGW@Bja+ +326?>;#GGW(@%jOSG +"&547332673gc>DNXU? {XT9AQHcr@8@OSG($+#".54>32  1!@[OSG$&($+4>32#".732654&#"-<"">-->""<-5?32@@23?^";**;"#:**:#2@@22@@1@.[OSG +2673#".#"#>32&/4&4 3/-&/7'4 4.-O7+"<, & 9*"<, %  +@(OSG   #++7>3!+7>3 -Z3 @kD  +2+ $U !;XB -M_< ʓ^pӡ  V /TPr}M((?dc:ZFq>gf:<++av?`p&BnF'5ETS,(Dq(<f]H@F8Bqfxmxcu^^G2<^!lrSSVVVF (GX(PTXXvMkk2dcMqr<y2????&&&&EnOEEEESF;<<<<<<2]HFFFFaxBII^GGGGG rrrrV;V< ]H?Fx02Sn^6'!'!S,F ,F ,F or27|<nn ggg,,f9`: }EE )!l(+WTbELe+g+u@@S{,@gP`  [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[ [ j y j [ $[ 9> :A </ ?> D F G H R T my oy yy }y [ [ [ [ [ [ [ / [ / y y j j y j y y [ # & * 2 4 D F G H R T k p [ j y j [ $[ 9> :A </ ?> D F G H R T my oy yy }y [ [ [ [ [ [ [ / [ / y y j j y j y y [= = =I#&*247A9=:m  > >GG"F#$&*-o24DFGHPQRSTUVXYZ\]kl>mopr>tPuPwy{P|>}>>G>>GG## # # # ##$#7#9#;#<#=#?#@#`#l#r#|##################$V$ V$ V$$#$&$*$-2$2$4$7$8$9$:$9 9 >9 >9G99G9999"F9#9$9&9*9-o92949D9F9G9H9P9Q9R9S9T9U9V9X9Y9Z9\9]9k9l>9m9o9p9r>9tP9uP9w9y9{P9|>9}99999999999999999999999999999999999999999999999999999999>9>9G9>9>9G99G999:F: : F: F::::::$:-:D:F:G:H:J:P:Q:R:S:T:U:V:X:lF:rF:t<:u<:w:{<:|F::::::::::::::::::::::::::::::::::::::::F:F::F:F:::;; ; ;;#;&;*;2;4;I;W;Y;Z;\;k;l;m;o;p;r;y;|;};;;;;;;;;;;;;;;;;;;;<4< ~< 4< 4<[<V<[<~<<<"2<#<$~<&<*<-8<2<4<DG<FG<GG<HG<J_<P<Q<RG<S<TG<U<VG<X<]<k<l4<mV<oV<p<r4<t2<u2<w<yV<{2<|4<}V<~<~<~<~<~<~<~<<<<<<<<G<G<G<G<G<G<G<G<G<G<G<G<G<<G<G<G<G<G<G<<<<<~<G<<G<G<<<G<G<G<<<<V<V<4<4<[<4<4<[<V<[<V<V<~==" =#=&=*=2=4=k=m=o=p=y=}==============>#>&>*>2>4>D>F>G>H>R>T>k>p>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>?V? V? V??#?&?*?-2?2?4?7?8?9?:?l:Al</l?>lDlFlGlHlRlTlmyloylyyl}yl[l[l[l[l[l[l[l/llllllllllllllllllll[lllll/lylyljljlyljlylyl[mym m ym ymjmjmm$m7Gm9m;mr:Ar</r?>rDrFrGrHrRrTrmyroyryyr}yr[r[r[r[r[r[r[r/rrrrrrrrrrrrrrrrrrrr[rrrrr/ryryrjrjryrjryryr[t etet$et9Ft:Ft<(t?Ftetetetetetetet(tet(teu eueu$eu9Fu:Fu<(u?Fueueueueueueueu(ueu(ueyyy y yy yyjyjyy$y7Gy9y;y|:A|</|?>|D|F|G|H|R|T|my|oy|yy|}y|[|[|[|[|[|[|[|/||||||||||||||||||||[|||||/|y|y|j|j|y|j|y|y|[}y} } y} y}j}j}}$}7G}9};}:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[ [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[= = =I#&*247A9=:m:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[ [jyj[$[9>:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[= = =I#&*247A9=:m:A</?>DFGHRTmyoyyy}y[[[[[[[/[/yyjjyjyy[V V V#&*-224789:tTn<4t@x  n L r  l  B l  "^NR@ P :jrN"jPj@ jjdd$  n !*!|"f"#&#V#p$@$Z$$%`&& &v&&'6'|'( ()$)*X*d*p*|****+++++++++,>,J,V,b,n,z,,-<-H-T-`-l-x-.j.v...../0<0H0T0`0l0x0001 121D1V1h1z112j2|22223,3>34r4~445556.6:6L7:77888 8,888J8V8h8t89l9999:&:t:; ;>;;;;<"(>T>???@@@AjABBBBBBCjCDBDDEE`EzEFFFGG(GJGxGGHHDHHHd"/n   /(0B B Q - 2E w9 S g  { ^   P   `U    0  d   4  Copyright (c) 2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.Lato LightItalictyPolandLukaszDziedzic: Lato Light Italic: 2013Lato Light ItalicVersion 1.105; Western+Polish opensourceLato-LightItalicLato is a trademark of tyPoland Lukasz Dziedzic.Lukasz DziedzicLato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based designer Lukasz Dziedzic ("Lato" means "Summer" in Polish). It tries to carefully balance some potentially conflicting priorities: it should seem quite "transparent" when used in body text but would display some original traits when used in larger sizes. The classical proportions, particularly visible in the uppercase, give the letterforms familiar harmony and elegance. At the same time, its sleek sanserif look makes evident the fact that Lato was designed in 2010, even though it does not follow any current trend. The semi-rounded details of the letters give Lato a feeling of warmth, while the strong structure provides stability and seriousness.http://www.typoland.com/http://www.typoland.com/designers/Lukasz_Dziedzic/Copyright (c) 2013-2013 by tyPoland Lukasz Dziedzic (http://www.typoland.com/) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1 (http://scripts.sil.org/OFL).http://scripts.sil.org/OFLCopyright (c) 2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.Lato LightItalictyPolandLukaszDziedzic: Lato Light Italic: 2013Lato-LightItalicVersion 1.105; Western+Polish opensourceLato is a trademark of tyPoland Lukasz Dziedzic.Lukasz DziedzicLato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based designer Lukasz Dziedzic ("Lato" means "Summer" in Polish). It tries to carefully balance some potentially conflicting priorities: it should seem quite "transparent" when used in body text but would display some original traits when used in larger sizes. The classical proportions, particularly visible in the uppercase, give the letterforms familiar harmony and elegance. At the same time, its sleek sanserif look makes evident the fact that Lato was designed in 2010, even though it does not follow any current trend. The semi-rounded details of the letters give Lato a feeling of warmth, while the strong structure provides stability and seriousness.http://www.typoland.com/http://www.typoland.com/designers/Lukasz_Dziedzic/Copyright (c) 2013-2013 by tyPoland Lukasz Dziedzic (http://www.typoland.com/) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1 (http://scripts.sil.org/OFL).http://scripts.sil.org/OFLLatoLight ItalicXA  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghjikmlnoqprsutvwxzy{}|~      !"#NULLuni00A0uni00ADmacronperiodcenteredAogonekaogonekEogonekeogonekNacutenacuteSacutesacuteZacutezacute Zdotaccent zdotaccentuni02C9EuroDeltauni2669undercommaaccent grave.case dieresis.case macron.case acute.casecircumflex.case caron.case breve.casedotaccent.case ring.case tilde.casehungarumlaut.case caron.salt_K_KVV, `f-, d P&ZE[X!#!X PPX!@Y 8PX!8YY Ead(PX! E 0PX!0Y PX f a PX` PX! ` 6PX!6``YYY+YY#PXeYY-, E %ad CPX#B#B!!Y`-,#!#! dbB #B *! C +0%QX`PaRYX#Y! @SX+!@Y#PXeY-,C+C`B-,#B# #Bab`*-, E EcEb`D`-, E +#%` E#a d PX!0PX @YY#PXeY%#aDD`-,EaD- ,` CJPX #BY CJRX #BY- , b c#a C` ` #B#- ,KTXDY$ e#x- ,KQXKSXDY!Y$e#x- , CUX CaB +YC%B %B %B# %PXC`%B #a *!#a #a *!C`%B%a *!Y CG CG`b EcEb`#DC>C`B-,ETX #B `a  BB` +m+"Y-,+-,+-,+-,+-,+-,+-,+-,+-,+-, +-,+ETX #B `a  BB` +m+"Y-,+-,+-,+-,+-,+-,+- ,+-!,+-",+-#, +-$, <`-%, ` ` C#`C%a`$*!-&,%+%*-', G EcEb`#a8# UX G EcEb`#a8!Y-(,ETX'*0"Y-),+ETX'*0"Y-*, 5`-+,EcEb+EcEb+D>#8**-,, < G EcEb`Ca8--,.<-., < G EcEb`CaCc8-/,% . G#B%IG#G#a Xb!Y#B.*-0,%%G#G#aE+e.# <8-1,%% .G#G#a #BE+ `PX @QX  &YBB# C #G#G#a#F`Cb` + a C`d#CadPXCaC`Y%ba# &#Fa8#CF%CG#G#a` Cb`# +#C`+%a%b&a %`d#%`dPX!#!Y# &#Fa8Y-2, & .G#G#a#<8-3, #B F#G+#a8-4,%%G#G#aTX. <#!%%G#G#a %%G#G#a%%I%aEc# Xb!YcEb`#.# <8#!Y-5, C .G#G#a ` `fb# <8-6,# .F%FRX ,1+!# <#B#8&+C.&+-?, G#B.,*-@, G#B.,*-A,-*-B,/*-C,E# . F#a8&+-D,#BC+-E,<+-F,<+-G,<+-H,<+-I,=+-J,=+-K,=+-L,=+-M,9+-N,9+-O,9+-P,9+-Q,;+-R,;+-S,;+-T,;+-U,>+-V,>+-W,>+-X,>+-Y,:+-Z,:+-[,:+-\,:+-],2+.&+-^,2+6+-_,2+7+-`,2+8+-a,3+.&+-b,3+6+-c,3+7+-d,3+8+-e,4+.&+-f,4+6+-g,4+7+-h,4+8+-i,5+.&+-j,5+6+-k,5+7+-l,5+8+-m,+e$Px0-KKRXYc #D#pE (`f UX%aEc#b#D * **Y( ERD *D$QX@XD&QXXDYYYYDPK!I1template/darkfish/fonts/SourceCodePro-Regular.ttfnu[pBASEe]FDSIGGDEFGPOS\GSUB]dJOS/2x`cmapspB3fglyfMQ.head:6hhea34$hmtx  Bloca'`ӄA BmaxpTaX nameܝpost+9  K4_< sK?:$X?? *eXXKX^2#   8ADBO@ ` X> cAWr5O_QbHR0f0dC*O+ 6&AQ]P<DgH]Z7jJ:]<]<GEM3@1G cAAAAAWWWW rrrrrrrrsrrrrrrrrr555555555OOOO ____________Qbbb|7 HHHRRRRRRRR000000000000000000000000$$!dddddddCCCCCCCCN******OOOOOOOOOOOOOOOOOOOOOOO+ &&&&&&&&AAAAAA e;UpDYQQQQQQQQQQQQQQIQQQQQQQQ]PPPPP6<<<<DDDDDDDDDDDDDDDDDDHHHHHHHH]]']ZZZZZZZZZZZZ7jjjjJJJJJJJ#:::]]]]]]]]<<<<<<<<<<<<5<<<<<<<<<<<<< f@GGGGGGGGXgEEEEEEEMMMMMMMMMMMMMMMMMMMMMMM311111111GGGGGG<]]7]P^]]=P<<?<sE[>=7<<N3<M]]]ZV8JJJO**:]`<!,???ccG886E2M319GG;0GYGRT<R<<<<<<<<<<<<<<9<<<<<<<<<<<<<<<<<<ccccccccccccccZcZc8cccccccc-cc c+rAO0_b+HRF0OfK*&6,&$_(&9]0A[t]HQd8T/\@]<BO,85"Z]O,%9[]QQ@OO"QOd>[D    ccr>NNfHO0OfA*/6OA(&7b.,rrBC__Q'fN/K0&<>fOA&&6A[_ r;N00//QKh*D>ddn@]<]]PB1 @^X::#F}=,7DDPGZZ7:nd1g)<FH>n!]P33@X]JQDEd<<11<<Uccc*GaE9'8MFDCGaGaE9'8NFDCGaGaE9'8MFDCGa my^ffR`UUUPPuuu<<>fzbxcccT[H]W^tbbbbbp11WhUF4=:UM5:q1`N.*m*T=`l-77*E0SUUfUUUxkUUUoULLUU`UTL >+& FOF4t!!`QVg!!U<J>WII!>>>>>>**D3M  -<`15 {kj# o{ ?f5Y!!KK, ,,M49cS-$,$  Rklmnopqrstuv  !"#$%&'()*+,-./012345:=R^ *)+-KJLNipoqsrVSMT&(uWo69hUl8_7a]~U /9@Z`z~7C\ghnv{~  *,14=E_auz~/_cuCIMPRX[!+;IScgo    " & 0 3 5 : ? D I q y  !!!! !"!&!.!^!!!!""""""""")"+"7"H"a"e###!%%%%%%%%%%&&&<&@&B&`&c&f&k''R'd'..% 0:A[a{7CP^hjox}#,.49@_atz~0brCGMORV[  $2>RXfl~    & / 2 5 9 < D G p t } !!!! !"!&!.!P!!!!""""""""")"+"7"H"`"d###%%%%%%%%%%&&&:&@&B&`&c&e&j''R'd'.."=oY xpo%$#$    ;:.-iodcj$~|yzzTiplG%s޺ޚޙrmcݹjqվջ%y%l  "",028>HNPZ\^bfprxzz||xz RkloVSQT&(mno6789:=MR]^_a~ )*+-JKLNiopqrs;< @ S T!V#U"W$[(b.c/d1e0`,p<q=r>s?xC}IMOTQUVWZ[]\bafjhntuWw? PvOt@wo;g> N2:?AH4;@I   "-./02467C#JEvwxy|~z}JKLMNOPQRS T U V W XYZ[\]^_`abcd*,-358<=QX%Y&Z'n:uAzEyD{G|HXY^_`cdeklmFABCDEFGHIJKLf2g3h4i5j6k7l8m9RSxyz{|}~l16gY]Uebckx}~pqrstuvwyz{| $ !!""##$$R%%k&&l''()**++,,--..//09m:;<<==>>??@@AZ[[\\]]^^__``az{{||}}~~oVSQT&(m6=MR]a~ )-JNio;< @ S T  !  V  #  U  "W$[(b.c/d1e0`,p<q=  r!!>""s##?$$x%%C&&}''I(())M**++O,,--T..//Q0011U22334455V6677W88Z99::[;;<<]==>>\??@@bAABBaCCDDfEEFFjGGHHhIInJJKKLLMMtNNOOPPQQuRRSSTTUUVVWWXXYYZZ[[\\]]^^__``aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~\Ww? PvOt@wo;g> N77CCPPPQQRXY\^ghhjjknovx{}~02:?AH4;@I           " $#&-''2((4)*6,,8.1944=9=>@@AABBCCC#DDJEEE__FaaGtuzz~~vw{|~^oz}/0_bbccJrrssKttuuLMNOPQRS T U V W XYZ[\]^_`abcdCC)GG*HI,MM/OO3PP5RR7VV8WX<[[>+.BQ  X  %Y&Z'n:  u!!A$$z%%E&&y''D(({))G**|++H2233X4455Y6677^8899_::;;`>>??c@@AAdBBCCeDDEEkFFGGlHHIImRRSSXXYYZZ[[\\]]^^__``aabbccffggllmmnnoo~~FABCDEFGHIJKLf2g3h4i5j6k7l8m9RSxyz{|}~  p                       ! " " & & / / 0 0l 2 3 5 5 9 : < < = = > ? D Dh G G H H I I p p q q1 t y } ~  6   F X g Y Z \ ] U d ^ ` e b f!!!!!!k!!! ! !"!"!&!&!.!.!P!Px!Q!R}!S!Zp![!^y!!!!!!!!!!!!""""""""""""""""i""""""""")")"+"+"7"7"H"H"`"`"a"a"d"e####### #!%%s%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&&&:&;&<&<&@&@&B&B&`&`&c&c&e&e&f&f&j&k'''R'R'd'd''...".%**M'>St<x4qBqg*VAc$/:EP[fq|  ! , 7 B M [ f q |  " - 8 C N Y d o z  : E P [ f q | ? J U ` l w # . 9 D O Z e p { (3>IT_ju'2=K ;FQ\gr)4?JUp{"-8CNY'2=HS^itHjZe  +6D #.9u mx  +6BNYdp{ .9DOZs~$/:EP[f>IT_ju[f  +6ALWb <GR]hs~    & Z e p { ! !!!!,!7!B!M!X!c!!""6"y""#+#^##$$]$$% %%F%%%&&?&&''E'''(!()(4(I(T(n(z(() ))N)))*)*P***++7+g++++,N,z,,,-(-a---..2.[../+/o//0 060c000011 11"1-181C1N1111111122 22!2,2:2222222222233 33#3.393D3O3Z3e3p3{33334 4H4Z4e4q4|4444445585@5H5W5w55555555566!636;6S6[6c66667%7B7`7}777788c889$9d999::O:v::;%;Q;;;<(>3>>>I>T>_>j>u>>>>>??D?\??????????@ @@@#@+@3@;@C@K@S@[@c@k@s@{@@@@@@AA3ATAAAAABB6B>BBBBCCGCOCWC_CgCoCwCCCCCDD4DPDtDDDEEDELETEEEEEEEF$FNFqF|FFFFGG/GAGYGGHHDHaHHHHIIZOZZZzZZZZZZZ[[[[%[-[5[A[M[Y[a[j[[[[[[\\\.\D\U\k\\\\\\\]]!]2]s]]]]]^^)^O^^^^_L__`/`m`|```````aaamabb2bbc#cScqc}cccccdddd#d,d5d>dGdPdYdbdkdddee!eMeeef#f?f\frffffg$gqyqrr\rrssWssttDtztttuuu!u)u9uuuuuuvvv&v6vFvVvfvvvvvvvw w w-wFwsw|wwwwwwxx$xDxlxwxxxxyyzFzNzqzzzz{{Y{{{{{||3|N|h||||}}$}H}d}}}}}}~~~-~>~U~f~}~~~5mez'@(h;\yĄ *2:BJYaiqdžɆ׆%KXemuЇAfʈAVk̉(Bbjz͊݊ (B]z݋ (OhxЌ، $P|Վ.rɎ-Ga{Ckّ>{ܒ+Nq0jjjjjw͓!>]{͔ݔ.=M]m|Ε 1DYnі!7L_r×ח0H`yŘߘ+C\třٙ*CXmȚݚ #<[s›ٛ)HjҜ"2CgtÝН&2?LYfsΞ۞(ͦۦ'8IWm~~~ŧ)LTat> 3!%!''#7'377#>I46u1BBal:ggP^ww 8 3'&&'#3#'#! ^X>?odd7m99mZpc#"332#32654&##32654&##cCe98;HPnvYTIML]jT][Vj F:1O NDa_|675,;C=5A*"&&546632&&#"3267_QLLU;\/B)?]44]?-H/'c QkjR0 5!AvRRyB-2W)332#'32654&##WSIqooqID||r 3!!!!!rLFGG 3!!!!FF5"&&546632&&#"3275#53QRIKUAX/?/=\3iaI)e QkjR35"AvR|'E-O  33!3#!OTTTp5_ 353#5!#3_GFFGQ"&'73265!5!7j"4K&GAf)^ 583,+KQrFA=e<bD 3333#bT_^qIiX33!REGH33373#4667##'#Hf\ ]fP%^<\&jjpH WUUW R333&&53#'#R\? P\? d1k4Tp2h30("&&546632'2654&#",Jr@@rJJr@@rJK[[KK[[ RljPPjlRI~||~f 332##32654&##fIm==nHsiVSTUi$UHEZ,HAFG70]+ &%2654&#""&'&&5466323267,K[[KK[[Wn_u@rJJr@p\J3 %9||XBjPPj+*Cd)332##32654&##dCg;PC_umMQQMm#QDL]Y?@A4C-"&'732654&&''.546632&&#"1Hz,2%c8DK5"^!A,7a?>h$, N39F#6\)A'8h 5,:%-:.#*) *B02O--$6!4,( (-A14U2*.!#5!#JFFO "&&53326653-@e9T$?'(>%Q9c 4r^fDQ$$QDh^r4+- 3336673XjiU:e::e:bp N%333>7733>73#&&'#nd^0 @P> .Z`h@  @d-/!!/,,/!!/,o::6"33366773#'&&'#6ķ\\  ZX\c  bS=,,33&2!53366773Xc$&_V%L((L&ZA 35!5!!Ant2F2GQ'"&&54667.#"'6632#'#'2675-K-G}8//Y" %s@daC(d)S)hw1A !>+7I, !7"%8.m[B/B&"!1 )%]!"&'##336632'2654&#"@#Q#BR!W+bh>dG@T@I I&#G #6^"(qSv>EgZPc#&P"&&546632&&#"3267ZLxFJ|I;X)A&8U0/T8-K%(c !Z8@-EI/S8WcD"!&&"&&546632!3267><^ 6N2IwFFqAiuiL,G!$]MHKJC)Yl> D;,C]H 60<L"&5475&&54675&&5466323##"&'3322654&#"2654&##"&'(jvP#5W3)~2U5+50m^[ByX/AA/.BB9Ub78_%"QG@>. &1@+5N+ C44K( 4>-N/?43??34?<%#)&-] 3336632#4&#"]R&W9VRR4<+D+s)6d`#EC,,Z&U 07'& 0j> 3333#'jR^\sqJ"&5#53327MS5++0"8 YVC50=:.!33366326632#4#"#4&#":B2*G3*39R4!L%@"*T'-MIVU%&V*+%&] 3336632#4&#"]D&X9VRR4<+D+S)6d`#EC,,<"&&546632'2654&#",@mCCm@@mCCm@FUUFFUU d;"O AU@I I&#F> *qRv>!\gZPc#&<3!57##"&546632373275&&#"Q-^t?e9,H"BHA!? *E)LͱZ+yOs>" 6MI/S8Wc3336632&&#"D&pC/$7e,s;D G ?LG("&'732654&&'&&54632&&#"6G|,&*fC>=AB^`fd8h$("R/>2CJQW!2` -6$- C7;O%5*"*6%'B(E""&&55#57733#3267GR# D5F#8!I 3Z<>CAD < M"&5332673#'#WRS3=*E(RC%X d`.EC+/QU+63% !336673Sp  pO%G##G%P3336677336673#'&'#rjR: ?2(0i2*.!(2dd7m99mZp 8M& _ %3'&&'#"&54667#'##33267!  +<(>?U^&5  .odd7m99my-.3' p>% + )8&- 8h& 8x&T 8x&V 8&X 8&Z )8F&&- 8&\ 8&^ 8&` 8&b )8J&& -O3#!#3#3!5#.+?IywL6jRFGGOc&MxO&Mx)!*35#5732#'32654&##3#532654&##iOOCe98;HPnvjT][VjYTIML]8 F:1O NDa_F;C=5V>675,cV#&<A*&32A*c&.A*F&.A*M&.A*;&.W)M&W))&-WV)&<W)&3 )73&&546632#'32654&'9:'%(3;8oRzRVZcS P70::XEAd:Dzrc&rc&rF&rM&r0&r&rJ& r;&s) "&5467!!!!!!#3267,;5!K0" --.-FFGG#2 +r)&-!rh&rI&r*x&Trx&Vr&Xr&Zr)F&&-!r&f5c&5F&5J& 5;&5&05M&5&5I&5M$1&&#"3275#53#"&&546632&54632&&#" /?/=\3iaI)e@RIKU'>1  L5"AvR|'E-QkjR/:?'O F& O 0& O) & - & 3NO & 9 N3#5753!533##!!5!OEETTEET8nnnn>5}g_c& _c& _F& _I& _0& _& _;& _M& _"&5467#53#5!#3#32677+<.&$" --.*DGFFG< +_h& _)& -_J&  QF& bD& 0&b)D& -&bVD& <&|c& & |& 01)& -17)& &-1V& <1  35'737!_|RE45Bdq5G&  Hc&H;&H)&-Rc& Rc& RM& RI& R&0R;& R)&-RV&<0(c&0(c&0(F&0(I&0(0&0(&0(l&0(J& 0(M&0(!-"&5467.54663232672654&#">,;+Mk6@rJJr@^W.." -/K[[KK[[-.(<\^iQQi%@ +||0)(&-0(h&0(x&T0(x&V0(&X0(&Z0)(F&&-02-'"&&546632654'7'2654&#",Jr@@rJ>1NA 80,2@rJK[[KK[[ RljPF*3? +]lRI~||~02c&02c&02h&02I&0)2-&-0(&f$0'77&&5466327#"'&#"2654'$C@rJWA48@@rJYA6*,>K[K[+b+tFjP9M$^*rGlR/ 7+ 6)([_cnTFbD3Q/*.M&*.&3*.&0*).&-*V.&<*.!#5735#5!#3#Z4؎2:FF>O c&O c&O F&O I&O 0&O &O J& O p&O l&O M&O %"&5467&&533266533267>,;/]nTN;(?%QFD;-" --.+>~ffS$QDhjs> +O &PO &IO &RO &LO) &-O h&Ov9!"&&533266536654'7-@e9T$?'(>%!)+A ?.9c 4r^fDQ$$QD$*):8 ^r4Ovc&Ovc&Ovh&OvI&O)v9&-+)-&- Nc& Nc& NF& N0&&2c&&2c&&2F&&20&&2;&&)2&-&2h&&2I&Ac&AM&A;&AF&A)&- AV&<  ) 3#5732#'32654&##3#WKKSIpoopI:8D||>e!3332##532654&##eTvIl==mHvkVTUUkn%THEZ,AFG6;& "&&5447!&&#"'6632'267!,Im;VP(C(W:Nob8)L K/uhcq06( M%4@{~Ep[33"&'732653pS%  &S?pB4,mJXD*333"&5463233DL!--!!//ELG-''++''-GY[9c&'nQ &Q &Q&Q&Q&Q&Q& Q&QK *5A"&5477"&&54667.#"'6632#'#'26752654&#"@4:/#I%):~-K-G}8//Y" %s@daC(d)S)hw1A^!!!!98(6a2#3"(8!>+7I, !7"%8.m[B/B&"!1 )%("!!"Q&Q%.9"&5467'##"&&54667.#"'663232672675+<8'(d4-K-G}8//Y" %s@da6/% /)S)hw1A./-D=/!>+7I, !7"%8.m[= '&"!1 )%Q)&-Q&Q+&SI&UQ&WQ#&YQ)&&-Q@&[Q@&]QP&_Q"&aQ)&& -U3@"3&"&'#"&5467&&#"'66326632!3267%3267&55%AH3K#P,7Iu0&=O+,>K(3B @90Aq)!>CLDQC.)).G=J\G98 /55/=e< LY 8#'#"6A "/U &U&)"&'###57533#36632'2654&#"@#Q#BIIR!W+bh>dG@T@I I&#G #62;VV@C["(lPq"Z8@.EI/S8Wc Q<)&-<^ 6N*-:+! IwFFqAiuiL,G!3=$ /MHKJn./(? &&0#j)>&&-#jV>&&<#j> 337%3#'jR^\snJ&'<J0&'J&'0UJ)&'-UJ)T&'&<-UJV&'@ 'gTThhTTg<)&*-<&*<&*S5&*U<&*W<#&*Y<)&*&-<&* <K&*e</)"&&5466326654&'7'2654&#",@mCCm@7.)-@ ?,(0Cm@FUUFFUU T4Rr<+=*>V5Pr<+iS?,< & U 772654&#""3&"&&5466326632#3267#"&',44,1333'61N-.N1.BH.0@ A1)=#1NB8hSShgUSgyKJC>:=e< SR 88==8 &-.f&-0&-.&- .)&--)&-&.-@V&-<G &.G&.G&.G-&.gG&.2G&.0 G&. G)&.- X43"&'732654.54>54&#"#4632*F !4*-)<<)$-)7?Rk^5I&$)<;)(I :/#*"2*"2+0 %1LJ\q)C(%6+*$%:/*C(gB3#5754632&&#"`dHD3 A:>)Yl> D;E"0&/E"&/2YE"&/0OE)"&/-OEV"&/C@ AD < M &0M &0M&0M&0M&0M&0M&0 M&0M&0M&0M&"&5467'##"&53326733267+<8'%X8WRS3=*E(R6/% /./+AU+6d`.EC+/Q: 'M&0OML&0HMH&0QML&0KM)&0-M&0MV!"&53326736654&'7#'#WRS3=*E($2@ :#C%X d`.EC+/Q*1 +:;7U+6MV &MV &MV&MV&M)V&-3)%&1-P &2P &2P&2P&21/' &41/' &41/'&41/'&41/'&4 1-'&4-1/'&41/'&4G &5G&5G&5 G&5G)&5-GV&5<<17326544'&&#""&&546632&&''7&&'77,J-PM#R'PS?mB;gB/T :,: &&I!v?M:k2K)oW  /&\9iHDe8*&Bd'N4B 4)F2==wPyD]3"336632#"&'#2654&#"]R"U+bi?d:$L @VAI H&#FW"(qRv>#\gZPc#&]I  "&'732654&#"#336632( &4<+D+RD&X9VR? ?7/1EC,,S)6d`N[7'"&'73265#5!&H9I24%X= F>C<\5]' +33"&54632"&'732653"&54632pR(##""$   %R<##""J   >3,JX#   l/"&5#533267"&54632"&5#533267@Ck$ #(!--!!//?Cl$ # YVC50>-''++''-YVC50>P'N 33"&'732653'7'7pR$   %R<+:+:>3,JX)8)8^%"&53366323267'>54&#"$dbD(d3.K-8F0Y" %shw1A**R) m[*B . >,RU2I%8. 1 )%%#] "&'##336632'2654&#"@$P#BDZ1bg>dH@UAI$J #E #6@-qSv>EfXSc%$]+"&'##4632&#"36632'2654&#"A$Q#BY[0!!62!W+bh>dG?UAH J%#G #6Sh ?>8z"(oRt=EeXOa#&="&'7326654&&#"'66328e'%M-8S/.O4+G*_BFtGFw ($5$/T78U/5*Z(E*5U1/g/:>YYC:,'  < eBRr<(30V9,G486-4H9;R-^s?d9,ES  F@!@)D(LI@d+yOs>"Z#)/?I/S8Wc<b -"&5466323'54632&&#"#'#'275&&#" ^s>d9+F@B  !DSFA!@ (D(K yOs>!Z8DM?2*@-EI/S8Wc? "!&&"&'73267!&&546632">U6 WP:]$"H+Kj:iE@kAGvJKHMC"6TR  Ef9>rPOr=< "&546632373#'#'275&&#"^t>f:+H"BDTHA!? *E)L yOs>" 6@-EI/S8Wcs& E "&&5467!&&#"'6632'267!)If5}^J+I!%]:Jp?@mEAWP e~B0)06_==a'!#K2@D5CLRRL1S$$.i MF48 8$,:"6%&J@%)+- 6(>!=+"&&546632'2654&##532654&#"GLxFIwD6W2+),Ar_=BG6#4:;13Q0c 9qSUr::-$: ;4FLB-*('@("&%.U=\_7'4"&'732655#575#5!3#&H9I24%X= F><CB<\5<(cu*7"&'732677##"&5466323'4632&#"275&&#"/`)%O%FHQ-^s?e9+F@C  !xaEA!@)D(L:F:a)sLo="0AQ?2*Zf!I .P4R`<' -"&'732677##"&&546632373275&&#"/b(&P%FLS->_5>e;+J BwdFC!@ )E*M;G:a);nLLo=#6[k"I.P4R`N!"&&546632&&#"32675#53SHwFIzGAU)?/2U3/R4!9a ;rRPr=*4"-T=;U-p;(3 %%"&5467336673'2654&'#.7=#TqpP#<8B4#G4"7""7" N4G#4B9";""="<#/"&5467&&#"'66326632&#"'2654&',UeH92-)K('M(-28IdV298(7daEB+,]I +"&'732654&#"#4632&#"36632( (4<+D+RY[0" 62&W9VR? ?7/*EB+,Sh ?>8(7daN[]'Z4&O 0V 353#5!#3VC`CCC8&Q 03 ##73753cUrRiMJ&'=J )354&#""&55#"&546325#533#327!#&  MSTH3'( 5++0"8n)&YV<.&0C@50=JI"&5#533267MR4+,!:YVC*5/ > O';#33!6#"&'7326654&#"'!ORE_1=a7K` )J7&=%F>",2Y7Fb304%%C->F,]33!R.]C*!#'##"'#"&53326733267B2*G3*39R4!L$@"*T'-MI\U&%`*+&%`*3"57##"'#"&5332673326731*G3*39R4!L$Rͬd%*T'-MI\U&%`*+&%`M:I.-"&'732654#"#4&#"#3366326632#  4!L%RB2*G3*39:?0(rU%&V*+%&@"*T'-MIFQI  "&'73265336632#4&#"8  D&W7VQR49+C*8?/)S)6d`#GA,,HS]Im "&54&#"#33663232670C84:+B+RD&V7VR  SH?GA,,S)6d`)/?`333&&553#&&'#`O$NO%;/[':/['<"&&546632"!&&267!,@nBBn@AmBBmA?U > V?DWX 9rSUq::qUSr9OGGOXOOX!K%"&&5466323#3#3#'267&&#"8]88]8-񾙙.##5JJ :rSTq:D@DC_\_a[,3,#5.54667534&'66:b< I"&&5336632&&#"3267MFR#D&pC/$7e,5F#8!H3Z<s;D G ?LAD < 354632&&#"uQ700S3yG (UDc!332#'#532654&##c5S0H3]7==7?6?G ľ++,$c!732654I##337==7]3H0S5S%+++ G?5@GI7"&'3267#"&55732654&&'&&54632&&#"6-T$$   $C;&*fC>=AB^`fd8h$("R/>2CJQW!2` 5'0=SOU6$- C7;O%5*"*6%'B(8'"&'732654632&&#"(>/3 LZ$4&7&F= B77Xd= B7Xc8'#"&'732655#5754632&&#"3#(>/3 LZ$4&7&F= B7:Xd= B7@Xc6d23#5#5354&#"'66GR# D4G"9!I2[<>CAD < EI""&&5#57733#3267FR# D5F#9!P3Z<>CnAD < J "&55#57533533##'#'32675#LH``RRffD"Nt,0&:" a]L:@L(0C='+p2&'"&&546675#53326654&'53#,Kk8+j+8#D33E"8+j+8j ?f82N;C5$bI-N//N-Ib$5C;N28f?M"&&53326654&#"'6632)?c:SR:2E$+- GU7l /dMXK;f@JM@diXO3% #&&'##XSp  pO%H""H%P#&&'##'&&'##33677jR: 32&&#"#&&'#14L4"   0=Sw  j*0M-A<.? J#"J!9!!53366773YU#!TXˤB:!!9 GIl"&55!5!5!!3267/D8FI  QB$,wC,_)/?GF &%"2232654&'667#5!5!3632##+  %&> D,N%9`'3NN- *2$ 5,wC,1)6H9;'!"&&'7326654&#"'!5!632 8U?(!U@-J,WP $!esDm,50&E.AI .C,kWGd4'j6C"&5466323'53!6232#"&'732654&#"'7##'#'2675&&#"CX.K+-L 0C#-L/1C'- )3-,!;5'"+5. xNs?],5Y6Ea3"4JK?E4]:+E*!gSVd: 0"&&55#57733632&&#"'2654.547#HVe+IL E&%A *#'99'l\G':;'}C ,S=> 0#(?2CN@-%%/"$4)A:0'[3"&'73265#3267#"&5#5773354632&&#"a#   "' -L=HK EAL  (<>3,-1> ZH >PIW?4,JXG3>54&#"'6632BR'NG9O,!gL?g=1U77%@D+=H1 5%;-YB:UF$Y!.546632&&#"7V0=f?Mg +O9FO'TA$FU:BY-;%5 1H=+D@%G35#5736654&#"'66323#LfS[KF:P,!iN>e<(B&:/f<=H25$<-YB/L=?R!5#573.546632&&#"3#LL&B(;e?Nh",P:FL\R:=L/BY-<$52H=l>< %"&54632'26654&#"7"&54632,mmnn.I+]EE]+I.%%%% D;oo;$##$R[ "&'73265#'##33&&53#    ? P\? P9B5+2h3d1k4TmKW<< &< &<&<&<&<&<& <&<K !.:"&5477"&546632373#'#'275&&#"2654&#"04:($J&):V^t>f:+H"BDTHA!? *E)LS!!!!98(3e2#3"(8yOs>" 6@-EI/S8Wc%"!!"<&<)&-<&<&S9&U<&W<#&Y<)&&-<@&[<@&]<P&_<"&a<)&& -<%2"&5467'##"&5466323733267275&&#"*94$T.^t>f:+H"B4*! -HA!? *E)L./+B@-yOs>" 6; 'I/S8Wc<'<' &6 <'&6 <'&6 <'&6 <'&61 <'&6 <'&6 <'&6 c4&@ c4 353#533cŭC`C]Cc4 &@c4 &@c4&@c4&@c4&@c4&@c4&@c4&N c4&@c)4&?-c4&@ c4&P Z"&5467##5!3267a,<3#4,,$ /./*BC; 'c4"&5467#53#533#3267Y+c43535#575#533#3cŴC:C@C8 &3267&&#"&&'#"&546325#5!z)%(0 : (M5FKB? B!4 /i/!B-,8C)?)c4 353#533cŭCBC{Cc4&R"<c40&Rc4&R0c)4&R-c)4T&R&"<-cV4&R<c4353'75#5373clC @6PCT6dC-{&R  \ #53#533353#533"&54632qkfilm####CBC{CCBC{C$"!!"c4&R=%c4 #354&#"535#"&546325#533#3!"#!xJA1'$ f *C4%!- C/C 8c#3!!F+-353%!&&'#+`YKa!!2^2G%5o99o5rAO  0(!"&&546632'26654&#"'53,Jr@@rJJr@@rJ2K)[KK[)K1 TiiQQiiTICyRzzRyCHH_ bD +- 33#&&'#+aXjipc:e::e:HRF 35!5!5!F6GG5GGFF0(O 3!#!OTpJfK 355!!!K_21FG*.&2>5&&5467534&'66kkLkkSIISTHHTXwuWWuwXbVmhTThum6",,!5&&55336553drPTPrdus Z su&2'3535.5466323#56654&&#"&y3!=rMNq=!2y1A&J66J&A1DPjB\RR\BjPD=/gGqAAqGg/=$8 3'&&'#3#'#'^X;;.9$Oodd7c;;cZp #  3!#3#3'@?9$OFGG #  3333##'LLL9$Op5 #  353#5!#3'vv@wwX9$OGFFG # _0( "&&54632'2654&#"'\;\4rYZrrZ8CC87CC9$O QlIH # (Z!53366773'eMI  KJ9$O)J&&L'Z # &200#'3535&&5466323#56654&#"'c)/2[=>[1/)c')?::?)'9$OD<^XOOX^<D=;_nn_;= # 9? 0"&5466323733267#"&5#'26677.#"Wm=d92[R  +4@O">* ,3%C*D wTv>8Gs@-? 03cE)E)[68,V@U]]M 346632#"&'72654&#"'>54&#"],ZD1W664J[8Z3.]&8OFG 5@@,8B#SBg<&L;6R dMA\0!)=v>JC:N? 1> 88XYXW.0M6654.'736673#no{K+c*A$1"&&54667.54632&&#"'32654&',U"a[,"&54675&&546632&#"3267&"#"3267@j{A.+,6_=6b)!IU=EDI%MO-R+#5c ND57 :"-: 74&&!(DP(/"7(tH ('6654&&'.54>7""5!#B945]86Yo9HPKy;q[6(K3PM $ /]O54&#"#4&'336632,2-G-RK)Y;NEPFD>*=aB&_83a]H "&54632"!&&2667!,jzzjjzzj=Q&R=)@('A ||4yffy4Q "&5#533267QH0.,< YVCRH41 = dA 34&'33>7.'nR(o}> /c1MV(]FC#!%aH > FrNN 8*3nh,"V_0&-6]8)''&&#"'6632##Y9- + 3G5YG? D ,ZGTE'&33266733267#"&'##"&'TR1611S  &'P,!7CE.,BbW>.:42 2JB(/!&&'73>73tCR&H9 "=,S 7Q5]4H?ATW\H:'6654&&'.546675&&5467"5!#"3267&&#"B858`9,I*0?)%+-7Q)@!!%-R4.P2SG $ )L@0O7 H4)?CC>:#6H"B/05 *2F@"&&546632'2654&#",@kAAk@@kAAk@FQQFFQQ 5#'665#57!#327:0R eE\-  ?;FX[(fkkb?D)_ZF0?]M!46632#"&'726654&#"]=g>kr=a6*Q#'@&AJ&B(#IUn7tRv>(AjA.Wi?Bk=+I*/5.?TS :pPUn5FcDKk9D`R1S4Y[TbB"&5#57!#3267xA4F 0 GD$>CNE"@ O!"&54654&'332654&'7&bqP&=$@TP;i hi'N'B&8 &e*1<bg3l?;w=Wy?,M,n#5.54667534&'66:b<qA|"6."&546732654&'332654&&'7#"&'#BZ5&H)*.#(U($,"I&1UE#;8 xyM9!=qMLR7C=''=F4TW2MH):{Uzz'**'ZL %'6654&&'.546632&&#"B./9hAHvC=U*<)2P./Q2:?!, 4aONm9'5,O59D% +"M] )5".546632'2654&#"6654&#"I(TE+-[E/V6<5P\:a?;MEHH? 15g@*;@ 7ZBBh;%M;6TiO>Z1HL:;Q #6E'!6W@88YO +7&&""&54&'332667.546632@pVZH5E\hMH3)@'kS#6Z6|:g >. x>c_'/3"J>0|qBR&7R-H,M,n%M3 )6654&#"5.546754632S>N'&#O:f?=.@+/P>S@JR>e;+=y>fWS`;۪9nQK604dDQ\k_qPs?+V*9?&[&$]M&Q &Q &@&O&O&"6&Q &JO&JdEA&34&'33>7'667.'nR(o}> /c1MV(!I_'FFB#!%aH > FrNN 8*3nh,4d#)X+"U_0&-6]>M %2654&#"5.546632,HQQHHQQ#8\5AlAAlA4Y86gUUggUUg?kIRr<&E}Gx+=F2`+T}` }h73Q#\W3773#6\ /c')9$O # 4J 7E"&53327Z3,S   ;61PH><|#<|#>p!.M //m/j/l/i2'n2'kA3M4JL&Nx'6654&'7 !*)BI3& /.,#-w.5467S3IA )*!-#,./ _'7(2L c '6654'7'7 B6@92K& 5/0.,5  &&5467'7"9A5 Cl2K 5,.0/5 &  '6654'7'7 B6@97L& 5/0.,5  &&54677"9A5 C9L2 5,.0/5  #"&&#"'66323267'6654&'7] * ! * m %;?:P ## ##! '! #&&54677"&&#"'66323267G$:@:%  * ! * !' x ## ## 8c# 3!!32#'32654&##c~Fk>ltTSUTrF$OBg`F9C?5c#`DB !#'53>7>7!3#5!"     9I Ix%Tk8ZZ2-cWAimF2ѼrW/3'&&#"'66323337>32&&#"####+   ,%/5L5/#*   +Zn+"&'7326654&##532654&#"'6632-Hu2/,Y:,G+^VJ6XNK8.P-$k=^u3/9K@l .39+&:)?<@:745"8#-YO4O SD?X/N 33373#467#NP ?\P ?4k1pW3h2dN E& fD3337>32&&#"##fSkX-/ Q\k25N $$5 "&'732667667!##: ":T+6 MKNjnpJZZdk(HO  0(O mfA**./,"&'7326773373 ' Yz2/pUL K#܁$=F>5&&5467534&'66p||pLq{{qMOOMMOOM _qo}]]}oq_XR`l]PP]`6"ODM 33!33#5OSSG DI2ѼA!#"&&55332673<(Km:RWP':T&)_PS@%p(0 333333(LLLIIp&DP3333333#5&JJJ@ BII2Ѽ= 3#5!32#'32654&##ɶ 7Ci=zh>3MPTP,JF'QAiaD>F<<7! 3332#'32654&##37L$byvd%KMMMRLWbiaD>F>:pb! 3332#'32654&##bTyHm=nzoSWVVm&QBiaD>F>:."&'73267!5!&&#"'6632Ch)."O3Vh dV+K.h=S|EG} 2-4"(||Gho!6 1NooM,4 %2654&#""&'##336632|/33/-55-O_JTTK^LTdd=~ww~I핊!##&&54663335#"y`AT;hCnnLRR[ODQ#pY4A@?rc]r0a@#"&'7326654&#"##5!#6632$  ,ND2*T7>a80K C;4JC JFF+\JNY%c&B*"&&546632&&#"!!3267`SIKT<^.D)Xl l]/J.'c MooN1 6"ohG||("4-2C_ _0Q > )"&'732667667332###%32654&###     Wml[_\ !0A?@C MFIljWbiaJYh\b%P>F>:'=333332###732654&##'LL#WliYp?@AAWbia5D=G@875!#6632#54&#"#7bmRED2*SJFFZfC8 JfDc&N c&/,E& KD  33!3##5KTTEIp'3#53533#32#'32654&##SBHm=~nH>SQSX7D}}D"L?i]B;E>50("&&546632"!&&267!,Jr@@rJKq@@qKFYNYFJ[[ PmmNNmmPbqjjqzz&W33366776632&&#"Yj@:4  :e::e:IB M%%<3!73!9F < 3#57!!3#PPҨ,:&F>Dg43'&&#"'66323337>32&&#"3#5####+   ,%/5L5/#*   +o- ;'nD-5&'7326654&##532654&#"'6632uU/,Y:,G+^VJ6XNK8.P-$k=^u3/9K3X8 V9+&:)?<@:745"8#-YO4O SD8R2fDL3337>32&&#"3#5##fSkX-/ Q5 Bk25N $$2Ѽ5X3#5!37>32&#"##ͺBK'*  IQ@JF44M #%5ODM33!33#5#!OTSG @Q2Ѽ5AD* 5.546632&&#"32679Hp@LU;\/B)?]44]?-H/ N2 UcjR0 5!AvRRyB%/&2&2!5#57333667733#Y&Xc$&_V:v%L((L&>6D4333667733#5#'&&'#6ķ\\  ZX<A%c  bS=,,2Ѽ33ADF!#"&&553326733#5;(Jl9RVO&8TG F&)_PS@%2Ѽ[336632#54&#"[S9&Kk9RTP%7)^OS>_ WE& 8E& OMrE& ;&N &0(0&0(/,&/,l&QK.32654&#""&54>7>76632NMAGGB%P%p|,RrG#6!;W;!!Z/<[39dd{gRKY&2 ӥyT)  K  .WI()6fGMr>h 332#32654&##32654##hTi.'+?qYB97>B?9B(4  65HC%""&(L 3!!yC]*T-73#'53>77!3#5!  FG GHZ`4#SN]4D R,3'&&#""'6632353376632&"#"#'##5#"  '<*7P7*;'  "Vi?P?i])M*&"&'732654&##53254#"'6632;k4$*X-LRMITH4L&"*c@\vW2= *6"-*)&@KJ7"@CK! 75FLd3336673#5467#dP% LP %']/;'^/<d&" n03337>32&#"#'#nR;&*  5[l*-M)a"&'73267667!##J      GS L16OOCC@#33366773#54667##'&&'#@d\    ZdN  X>\  ::;>==>;] 33353#5#]RRR<*]3!##]R]]3+PB!#5!#CC]1/'4 38#.:57#"&546632'536632#"&'27&#"32654&#"'CS*E''P.DJ*E() #%.+),#/!!!͛J yOs>JLqRv>J#0!gTVcgZPc"@3^T8 33333#5^RRGG]]4X!5#"&553326753*&dmREK+RSazz=4: 333333:RzLzR]]:TR3333333#5:RvLvR<A]]]4#' 3#5332#'3254&##ɦJWkkWJBy;>BCHPQJBY.*F 3332#'3254&##3FKDQbbQD5|q,,49VV>Br(6qX%  &1P"&&546632&&#"!!3267ZLyEJ|ICCttCHPQJBY.*<F033366776632&#"Ta    051   p#I##H$HDJ$%3!73#B]H  35#575!!3#JJy٬8C>T_13'&&#""'6632353376632&"#"3#5#'##5#"  '<*7P7*;'  "b/:!i?P?i])M*T)'&&'732654&##53254#"'66321[,$*X-LRMITH4L&"*c@\vW2=eT  $6"-*)&@KJ7"@CK! 75=KnT=3337>32&#"3#5#'#nR;&*  5<?!l*-M)a4!F3#53376632&#"#'#ʩ_*:%  'O_ClA'M+e]T8333533#5#5#]RRGGJ]4PT'.546632&&#"3267/@c9J|I;X)A&8U0/T8-K%FX @jHRr<*5/U87T/$5> 33%5336673Tn  nP%J""J% 33%5#5733366733#N9Tn  nP8%J""J% X>@T037'33667733#5#'&&'#@[M  IWLG$U!Pk+,i4p.+pXT+!5#"&5533267533#5(&blRDI)RGGR^~~:3]4] #R&  J'Q& UD& Ed&" <&(<1/'&-1/'&-<<&e U&3"&&5467.54667>7'32654&''7`;iW"?(9iH(-6FT%(@$-E(6c&>#BJ=.NZ 4aB\n-12/  K  #BT;Dj;-C&]I54&#"'66326633IlMDG-M/+dC`pJW=1`t57F- /,5gU<{OG9*"&'732654춮&#"'6632Rq#* Z=AXj~q`G;-P ,(g=<_8M;+G,?h 7#6.@59F?E2/6$4#-&H4:J +B,8R,'!~ 735667#5!533#"A?Xcc=/47tB8 ~!"&'7326654&#"'!!6632Ul%) T@-J+VG(8",i5%=c;Cl 6!6-$B,BJ3G +XEEa2M )"32654&"&&54>32&&#"6632@&W& UF9NFAEo@,K`4;X.B$3W7'^0Yn;aH(.\aM?AFDf`U''34wg&-cb=\4F~3>7!5!1M7?S0[CG3H^D*7"&&546675&&546632654&#"2654&&'.Hi9(?"(93Y9^h9(#9!6fPB?5C-MGM5[8.?X -P2,@.J21J)`J-O+<./N-h:F/B8/&2#?1-3"B05EC  )3267&&#""&'732667#"&546632EC&V' SG9Np:X .B%3V7']1Xn;a8FnA,K`AF(-]aM'44xf&,cb=\4Dg`U'G "&54632"6654&267,j{{jkzzkC(UC 8 U W;E)~[F)a~ 353'733at*@DV0DGJ #"&54632'2654&#"7"&54632,j{{jkzzkCUUCCUUC%%%% Bsywnnwys$##$a> 353#566733a8M=D5DE J356654&#"'66326633IDG-M/+dC`p>1n@:H- /,5iXL\G9J*"&'732654춮&#"'6632Rq#* Z=AXj~q`G;-P ,(g=<_8M;+G,?hV7#6-A7;E@E4/8$4#-'I4:L +C-:S-'!> 735667#5!533#!@?Xcc=1.7cC8 >!"&'7326654&#"'!!6632Ul%) T@-J+VG(8",i5%=c;ClV6"5,$C.DJ7G *YGFb4NsF>>7!5!1M7?S0J\DG3I`DuC J )3267&&#""&'732667#"&546632EC&V'UH9Np:X .B%2V7']1Xn;a8FnA,K`zCJ(.aeN'33xg%-gd>^4DgcW(GJ "&54632"654&27,j{{jkzzk2UC;'U 7Syp(+K4S|sa> 353'733an*@DR/DG #"&54632'2654&#"7"&54632,j{{jkzzkCUUCCUUC%%%% B# "" #a 353#566733a8M=D4DE 35>54&#"'66326633ImMDG-M/+dC`pJW>1`v5>N, .,5p\<{PG9*"&'732654춮&#"'6632Rq#* Z=AXj~q`G;-P ,(g=<_8M;+G,?h 7#6.B9;G?H418$4#,'J50%7fB8 !"&'7326654&#"'!!6632Ul%) T@-J+VG(8",i5%=c;Cl 6!90%D.DL32&&#"6632@&W' UF9NFAEo@,K`4;X.B$3W7&_0Yn;aQ(.aePADGFicV(&36|j',ed>_5F3>7!5!1M8@S0^EF2JaD*7"&&546675&&546632654&#"2654&&'.Hi9(?"(93Y9^h8)#9!6fPB?5C-MGM5[8/>X /R4-B/M42K*aL/S+>/1P/q>  .0 ,.]4P;&%%'E;Xy}'f+'f 8 #"&546323"&546323"&54632f))(()))))))) *!"))"!**!"))"!**!"))"!*u%'3"&54632 P ++++X^^*$#))#$*Hu73"&54632 8 (++++^X^)$#**#$)m%7&>54&#"'6632"&5463213$77&A1"\:Sg$52+++++@3/1)8-#.UG);10:'*$#))#$*y<%"&54>'33267"&546323Sg$52I13$77&A1"\3++++UG);10:'+@3/1)7-#.)$#**#$)`c''3n`nn`&s^|"&5467632+'3MC.6 '*^@8Kx"0O4( "+^'667#"&54632/6 (* (2L^0P4(#+@9Kv^^&sf^&s{f{'s^&&54632#"'cCL2( *'  7.^#vK9@+#(4P4%'57^'4P#47'7'7''4"#PR4&s`4&sU+iU+iU+iP 75!PHHX 55!XHHP 75!PHHX }s%"&&546632,'D**D'(C**Cs%B,,B%%B,,B%g%"&&546632'2654&#",/I))I//I))I//;;/.<11>>11>7!  u7!'35#$u"-753%uu753%3'umuF+e73%eDO7377'G)OoKmlc%5!+Bc%uN%5!'7#+nmNFTe%%5%3%euO%%5%3'5G+OKls7!'2654&#"(;MM;:NNs& M:;LL;:MX455!Xpp>z==>Aw5!>A66f "&'73267,e_mm_dB>):55:)>BP &&5467hyyh-d``dQ䑑Q*U~~UzP '6654&'7-e__e-hyy*U~~U*Q䑑h!#3Ә\//bhw53#5!b//xh/"&54654&>54&54633#"33^[ ?;;? [^=436'44'6348M7X2#4$/^4M8/(!+[/13  313T. )/ch/5326654&54675&&54654&&##532"#c336&44&633=^Z ?;;? Z^/) .T313  31/[+!(/8M4^/$4#2X7M8c`3cHJfQ3Jc`3JHfQ33JJJH0HTo,7'7'7737'*l 0 l*xoF.77.F 5'37' FP;GG75'75'37'7' FPGGGG[3C"&'732654.5467&&54632&&#"6654.'7\ 2=*)-)@H@)3(LK2Q(9#*&)@I@)2)Z)@H #(@H %@&!-)%)>.,A(4N"5%%*>.0<';N!+ &"", )H %"&&5466333>Fp@>jC+6Q.`KO])R &ȕk]'zy;%?K7&>54&#"'6632"&546327&>54&#"'6632"&54632f"&$%')D*>L'&++++"&$%')D*>L'&++++*C746!!.1!"K9*B76>'*$#))#$**C746!!.1!"K9*B76>'*$#))#$*W;%+7%&>54&#"'6632"&54632%'3"&54632~"&$%')D*>L'&++++ P ++++*C746!!.1!"K9*B76>'*$#))#$*X^^*$#))#$*%+77&>54&#"'6632"&546327'3"&54632f"&$%')D*>L'&++++ P ++++*C746!!.1!"K9*B76>'*$#))#$*X^^*$#))#$*^)7''3>54&#"'6632"&54632 F0"?=)F0#f:;W1%55 ))))LLk,6'-< ,&.)F./B0,4$)""))"")t<)%#773267#"&&54>'72#"&546Z F0"?=)F0#e;:X1%55 ))**LLk-6'-< ,&.)G-/B0,4$)""))"")3!#/xbw!#5!5/I~33BV[/bw~533bBV/,h !#3%3#<++\///bh 53#5!'3#b<_++///!#/bw#5!5r/_h33BӘ/bhw533bB/R:;"&&546632'26654&&#"7"&&546632&&#"3267,L{GG{LMzGGzMCe88eCCe88eK-I,.L+#2".86,&5 RffPPffR*IWXHHXWI^/Y>:U.'K;BM*:*3"&&546632'26654&&#"'32##532654&##,L{GG{LMzGGzMCe88eCCe88e(r9OP81''*+&' RffPPffR*IWXHHXWIjk8=BAs&)$ p?-6"&&546632'26654&&#"'532#'#532654&##,4U33U44U33U4*C''C**C((CL /..#)?2Y:;X22X;:Y2%(I//I))I//I(=$SFFfnD#53#333773#57##'#[``G-,G7G*Hn666rPPrʉiibD&:"&'73254&''&&54632&&#"733773#57##'#}!6!%1.%9/2#. :tG-,G7G*Hb%'  '#'1'   '##8 6rPPrʉii1p"{,5"&&546632#'##"&546754&&#"3267275UOPNREZ,2G'5LA5&- $9 (:+/E% "0)?00H)$,1<<<<<<<<<<<^<<l^<]<g <C "&54632'2654&#",HWWHHWWH+66++66ldbllbdl3NONMMNONO 535#566733{i)54r6)6O'>54&#"'66323C[/.'1&K+>N+J0%9P>&, ##)A>%CH-6C&"&'732654#52654&#"'6632)3Q*9!$4;9+%0&D+7P'(+3(C*"!$!F()"""81#.2&$4O53533##5/::::I! tt.hhC"&'732654&#"'73#632+7N*(G'36*%  (9QU*"!:1%(.8`C@9:,$#,i[Ja/, HK)E8%<#O >7#5!6)%18Dmf87$>nrDC%2"&54675&&54632'6654&#"2654&&'+GM-'!#H<>H(*(O-)#"&6).3",?,&7'.98/"-0%.?# ' ))C %73267&&#""&'73267#"&546632+*.6)#.>%3&0C,@?E%?(JX0Q^#-:;- - GK(E7&<#i\Ia/".5467X&02:-5&'4,RZ9T|A>wBAw?l"'6654&'7.5&&5.92/?wABw>A|T9ZRD] "&54632,g'66'#"&54632#5' &&%-E= "&54632'2654&#",=NN==NN= .. .. XNNUUNNX2::<66<::a1!5#56673"R!)2* =356654&#"'66323NS&';$6>G2$;N! !#52(L-5=$"&'732654#52654&#"'6632+"D 1#`)((>"/;8 'F '3&&,(7',1=7573533##5q.ad9229Jaa*JJ1"&'732654&#"'73#632-)= -%$  2>G ' 6F 4//;= #%"32654&"&54632&&#"66327(#,:OVD, +3-34A#&"RFV[) ;95*+=1 3>7#53* *-4RM)5$.SW5=%0"&54675&&54632'6654&#"2654&',8E( D.2A!%H!, )5"/' 5# % %//%!  %!%3  %= $73267&&#""&'73267#"&54632#,(-)3-33A2;NV'#( 995*,:3<("&546632&&#"3267ZF_0M-#2 !/=;/)2YO6L') @54@ ))b"&546632'53#'#'275&&#"?L)B'+@56,'&'5.XP5K)7|)$5(>57="3&&"&&546632#32678$=20P//K*HMF./6+-/)(K54L)SD 24 ("i#5754632&#"3#OOAE/-!&)%0;G/ *#2*6F%"&5475&&5475&&546323##"'3322654&#"2654&##"&'*FO5 'M5 R I5?G@>cV(((($5@%#; 4,+(" *6>0 5: "$)/B!%! (( !%%  b36632#54&#"@8$85@$(ׁE!A>)(g#53"&54632<%2|g7"&'73265#53"&54632.!!/ =1 /+(2'?$ b 3373#'@H}GkFʠCTb"&5#53327}53Q #<883  1F 3366326632#54&#"#54&#"F21 E5!5/>#!,>#",A-<$F8&,/&,/336632#54&#"57%85@$(A0!A>)("&&546632'2654&#",*H,,H*+G,,G++11++11(K56L''L65K(4@45@@54@ 336632#"&'72654&#"46AD)B&.N(4'.*)$YK7M)7j>:3<57#"&546632373'275&&#"v4?L)B'-4,'&'5.o8XP5K):(>57=336632&&#"6B'# =AK', 6(2'"&'732654&'.54632&&#"4+L7%(&8 7%G@$?-%"4 9%I) #(5(  $(90"&55#57733#3267qH8MP5#, 1J=0dd2)+/ "&553326753#'# 74@#)@49A=('2! 3366773zB>>>wA004337733773#''#Y@,082+;WK*,A[[[[[[7'3366773#'&&'#ofD+&DhoE/  +B  BE E"&'7326773366773  & @E <><2$@//2A 57#5!3ս!2!2 "'7"3&&"&&546632#3267Ip-f4$=20P//K*HMF./6n)x{+-/)(K54L)SD 24 (" "'7"3&&"&&546632#3267'"f-`$=20P//K*HMF./6x)+-/)(K54L)SD 24 ("2"3&&"&5467#"&&546632#326732678$=2%* 0P//K*HMF./.%  +-/)R!*(K54L)SD 24 (/  "&54673&&#"'6632'267#*IS?-/>$G_,G,$77XD 11 (YP4L*2./1,g4632&&#"6632#54&#";?# "8$85@$(Z;G0*#Q!A>ļ)($%"&54673366773'2654'#-'*rA;;?q)'  +$0"&&"1$+* "/* g5&&546632&&#"2H+G)/D"/ +5<= M:*:$(*%)B "&546632373#'#'275&&#"?L)B'.456.%(%6/XP5K)$5(>57=*%"&'732677#"&546632373'275&&#"A4--3?L*C%-5QB,'(&60,+$8WJ3I(=C*<23;g 535#533"&54632r|222]'<zG53ޜ//E5!**=E5!=**:SA)7'7&5467'76327'#"'72654&#"f,T$S,W0?>1W,T$T,X/?>1o1EE11EES-U1C#;V-Z%%Z-V1D";U-Y&&J<.HQH.YI<7J,"?22<.HRH.aO<7eq9)1&) ';+?Q+0-&%)=.@W,M(356654&'#57&&54632&&#"3#!N>>uc s_>U0;*AF $$H2`8 4 >Uc+ /A4< 84GG5#~!5#535#5333667733#3#U\!"\R0A/@!C##C!/A0:61"&'#57&45447#576632&&#"!!!#3267vb@;;@j3X1<&I[&XE+A1%] u,,v-!/!bV1  1Ua%",+2q"5&&5466753&&'667:Yp5\83,@(. 4$H'@87A!h {jEe<jg"44"gWCX O X1&"&'732677#57376632&&#"3#*4- hF) PT1 !*&Ga >PL;8dh >%;"??=\4`"/5""&7&&5467722327&'667'7&'m <>=Ip_ 0   0 +!1:21 N2 0  S<67;H R{%lk\iq$/ ",%0d[ nHN635665445#573&&'#57&&54632&&#"3#3#!N>>|W ^Ms_>U0;*AF $$H2`8,!.!Uc+ /A4 1!14GG.(~#'+3'5#575#57533533#3##'#73'#'3'#3'# ;@5KKKKT^sAIIIIT]t :bLJa3+D+0D0J0DDD*G~3#575323###3&&#327#]]4-.C9vznb[7P,S"1CC,S.;D2=F11*H~'-23#575#575323#3###4&'#366'3&&#327#]]]]MrXNMWtMFG3;;k#t(:(t5?. .@? : ; FT#5.546753&&#"32675#537Cf:|g<.O1<&W_]S :tCXndR`ec,.!y{E> d=:"&5467#573667#5736654&#"'66323#3!3267CZo PE.-F!8/)6,!N=5Q.a3>;-I!&$d XO(+ ,.&4!/%.(G/-1 0)+6) 7%/`""5.546753&&'667JEj;j5/O13 "71!P2NGHMncRaa`+/#,&0dp  l ~753267!573&&##5!#3##'lOS`L ]LOEJH]J]C:<,.&D1H1LX-~"'75'75377>54&'7]s]sT«%NB(Ed ++5H+*6ǞQ+[HQ+[)=' To57!~!5'75'75#5!#77ˊA+KHA+K@@@(MH@(L7!~ !#57!#5!R,0&M11*1~!35#575#5732##!!32654&##ttttBh<=hA^TMTTMT,C,6$N>@P&C1HABC7E~35#57!!3#3#OO|4GFx8| <p7'77'7M1!!1 -- <ph <ph=' zM&h 0? '3?K"&54632'2654&#"'%"&54632'2654&#""&54632'2654&#"4AA44AA4##$$f4AA44AA4##$$*4AA44AA4##$$F>=DD=>F*,.-**-.,:0F>=DD=>F*,.-)*,.,*F>=DD=>F*,.-)*,.,?~' sM&h<~' sM&h U' sM&h<~' sM&h <' sM&h <~' sM&h<' sM&h<' sM&h<'sM&h<~' sM&h<~'sM&h<~' sM&h<~' sM&h<' sM&h<~'sM&h<~'sM&h<~' sM&hS?~ !-5#56673'%5#56673"&54632'2654&#"R!)2mfR!)24AA44AA4##$$* {:<* F>=DD=>F*,.-)*,.,<' zM&h Uh, %5#53533# Bh>>U+i5!U+>>f~ 7'7'77',,,,~----U`3 "&54632"&54632'5!,>>yU&kUT@'&)x0h%%5%u-0>Ok0h75%5%5k-u0OO>U 35!5%5%UR҇>>JGI,,IU 35!%5775''5UR҇>>GI,,IGJU, %5#53533#5! B>>>>o 3#''#oHHB11B~UAS77#537#5!733#3!pLg[ L=Lg[LA>>>>L ".#"'66323267/)')5H&/)')5H""4G6""4F6L &kUhi%5!5!h>Uhi7!!Uh>`h:7546632#54&#"`5\;;\5AL??LhAa55aAMTTMUh,73!UBlhz>\'3%"&'##"&&5463236632%27&&#"2654&#"7O&)5#$=%U=2DO6-E(W@(4$+/R,15/#=!>:=-)F+NY<)5@,M2TfSX1+-)(6=+0?17=2"&&54632'2654&#",!9#K2"9##9""**"!**:&;F 9(&:..#%..%#.h3Q"d&XW''3!"QdTE'L  *73267&&#""&&5466326454&#"'6632C-AY!F!IIh0S34bC)OKA9& P.asCw;Fmc*"Y.W;Bf:&"}p4 #p_b#"'732654.546632&&#" *  <9  )  ;>RN7~7Ag<>UM6~~8Ah< p#46632&&#"TK<9  )pAg<>UMbT"'732653 *K<>RN_Ah<>G4'736673/Gt<_ -;  m+-a&2u 8#33736677#8^X>? !p9m7dd7mF 35!5!5!5!5!FLGGFpOC R'tOOF%~ 55!!!Fwx5FF5GG4$~!#!4Ux S=".:"&546632&&#"3267'77'7"&54632'2654&#";P)B% . $1.%% 6v1!!1=NN==NN= .. ..AVN4J'' @33? '--XNNUUNNX2::<66<::t '6654&#""&''66746323267;C!)O9Ih\5%+!C;F2*CP[4 tePK^NM<3(>1".54>32!"32673!2554'&&#",9cK++Kc99cK+b6T5_"&(r G&(H 4\zFFz\44\zF <=3V7 %%77706 >7? 60g7 7'%j? 607|6/ ?95!!!!!+p]hCCp  .g6>>6g!77'3'#'##O.  .g6>>6**oCCh]F'7!5!75'!5!'75*oCCh]o*.g6>>6g.!7733737*.g6>>6g.*o\iCCo*%d%'7!'57!'7d-~T~--~~-&&&&U0#'7'73'7.&&&&9.~~--~[~.^6%"&&546632'26654&&#",Ek>>kEEk>>kE4R//R44R//R^>kCCk>>kCCk>20T66T00T66T0Wu7!WuVIg-7!%!!Io\g:1dIg- 77!%!!I;3Xg1q7(]!K7b% ,  K  >iX753>i>iX753%!>oFi,[>m.H73>m>m.H737%%>,YmM>UD%5!+U>UD%5!'!+Uh[*mH%%5%3m%*mH%%5%3'/m%MAmqH73YmmCH%%5%3@Ym%Dd0#7!'26654&&#"7"&&546632DCf;;fCBg;;gB1N,,N12M,,Md4;g@Af;;fA@g;1.P34O..O43P.3[%R/%"&&546632'26654&&#"7"&&546632,DqDDqDDqDDqD4Y88Y43Z88Z3%@''@%%@''@[=qNMq==qMNq=20Z@@Z00Z@@Z0:#A,+@$$@+,A#q 7!%!!=M4 v3=+4 7!667%!&&'73667!=66)4Cp#VE+8%= jA' v3#=2*=+^ M@&:~?nab&'73>7;\8)D$rN6Ou&&>CwM2IM!"&5466323'6654&'(=(G."2 D. #A<0N'%5! 0[9'E )/Ti7J&Q!"&546632%#"&546632h(<&D,"z.L-(;%D,".L'%5!<7J%'%5!k*|7J& O#.5463236632.Zr>T=1JK0>S>r ayj6bd5CC5db6jy O47"&546327&&5466326632#"&'#!5>7#;JS:"2'C))C'2";RI<%G /F,z,F0 FUCFG -O%8 8%O- GFCU&1KV((((VK1&S#53.%% om O#%#"&54>73#"&'#!5>7F)7J@qUVp@I8)E /F,z,F0 4&BF-Q]{XX{]Q-FB&4KV((((VK 'Om+7EMU%"&&546632'26654&&#""&546323"&54632"&'73267'254#"3254#",UKKUUKKUGl==lGGl==lfBQ"?,,@ "R 'KTUKKUTK->oIIo>>oIIo>$##$$##$E= '$$' =E;;Y'5AM%"&&5466322654&#"32654&#"267'#"&''"&546323"&54632,P{DD{PQzDDz:DQ "@..@" Q    ;F{NOzFFzON{F$$$$$$$$C> '&&' >C  %#.5463236632.HSRC)oVBWWBVo)CRSH /@23CaGbg;JJ;gbGaC32@'m$8DPY&&#"3262672654&#""&&54632#32654&#""&'663266726+<  <=cTQ:;zqpz;jEU~Ey:E3U3#p"  "Y]crWXrbt .    28P6.@GQWKwF)S^cPJ ED2M*:6| k,(/78.(,L8!\#*8F%"&&547&5467&&54>7'267!'66327&&#"66327&&#",j@[$>/ *0/ />$[@j>KKZ! ! "@;_?6;  'O ;6?_;@_9::9##A77A##A77'rm %;IW%"&54632'"&5463226654&#""&'&5467663266327&&#"66327&&#",a`hYYh_bDm?oo?mDY"?mn?"  # #  # #  m*6SMMS6*9v[zhhz[v9-VS &%b__b%& SV%!!A77A!!A77-+X!*'73546323%37'6654&#"354&#"U((.YPPY.((,,1##1I2332F$$W``W$$ )#00#) $;CC;<*26654&&#"5#535.5466323#,1N--N11O--O<^5>mEEm>5]=+-P34N--N43P->e?c e)726654&&#""&&54663275%#71N..N11O--O1El??lE%A;:>lB-O43O--O34O-9=jBBi=:?[Bj=[} 8%2654&#"'7&&'#53667'76675373#'#5&&',;MM;;MM+X ll V+W+@*Y+XllW+X%/@*M==MM==Mm,W+>)X,X tt W,V$0>.%Y,Ztt `3'377''#L(@AA@@AA SRE1' 33%!''#1HPjaRRah3<}}h^|^= 526548:<<:[]]22,-21ODDOv= &546"3v[]][:<<:ODDO12-,2;5&&546632&&#"2H+G)/D"/ +5<=[!L:+:$(*%)B v373'3] ]g]]WW'3']]W%"&'573267I3i  +5+?<36 + 8l 8 8>_3f?Y8 8l _B38@ALY; 98Ln z24 5# ".9EQ\gs"&54632'"&546323"&54632%"&54632!"&54632%"&54632!"&54632%"&54632!"&54632%"&54632"&54632'"&54632+z    `P  d  M  { &R$mn&%R8l '7A:88mc'7I/s7.M'7CU'.8 '7+:8)8c'7$/*7 /'7B9/U/ 8'73'##rRr#v8 qF'73'#$iVi$nqq]A".#"'66323267t&7/4& 7/A",#;M"-":M{I".#"'6632327w)86-)(86" 9BB:AY5! Y995! 99Y;"&&'732667,6B!3, !+3"B;-E%00%E-<"&&'73267,8DD&12&D C<*E&+>>+&E*J "&'73267,FF2/++/2FM4#11#4ME"&&'73267,7AH#**$H@$;!#33#!;$Ln "&54632,&&&&L####g; "&54632,""""  L "&546323"&54632L !! !! 0 "&546323"&54632<| '6654'7  SDKD<(+61,++{h '6654'7  S AIC&'0)&+*;-"&&'732667'"&54632,6E#00""00#D7  ;-E%2 2%E- "&'73267'"&54632,HJ.5..6.KHM4%33%4Mt9 "&54632'2654&#",4::44::4!!!!98()77)(8%"!!"p "&54632'2654&#",*77*)88)2()22)(2$8'7'7.W:4.W:8l'7'7+\96+]8  >'737r#vv#r> qq M'737i$nn$iq\\q$I03J$ Qk8'7'7c:Wic:W8jl'7'7j8]uj9\  8'>32.#"3!B66B"3+! ,8%E--E%//I '6632&&#"2FFFF2/++/5LL5#11)a"&54676632/ +/ )'$%?"$>p &&5467L+EKDS >)+-06+)c'665#"&54632   +)"%'$%?<|5#5353Sss5H/Hx533#5ssH/H=5#53Oo=^/# '654&'7+T@ W)L &?Bj &546"3jEEEE&''&3-.4$  -53533Y6Y/jj/5#53#YYj//j 5#53533#YY6YYH/HH/Hj53//)n 0 z '6654&'7?.$#A4U(&$"+,? &&5467SA4VO?.%"?#",,)z'6654&'73?."+(6#&U(`H +,z'6654&'73?."+(6#&U(`H +,"&54667332678+;':%-$ 0./2(;! '"&5466733267:,;'=%," --.3(> == >599::99:A{I 7"5533267XM@  \/  1?U5!ګ::fX '6632&&#"ed_mmX*>AA>*:55LL "&546323"&54632''7{#R1Lus" "&546323"&54632''7|%_5lw$4 "&5463277"&5463251DKsS LL "&546323"&54632''7m`1RLui"s "&546323"&54632''7zo5_lm$w3 "&54632'77"&54632]@B)IS L& -"&546323"&54632'"&&#"'66323267-#+$**&#+$**Lw'5'5L "&546323"&54632'5! L// "&546323"&54632%5! ..LH "&546323"&54632''737^``^L\II\ "&546323"&54632''737c!dd!c|`KK`: '73'#'7dDdg#W1:"\\"Hx" x '73'#'7"]H]"]{a#ZZE ]'5: '73'#'7dDdgq0d:"\\"Hp$uYx '73'#'7"]H]"]wZ#UZZEX%_:'73'#'6654&'7dDdgv  %;?::"\\"H#)%#(#'73'#'6654&'7"]H]"]u !& x8ZZE#*D&#:#'73'#7"&&#"'66323267dDdgC*$+!#*#+!:"XX"EG'2&3'73'#7"&&#"'66323267"]H]"]D *!-%( *"-$WWBJ&5'5;@"&&'732667''7,6B!0.!"-0"B;'X4;-E%2 2%E-l|( "&'73267''7,FF/1,,1/FC)_5M4%33%4Mbt$;@"&&'732667''7,6B!0.!"-0"B1e4X;-E%2 2%E-lq(| "&'73267''7,FF/1,,1/FIk5_M4%33%4Mbm$t;P"&&'732667''6654&'7,6B!0.!"-0"BQ#)=D>;-E%2 2%E-o$2)((& "&'73267''6654&'7,FF/1,,1/F] !%;>9M4%33%4M_#*$#&#;"%"&&'732677"&&#"'66323267,1=//././=*$/#%*#/#; 2++2 &2&2 #"&'73267'"&&#"'66323267,FD......D *!-%( *"-$@****@'5&5:$'73'#7"&'73267_D_`>;&(**(&;:SS>I8!   !8'73'#7"&'73267!\H\!]BB.++,*.CWWEI9%""%9YK5!''7 &Y99h'c15!''7 y'99\&g0>- "&54632'737,  Arzzrss "&54632'737,Alyyl5sm\\m/ .54677-G:I3+JCA&)*3'./ .5467'7-G:Is@K&A&)*3'82' #&&5467'66323267#"&&#"G$:@:% #%*#/#%*$2"' |&2&2/ '6654'7'7 I;F-2*JA&'3*)& / '6654'7'7 I;F-?J'A&'3*)&2'#"&&#"'66323267'6654&'7m*$/#%*#/# %;?:&2&2! '"S5!'NNz'5!'ޜpS3Npxpz3ޜpx!7S 53!53!53NNNNNN!7z %53!53!53ޜSA 333NNNNN7 p p zA 333ޜ7 p p ES 53!53!53!53ppppNNNNNNNNEz %53!53!53!53ppppޜS_ 53535353NNNNNNN~z_ 53535353ޜ~pS!#!Nzkpz%!#!Nz pS!#!kpz%!#! pSS#!5!SNzpNpSz#!5!SNzpnpzS#!5!zpNpzz#!5!zpn!3!N,k%!3!N, 3!ޜkN73!ޜ S!5!3S,NNS%!5!3S,Nޜnz5!3'Nz'5!3'ޜnp!#3!NN,kxkp%!#3!NN,xp !##3!N'kkp !#33!'N,kkp!#3!kxkp %!##3!N'n p %!#33!'N, np%!#3!xpS#!5!3SN,NpNpS#!5!3SN,Npnnpz #!5!3#SN'pNpz #!5!33z,N'pNkpz#!5!3zpNpz #!5!3#SN'pnnpz #!5!33z,N'pnnpz#!5!3zpnnpS!#!5!NkNpz #!5!!!SNz,pn'Npz %!#!5!5!N,zN'pz%!#!5!NnpS!#!5!kNpz !#!5!!kn'pz %!#!5!5!N'pz%!#!5!n!5!3!Z,N,Nk !!5!3!,N,'nk %!5!5!3!,N,'N%!5!3!Z,N,ޜn!5!3!ZNk '5!3!!'ޜnkN' 75!5!3!'N%!5!3!Zޜnp !#!5!3!N,N,kNkp !#!5!3!N,N,knnkp %!#!5!3!N,N,Np %!#!5!3!N,N,nnp !#!5!3!NkNkp !#!5!3!,N,kNkp !#!5!3!kNkp %##!5!3!!z'NnnkNp %!##5!5!3!N'n'Np #!5!33!!z,N'pnn'Np %!#!5!533!'N,N'np %!#!5!3!Nnnp %!#!5!3!,N,nnp !#!5!3!knnkp %!#!5!3!Np %!#!5!3!nnK S53!53w>NNNNK z%53!53w>ޜjS33NNN,,jz33ޜ,,5!5!'ZSNNNNp3#3SNNpxxp %!#!!!Nz,1NNpS ##!#SNNpkNkp !#!##!NN,S1pS #!5!5!5!SN,zpGNNNpS ###5!SNNpkNp #!5!##5!NȜN,pNGN %3!!!N,,1NNN 3333NNNkkN 333!SN8NzSN1NS %!5!5!5!3S,,NNNNG !533338NNNNk !533!5!3N8zNSNGNp %!#3!!!NN,,xNNp 3##33NzNNpxkxkp 333##!NNNN,pxNpS #!5!5!5!3SN,,NpGNNNGp 3###533SNNNpxNp 3!533##5!SNNN,pxNGGNp 5!!#!5!'NSNNGNpS ###5!#SNNpkNNkp 5!##!##5!'N,N,SNNkGN !5!3!5!Z,N,ZSNGNN !533333ZNNNNkk 33!!5335!SNNSNNGNNp%!#!5!5!5!3!!!N,,N,,GNNNGNNp###533333#SNNNNNpkNkkNkp 33!!533##!##5!SNNzN,N,SNNGkGNpS4>33#"5]{F''HwFpF{]5NGvHppSS!#4&&##532SNGvH''F{]5pHvGN5]{S##532665S5]{F''HvGpF{]5NFwH333#".NFwH''F{]5XpHwFN5]{X3#-++YWX#5+-+WYWX #5533-+++WWWWSS5!'zNNS3NS5!zNNpSS3NpSz'5!'zޜz3ޜz%5!zޜpzS3ޜpz%!5!5!5!,z'N'pz#333z'N'pkz!!5!!z,''pz###3z'N'k,X!X,DpX5!XppX!Xp^pX}!Xp pX,!XpDpX!XpkpX!XppX9!Xp7pX!Xpxp ! pxp!pxpw!wpxp,!,pxp3pxp3pxpK3Kpx,pX!,,px*X #/;GS_kw+7CO[gs4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&8      8      8      8      8      8      8      U      ZU      ZU      ZU      ZU      ZU      ZU      *L* #/;GS_kw+7CO[gs4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&    >    >    >    >    >    >    >   NU   NU   NU   NU   NU   NU   N*:E #/;GS_kw+7CO[gs4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&4632#"&'4632#"&'4632#"&/""//""//""//""//""//""/G    /""//""//""//""//""//""/G    /""//""//""//""//""//""/G    /""//""//""//""//""//""/G    /""//""//""//""//""//""/G    /""//""//""//""//""//""/G    /""//""//""//""//""//""/G    "//""//""//""//""//""//B   N"//""//""//""//""//""//B   N"//""//""//""//""//""//B   N"//""//""//""//""//""//B   N"//""//""//""//""//""//B   N"//""//""//""//""//""//B   N"//""//""//""//""//""//B   9X5!X9 pX3 Kpxp,,!,pD,pX,!,,pD,,!,,DpX!!,,pxDDpX!!,,,DDDpX!!!XX,DxpX!!!XXp,,X!,,,DpX!!,,,,DDDpX!!!X,,pMQ4 %3#5754632&#"3#33"&54632vBBEI*EggR(&&&&>MJW ? ^MC]L####9%"&533267%#5754632&#"3#.)R  BBEI*Dgg 95f> >MJW ? ^MC]cd$#4>55#7#3Q"8DC8"tu"8CD8"QQDY;+)5Oyװ"Ǽ-+XXX(lc'7*1190--0e ee_.91]]0Hf  $ < H T `l&~ & * 6 D*:n2$D*    L  dP *  4 4 2  8 4X           $   >  , ^  0   .   2  8  & R < x  "  .  2   "   0 J d ~0  (  ,  4  8 J< 0 H " 2 68 J a gi & l   J    1  []   [0]  [-]  [*]     [$]  [-,*] ,  a ,  g,  1 ,  J 2010 - 2020 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name Source .Source Code ProRegular2.038;ADBO;SourceCodePro-Regular;ADOBEVersion 2.038;hotconv 1.0.116;makeotfexe 2.5.65601SourceCodePro-RegularSource is a trademark of Adobe Systems Incorporated in the United States and/or other countries.Adobe Systems IncorporatedPaul D. Hunt, Teo Tuominenhttp://www.adobe.com/typeThis Font Software is licensed under the SIL Open Font License, Version 1.1. This license is available with a FAQ at: http://scripts.sil.org/OFL. This Font Software is distributed on an AS IS  BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the SIL Open Font License for the specific language, permissions and limitations governing your use of this Font Software.http://scripts.sil.org/OFLsimple asimple gserifed i & lSami Jcursive cursive cursive Serbian Cyrillic breve []slashed zero [0]typographic hyphen [-]typographic asterisk [*]slashed dollar sign [$]alternate numeral one [1]typographic alternates [-,*]simple a, cursive simple g, cursive , Serbian 1Sami J, cursive ?@>AB>9 0?@>AB>9 gV 8  A 70A5G:0<8A00<A:89 JA:>@>?8A=K9 A:>@>?8A=K9 A:>@>?8A=K9 A5@1A:89 1:8@8;;8G5A:0O :@0B:0 []70G5@:=CBK9 =>;L [0]B8?>3@0DA:89 45D8A [-]B8?>3@0DA:0O 72574>G:0 [*]70G5@:=CBK9 7=0: 4>;;0@0 [$]B8?>3@0DA:85 70<5AB8B5;8 [-,*]?@>AB>9 0, A:>@>?8A=K9 A5@1A:89 1, ?@>AB>9 g, A:>@>?8A=K9 A00<A:89 J, A:>@>?8A=K9 2 $%&'()*+,-./0123456789:;<=DEFGHIJKLMNOPQRSTUVWXYZ[\]bc     de !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRfSTUVgWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~hjikmlnoqprsutvwxzy{}|      !"#$%&~'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ "      B >@^`_?  !"#$%&'(#)*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !AaC      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-.AmacronAbreve Aringacuteuni01CDAogonekuni1EA0uni1EA2uni1EA4uni1EA6uni1EA8uni1EAAuni1EACuni1EAEuni1EB0uni1EB2uni1EB4uni1EB6AEacuteuni01E2uni0243uni1E06 Ccircumflex CdotaccentDcaronuni1E0Cuni1E0Euni1E10Dcroatuni018AEcaronEmacronEbreve EdotaccentEogonekuni1EB8uni1EBAuni1EBCuni1EBEuni1EC0uni1EC2uni1EC4uni1EC6uni1E16uni01F4 Gcircumflex Gdotaccentuni0122Gcaronuni1E20 uni00470303uni0193 Hcircumflexuni1E26uni1E24uni1E28uni1E2AHbarItildeImacronuni01CFIogonekuni1EC8uni1ECAIbreve Jcircumflexuni0136uni1E32uni1E34LacuteLcaronuni013Buni1E36uni1E38uni1E3ALdotuni1E3Euni1E40uni1E42Nacuteuni01F8Ncaronuni0145uni1E44uni1E46uni1E48Omacron OhungarumlautObreveuni01D1uni01EAuni1ECCuni1ECEuni1ED0uni1ED2uni1ED4uni1ED6uni1ED8Ohornuni1EDAuni1EDCuni1EDEuni1EE0uni1EE2uni1E52 OslashacuteRacuteRcaronuni1E58uni0156uni1E5Auni1E5Cuni1E5ESacute Scircumflexuni1E66uni015Euni0218uni1E60uni1E62uni1E9ETcaronuni0162uni021Auni1E6Cuni1E6ETbarUtildeUmacronUbreveUring Uhungarumlautuni01D3Uogonekuni01D5uni01D7uni01D9uni01DBuni1EE4uni1EE6Uhornuni1EE8uni1EEAuni1EECuni1EEEuni1EF0uni1E7EWgraveWacute Wcircumflex WdieresisYgrave Ycircumflexuni1E8Euni1EF4uni1EF6uni1EF8Zacute Zdotaccentuni1E90uni1E92uni1E94uni018FEngIJuni004C00B7004C uni01320301amacronabreve aringacuteuni01CEaogonekuni1EA1uni1EA3uni1EA5uni1EA7uni1EA9uni1EABuni1EADuni1EAFuni1EB1uni1EB3uni1EB5uni1EB7aeacuteuni01E3uni0180uni1E07 ccircumflex cdotaccentdcaronuni1E0Duni1E0Funi1E11ecaronemacronebreveeogonek edotaccentuni1EB9uni1EBBuni1EBDuni1EBFuni1EC1uni1EC3uni1EC5uni1EC7uni1E17uni01F5 gcircumflex gdotaccentuni0123gcaronuni1E21 uni00670303 hcircumflexuni1E27uni1E25uni1E96uni1E29uni1E2Bhbaritildeimacronuni01D0iogonekuni1EC9uni1ECBibreve jcircumflexuni0137uni1E33uni1E35 kgreenlandiclacutelcaronuni013Cuni1E37uni1E39uni1E3Bldotuni1E3Funi1E41uni1E43nacuteuni01F9ncaronuni0146uni1E45uni1E47uni1E49 napostropheomacron ohungarumlautuni01D2uni01EBuni1ECDuni1ECFuni1ED1uni1ED3uni1ED5uni1ED7uni1ED9obreveuni1E53ohornuni1EDBuni1EDDuni1EDFuni1EE1uni1EE3 oslashacuteracuteuni0157rcaronuni1E59uni1E5Buni1E5Duni1E5Fsacute scircumflexuni1E67uni015Funi0219uni1E61uni1E63longstcaronuni0163uni021Buni1E6Duni1E6Funi1E97tbarutildeumacronubreveuring uhungarumlautuni01D4uogonekuni01D6uni01D8uni01DAuni01DCuni1EE5uni1EE7uhornuni1EE9uni1EEBuni1EEDuni1EEFuni1EF1uni1E7Fwgravewacute wcircumflex wdieresisygrave ycircumflexuni1E8Funi1EF5uni1EF7uni1EF9zacute zdotaccentuni1E91uni1E93uni1E95enguni0237ijuni006C00B7006C uni01330301uni0250uni0252uni0253uni0254uni0255uni0256uni0257uni0258uni0251uni0299uni0259uni025Auni025Buni025Cuni025Euni025Funi0260uni0261uni0262uni0263uni0264uni0265uni0266uni0267uni029Cuni0268uni026Auni029Duni029Euni026Buni026Cuni026Duni026Euni029Funi026Funi0270uni0271uni0272uni0273uni0274uni0275uni0276uni0278uni0279uni027Auni027Buni027Duni027Euni0280uni0281uni0282uni0283uni0284uni0287uni0288uni0289uni028Auni028Buni028Cuni028Duni028Euni028Funi0290uni0291uni0292uni02A4uni02A6uni02A7uni0294uni0295uni02A1uni02A2uni01C2uni0298 uni014A.aa.aagrave.aaacute.a acircumflex.aatilde.a adieresis.a amacron.aabreve.aaring.a aringacute.a uni01CE.a uni1EA1.a uni1EA3.a uni1EA5.a uni1EA7.a uni1EA9.a uni1EAB.a uni1EAD.a uni1EAF.a uni1EB1.a uni1EB3.a uni1EB5.a uni1EB7.a aogonek.ag.a uni01F5.a gcircumflex.agbreve.a gdotaccent.a uni0123.agcaron.a uni1E21.a uni00670303.ai.a dotlessi.aigrave.aiacute.a icircumflex.aitilde.a idieresis.a imacron.a uni01D0.a iogonek.a uni1EC9.a uni1ECB.a uni012D.a uni0268.a iogonek.d iogonek.da uni0268.d uni0268.da uni029D.dl.alacute.alcaron.a uni013C.a uni1E37.a uni1E39.a uni1E3B.alslash.aldot.auni006C00B7006C.a uni026B.a uni026C.aAlphaBetaGammauni0394EpsilonZetaEtaThetaIotaKappaLambdaMuNuXiOmicronPiRhoSigmaTauUpsilonPhiChiPsiuni03A9 Alphatonos EpsilontonosEtatonos Iotatonos Iotadieresis Omicrontonos UpsilontonosUpsilondieresis Omegatonosalphabetagammadeltaepsilonzetaetathetaiotakappalambdauni03BCnuxiomicronrhosigmatauupsilonphichipsiomegauni03C2uni03D0uni03D1uni03D5phi.a alphatonos epsilontonosetatonos iotatonos iotadieresis omicrontonos upsilontonosupsilondieresis omegatonosiotadieresistonosupsilondieresistonosuni03D7uni03D9uni03DBuni03DDuni03E1uni037E anoteleia anoteleia.capuni0374uni0375tonos tonos.cap dieresistonosuni037Auni1FBEuni1FBDuni1FBFuni1FFEuni1FEFuni1FFDuni1FCDuni1FDDuni1FCEuni1FDEuni1FCFuni1FDFuni1FC0uni1FEDuni1FEEuni1FC1 uni1FBD.cap uni1FFE.cap uni1FEF.cap uni1FFD.cap uni1FCD.cap uni1FDD.cap uni1FCE.cap uni1FDE.cap uni1FCF.cap uni1FDF.capuni0410uni0411uni0412uni0413uni0414uni0415uni0416uni0417uni0418uni0419uni041Auni041Buni041Cuni041Duni041Euni041Funi0420uni0421uni0422uni0423uni0424uni0425uni0426uni0427uni0428uni0429uni042Auni042Buni042Cuni042Duni042Euni042Funi0400uni0401uni0402uni0403uni0404uni0405uni0406uni0407uni0408uni0409uni040Auni040Buni040Cuni040Duni040Euni040Funi0462uni0472uni0474uni0490uni0492uni0496uni0498uni049Auni04A0uni04A2uni04AAuni04AEuni04B0uni04B2uni04B6uni04BAuni04C0uni04C1uni04D0uni04D4uni04D6uni04D8uni04E2uni04E6uni04E8uni04EEuni04F2uni0430uni0431uni0432uni0433uni0434uni0435uni0436uni0437uni0438uni0439uni043Auni043Buni043Cuni043Duni043Euni043Funi0440uni0441uni0442uni0443uni0444uni0445uni0446uni0447uni0448uni0449uni044Auni044Buni044Cuni044Duni044Euni044Funi0450uni0451uni0452uni0453uni0454uni0455uni0456uni0457uni0458uni0459uni045Auni045Buni045Cuni045Duni045Euni045Funi0463uni0473uni0475uni0491uni0493uni0497uni0499uni049Buni04A1uni04A3uni04ABuni04AFuni04B1uni04B3uni04B7uni04BBuni04C2uni04CFuni04D1uni04D5uni04D7uni04D9uni04E3uni04E7uni04E9uni04EFuni04F3 uni0430.a uni04D1.a uni0431.srb uni0456.a uni0457.a uni04CF.auni2116zero.aone.a zero.onumone.onumtwo.onum three.onum four.onum five.onumsix.onum seven.onum eight.onum nine.onumzero.bone.bzero.capone.captwo.cap three.capfour.capfive.capsix.cap seven.cap eight.capnine.capzero.cone.c quotereverseduni00ADuni2010 figuredashuni2015uni25E6uni25AAuni25ABuni25B4uni25B5uni25B8uni25B9uni25BEuni25BFuni25C2uni25C3 invbullet filledrect underscoredbluni203Euni203Funi2016 exclamdbluni2047uni2049uni2048uni203Duni2E18uni231Cuni231Duni231Euni231Funi27E6uni27E7uni2E22uni2E23uni2E24uni2E25uni2117uni2120at.case asterisk.ahyphen.a uni00AD.a uni2010.adollar.a zero.supsone.supstwo.sups three.sups four.sups five.supssix.sups seven.sups eight.sups nine.supsparenleft.supsparenright.sups period.sups comma.sups zero.subsone.substwo.subs three.subs four.subs five.subssix.subs seven.subs eight.subs nine.subsparenleft.subsparenright.subs period.subs comma.subs zero.dnomone.dnomtwo.dnom three.dnom four.dnom five.dnomsix.dnom seven.dnom eight.dnom nine.dnomparenleft.dnomparenright.dnom period.dnom comma.dnom zero.numrone.numrtwo.numr three.numr four.numr five.numrsix.numr seven.numr eight.numr nine.numrparenleft.numrparenright.numr period.numr comma.numr ordfeminine.aa.supsb.supsc.supsd.supse.supsf.supsg.supsh.supsi.supsj.supsk.supsl.supsm.supsn.supso.supsp.supsq.supsr.supss.supst.supsu.supsv.supsw.supsx.supsy.supsz.sups egrave.sups eacute.sups eogonek.sups uni0259.sups uni0266.supsuni02E0uni02E4a.supag.supai.supa colon.sups hyphen.sups endash.sups emdash.supsEurouni0192 colonmonetarylirauni20A6pesetauni20A9donguni20B1uni20B2uni20B4uni20B5uni20B9uni20BAuni20AEuni20B8uni20BDuni2215 slash.fraconethird twothirdsuni2155uni2156uni2157uni2158uni2159uni215Auni2150 oneeighth threeeighths fiveeighths seveneighthsuni2151uni2152uni2189uni2219 equivalence revlogicalnot intersection orthogonaluni2032uni2033uni2035uni00B5 integraltp integralbtuni2206uni2126uni2200uni2203uni2237uni2105uni2113 estimateduni2190arrowupuni2192 arrowdownuni2196uni2197uni2198uni2199uni21D0uni21D1uni21D2uni21D3 arrowboth arrowupdn arrowupdnbseuni25CFuni25CBuni25A0uni25A1uni2752uni25C6triagupuni25B3uni25B6uni25B7triagdnuni25BDuni25C0uni25C1triagrttriaglf invcircleuni25C9uni2610uni2611uni2713 musicalnotemusicalnotedblheartclubdiamondspade smileface invsmilefaceuni2764uni2615u1F4A9u1F916u1F512femalemalesunhouseuni02B9uni02BBuni02BCuni02BEuni02BFuni02C1uni02D0uni02D1uni02DEuni02C8uni02C9uni02CAuni02CBuni02CCuni25CCuni0300 uni0300.capuni0340uni0301 uni0301.cap uni0301.guni0302 uni0302.capuni0303 uni0303.capuni0304 uni0304.capuni0305 uni0305.capuni0306 uni0306.c uni0306.cap uni0306.ccapuni0307 uni0307.capuni0308 uni0308.capuni0309 uni0309.capuni0310 uni0310.capuni030A uni030A.capuni030B uni030B.capuni030C uni030C.cap uni030C.auni030F uni030F.capuni0311 uni0311.capuni0312 uni0312.guni0313uni0343uni0318uni0319uni031Auni031Buni031Cuni031Duni031Euni031Funi0320uni0323uni0324uni0325uni0326 uni0326.auni0327 uni0327.capuni0328 uni0328.capuni0329uni032Auni032Cuni032Euni032Funi0330uni0331uni0334uni0339uni033Auni033Buni033Cuni033Duni0342 uni0342.capuni0345uni035Funi0361 uni03080301uni03080301.cap uni03080301.g uni03080300uni03080300.cap uni03080300.g uni03080303 uni03080304uni03080304.cap uni0308030Cuni0308030C.cap uni03020301uni03020301.cap uni03020300uni03020300.cap uni03020309uni03020309.cap uni03020303uni03020303.cap uni03060301uni03060301.cap uni03060300uni03060300.cap uni03060309uni03060309.cap uni03060303uni03060303.cap uni03020306uni03020306.cap uni03040301uni03040301.cap uni030C0307uni030C0307.cap uni03120301 uni03120300 uni03120303 uni03130301 uni03130300 uni03130303uni00A0uni2007 space.frac nbspace.fracuni2500uni2501uni2502uni2503uni2504uni2505uni2506uni2507uni2508uni2509uni250Auni250Buni250Cuni250Duni250Euni250Funi2510uni2511uni2512uni2513uni2514uni2515uni2516uni2517uni2518uni2519uni251Auni251Buni251Cuni251Duni251Euni251Funi2520uni2521uni2522uni2523uni2524uni2525uni2526uni2527uni2528uni2529uni252Auni252Buni252Cuni252Duni252Euni252Funi2530uni2531uni2532uni2533uni2534uni2535uni2536uni2537uni2538uni2539uni253Auni253Buni253Cuni253Duni253Euni253Funi2540uni2541uni2542uni2543uni2544uni2545uni2546uni2547uni2548uni2549uni254Auni254Buni254Cuni254Duni254Euni254Funi2550uni2551uni2552uni2553uni2554uni2555uni2556uni2557uni2558uni2559uni255Auni255Buni255Cuni255Duni255Euni255Funi2560uni2561uni2562uni2563uni2564uni2565uni2566uni2567uni2568uni2569uni256Auni256Buni256Cuni256Duni256Euni256Funi2570uni2571uni2572uni2573uni2574uni2575uni2576uni2577uni2578uni2579uni257Auni257Buni257Cuni257Duni257Euni257Funi2580uni2581uni2582uni2583uni2584uni2585uni2586uni2587uni2588uni2589uni258Auni258Buni258Cuni258Duni258Euni258Funi2590uni2591uni2592uni2593uni2594uni2595uni2596uni2597uni2598uni2599uni259Auni259Buni259Cuni259Duni259Euni259Funi202FuniFEFFu1F3B5u1F3B6f_if_luniE0A0uniE0A1uniE0A2uniE0B0uniE0B1uniE0B2uniE0B3ideoromnDFLTcyrlgreklatn V t  !!""#')13577::==@@MM[[^^eevv    $$**00??BBQQUU\\aassww    ##&&56;;?@HHLNQRYY\^bbddffllnnqquu  $%'-0146KLeeEHn#11BDHn (DFLTcyrl.grekXlatnl SRB  ! " #ATH &NSM 6SKS F $ %&'(ccmpccmpccmpccmp ccmpccmpccmp"ccmp*frac2frac8frac>fracDfracJfracPfracVfrac\markbmarkvmarkmarkmarkmarkmarkmarkmkmkmkmkmkmkmkmkmkmkmkmk mkmk&mkmk,size2size6size:size>sizeBsizeFsizeJsizeN                 d&.8BJT\dlt|vxzb| n   Z  P t     2    X X V v  ZSx~xxxxxxxxxr rr&x,2xxx8xx>Drr  DJPV\bhntzrrrrJrrrrD DxxxxxxJr"x(xx.(xx,x4:@FrrrrLrRrr,,ZKVJDF@.0<=@Z\>A0d/'B+B\D?%"T`n-6N#{&GFjJ%,22HHHNP(:]M<X Z `   , D L hh.djpv|^^^^^^,^Fz]?@Z'*bk:6N jZZZZZZZZZZZZZZZZZZZZZZZ} &,28>DJPV\bhntz8b&VhznDDV2Dhz "(.4:@FLRX^2Vdddddddjp,X&MJR]@9.<6T0#:\%O%%5| %P"2i%h3%&%F,a%%%e%W%%0%H%6%%`|%/NK%H  ,Q Q ", HHDJ>>>>PV>\bDDDh>nPPPtV>JJJJzz>,d6P2 ZShnhhnhhnhnhnhnhhnnhnhnhnhnhnhnhnhnhnhhhhhhhnhnhhnhhhnhnhnhnhnhnhnhnhnhnhnhnhnhhhhhh &&,28822>DJP,,,j,,L,>,,i,[,TGF,!#$%&'/(a #"%+,4 hjFGE JJJMMKinLR# 11(BD)Hn, !#$%&')*+,-./01345@M[e QUaw    56?@HLMNQRY\]^bdflnqu $%'()*+,-01456KLe&23. !#$')*-./035MU?@LRY\]$%(06< >AEE} !#$%&')*+,-./01345M[Ua    6?@LQRY\]^du= 'R'*45 $*047:=^ *Us #&?@     DFLTcyrlfgreklatnR! (08@HPX`hpx SRB T" !)19AIQYaiqy" "*2:BJRZbjrz" #+3;CKS[cks{ATH ^NSM SKS ! $,4<DLT\dlt| ! %-5=EMU]emu} "&.6>FNV^fnv~ "'/7?GOW_gow  casePcaseVcase\casebcasehcasencasetcasezccmpccmpccmpccmpccmpccmpccmpccmpcv01cv01cv01cv01cv01cv01cv01cv01cv02 cv02&cv02,cv022cv028cv02>cv02Dcv02Jcv04Pcv04Vcv04\cv04bcv04hcv04ncv04tcv04zcv06cv06cv06cv06cv06cv06cv06cv06cv07cv07cv07cv07cv07cv07cv07cv07cv08cv08cv08cv08cv08cv08cv08cv08 cv09cv09cv09cv09"cv09(cv09.cv094cv09:cv10@cv10Fcv10Lcv10Rcv10Xcv10^cv10dcv10jcv11pcv11vcv11|cv11cv11cv11cv11cv11cv12cv12cv12cv12cv12cv12cv12cv12cv14cv14cv14cv14cv14cv14cv14cv14cv15 cv15 cv15 cv15 cv15 cv15 cv15 $cv15 *cv16 0cv16 6cv16 ss06 Dss06 Jss07 Pss07 Vss07 \ss07 bss07 hss07 nss07 tss07 zsubs subs subs subs subs subs subs subs sups sups sups sups sups sups sups sups zerozerozero zerozerozerozero$zero*        @:4.(" ~xrltnhb\VPJRLF@:4.(0*$ ~ztnhb\                                  ~tj`VPJD>82,&$              $JRZbjr~&.6>FNV^fn,*0.,z 2<x Vh!#L  &,28>DJP  ** U!!":d $USYc W $][a_aC$*06<KMHJNOQNC &,jjiikkC &,mmllnnC,6@JT`jt~@4e4v4 44 4$04 B?2Q4'\w44;2*v"d" !$%"#    ###)*+,-./0123456789:;<=>?@ABCDEFGrMNOP N R9  35CILPRTVXZ\^`bdfP !"#$%&'(5)*+,-./01234ef'J: 6789:;<=>K6 ?RABCDEFGHIJK@STUVWXYZ[L\]NPhijL4444 8C<<< < @ M4N4*(UMOQNP  35CILPRTVXZ\^`bdf(q    r "   _b+.qtA_+q b.tA$4   CHKOQSUWY[]_ace?$%QHL !#  "$'*/06 6Y[[>]x?zz[|\^~!   24CHKOQSUWY[]_ace!  35CILPRTVXZ\^`bdfmv  !o hj% qr5)*00mv9mnopqrstuvxyz{|}~   24CHKOQSUWY[]_ace\\&&))"";B//  $'JKLMNOPQRSTU[\]^_`abMO@A[1myRnnz$?($%QHL   24CHKOQSUWY[]_ace%ooPK!TB)template/darkfish/_sidebar_in_files.rhtmlnu[ PK![L>>template/darkfish/index.rhtmlnu[
<%- if @options.main_page and main_page = @files.find { |f| f.full_name == @options.main_page } then %> <%= main_page.description %> <%- else -%>

This is the API documentation for <%= @title %>. <%- end -%>

PK!3^^template/darkfish/_footer.rhtmlnu[ PK!BYtemplate/darkfish/class.rhtmlnu[

<%= klass.type %> <%= klass.full_name %>

<%= klass.description %>
<%- klass.each_section do |section, constants, attributes| -%>
<%- if section.title then -%>

<%= section.title %>

↑ top
<%- end -%> <%- if section.comment then -%>
<%= section.description %>
<%- end -%> <%- unless constants.empty? then -%>

Constants

<%- constants.each do |const| -%>
<%= const.name %> <%- if const.comment then -%>
<%= const.description.strip %> <%- else -%>
(Not documented) <%- end -%> <%- end -%>
<%- end -%> <%- unless attributes.empty? then -%>

Attributes

<%- attributes.each do |attrib| -%>
<%= h attrib.name %>[<%= attrib.rw %>]
<%- if attrib.comment then -%> <%= attrib.description.strip %> <%- else -%>

(Not documented) <%- end -%>

<%- end -%>
<%- end -%> <%- klass.methods_by_type(section).each do |type, visibilities| next if visibilities.empty? visibilities.each do |visibility, methods| next if methods.empty? %>

<%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods

<%- methods.each do |method| -%>
"> <%- if (call_seq = method.call_seq) then -%> <%- call_seq.strip.split("\n").each_with_index do |call_seq, i| -%>
<%= h(call_seq.strip. gsub( /^\w+\./m, '')). gsub(/(.*)[-=]>/, '\1→') %> <%- if i == 0 and method.token_stream then -%> click to toggle source <%- end -%>
<%- end -%> <%- else -%>
<%= h method.name %><%= h method.param_seq %> <%- if method.token_stream then -%> click to toggle source <%- end -%>
<%- end -%>
<%- if method.comment then -%> <%= method.description.strip %> <%- else -%>

(Not documented) <%- end -%> <%- if method.calls_super then -%>

Calls superclass method <%= method.superclass_method ? method.formatter.link(method.superclass_method.full_name, method.superclass_method.full_name) : nil %>
<%- end -%> <%- if method.token_stream then -%>
<%= method.markup_code %>
<%- end -%>
<%- unless method.aliases.empty? then -%>
Also aliased as: <%= method.aliases.map do |aka| if aka.parent then # HACK lib/rexml/encodings %{#{h aka.name}} else h aka.name end end.join ", " %>
<%- end -%> <%- if method.is_alias_for then -%> <%- end -%>
<%- end -%>
<%- end end %>
<%- end -%>
PK! O2]]*template/darkfish/_sidebar_installed.rhtmlnu[ PK! NNN)template/darkfish/servlet_not_found.rhtmlnu[

Not Found

<%= message %>

PK!QCC)template/darkfish/_sidebar_sections.rhtmlnu[<%- unless klass.sections.length == 1 then %> <%- end -%> PK!鿶)template/darkfish/table_of_contents.rhtmlnu[

<%= h @title %>

<%- simple_files = @files.select { |f| f.text? } -%> <%- unless simple_files.empty? then -%>

Pages

    <%- simple_files.sort.each do |file| -%>
  • <%= h file.page_name %> <% # HACK table_of_contents should not exist on Document table = file.parse(file.comment).table_of_contents unless table.empty? then %> <%- end -%>
  • <%- end -%>
<%- end -%>

Classes and Modules

    <%- @modsort.each do |klass| -%>
  • <%= klass.full_name %> <%- table = [] table.concat klass.parse(klass.comment_location).table_of_contents table.concat klass.section_contents unless table.empty? then %> <%- end -%>
  • <%- end -%>

Methods

    <%- @store.all_classes_and_modules.map do |mod| mod.method_list end.flatten.sort.each do |method| %>
  • <%= h method.pretty_name %><%= method.parent.full_name %> <%- end -%>
PK!^mq(template/darkfish/_sidebar_classes.rhtmlnu[ PK!E`(template/darkfish/_sidebar_methods.rhtmlnu[<%- unless klass.method_list.empty? then %> <%- end -%> PK!5)template/darkfish/_sidebar_includes.rhtmlnu[<%- unless klass.includes.empty? then %> <%- end -%> PK!  template/darkfish/js/search.jsnu[Search = function(data, input, result) { this.data = data; this.input = input; this.result = result; this.current = null; this.view = this.result.parentNode; this.searcher = new Searcher(data.index); this.init(); } Search.prototype = Object.assign({}, Navigation, new function() { var suid = 1; this.init = function() { var _this = this; var observer = function(e) { switch(e.keyCode) { case 38: // Event.KEY_UP case 40: // Event.KEY_DOWN return; } _this.search(_this.input.value); }; this.input.addEventListener('keyup', observer); this.input.addEventListener('click', observer); // mac's clear field this.searcher.ready(function(results, isLast) { _this.addResults(results, isLast); }) this.initNavigation(); this.setNavigationActive(false); } this.search = function(value, selectFirstMatch) { value = value.trim().toLowerCase(); if (value) { this.setNavigationActive(true); } else { this.setNavigationActive(false); } if (value == '') { this.lastQuery = value; this.result.innerHTML = ''; this.result.setAttribute('aria-expanded', 'false'); this.setNavigationActive(false); } else if (value != this.lastQuery) { this.lastQuery = value; this.result.setAttribute('aria-busy', 'true'); this.result.setAttribute('aria-expanded', 'true'); this.firstRun = true; this.searcher.find(value); } } this.addResults = function(results, isLast) { var target = this.result; if (this.firstRun && (results.length > 0 || isLast)) { this.current = null; this.result.innerHTML = ''; } for (var i=0, l = results.length; i < l; i++) { var item = this.renderItem.call(this, results[i]); item.setAttribute('id', 'search-result-' + target.childElementCount); target.appendChild(item); }; if (this.firstRun && results.length > 0) { this.firstRun = false; this.current = target.firstChild; this.current.classList.add('search-selected'); } //TODO: ECMAScript //if (jQuery.browser.msie) this.$element[0].className += ''; if (isLast) this.result.setAttribute('aria-busy', 'false'); } this.move = function(isDown) { if (!this.current) return; var next = isDown ? this.current.nextElementSibling : this.current.previousElementSibling; if (next) { this.current.classList.remove('search-selected'); next.classList.add('search-selected'); this.input.setAttribute('aria-activedescendant', next.getAttribute('id')); this.scrollIntoView(next, this.view); this.current = next; this.input.value = next.firstChild.firstChild.text; this.input.select(); } return true; } this.hlt = function(html) { return this.escapeHTML(html). replace(/\u0001/g, ''). replace(/\u0002/g, ''); } this.escapeHTML = function(html) { return html.replace(/[&<>]/g, function(c) { return '&#' + c.charCodeAt(0) + ';'; }); } }); PK!13 3 template/darkfish/js/darkfish.jsnu[/** * * Darkfish Page Functions * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $ * * Author: Michael Granger * */ /* Provide console simulation for firebug-less environments */ /* if (!("console" in window) || !("firebug" in console)) { var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; window.console = {}; for (var i = 0; i < names.length; ++i) window.console[names[i]] = function() {}; }; */ function showSource( e ) { var target = e.target; while (!target.classList.contains('method-detail')) { target = target.parentNode; } if (typeof target !== "undefined" && target !== null) { target = target.querySelector('.method-source-code'); } if (typeof target !== "undefined" && target !== null) { target.classList.toggle('active-menu') } }; function hookSourceViews() { document.querySelectorAll('.method-heading').forEach(function (codeObject) { codeObject.addEventListener('click', showSource); }); }; function hookSearch() { var input = document.querySelector('#search-field'); var result = document.querySelector('#search-results'); result.classList.remove("initially-hidden"); var search_section = document.querySelector('#search-section'); search_section.classList.remove("initially-hidden"); var search = new Search(search_data, input, result); search.renderItem = function(result) { var li = document.createElement('li'); var html = ''; // TODO add relative path to <%- @options.template_stylesheets.each do |stylesheet| -%> <%- end -%> PK!*f'template/darkfish/_sidebar_search.rhtmlnu[ PK!ДU markup.rbnu[# frozen_string_literal: true ## # Handle common RDoc::Markup tasks for various CodeObjects # # This module is loaded by generators. It allows RDoc's CodeObject tree to # avoid loading generator code to improve startup time for +ri+. module RDoc::Generator::Markup ## # Generates a relative URL from this object's path to +target_path+ def aref_to(target_path) RDoc::Markup::ToHtml.gen_relative_url path, target_path end ## # Generates a relative URL from +from_path+ to this object's path def as_href(from_path) RDoc::Markup::ToHtml.gen_relative_url from_path, path end ## # Handy wrapper for marking up this object's comment def description markup @comment end ## # Creates an RDoc::Markup::ToHtmlCrossref formatter def formatter return @formatter if defined? @formatter options = @store.rdoc.options this = RDoc::Context === self ? self : @parent @formatter = RDoc::Markup::ToHtmlCrossref.new options, this.path, this @formatter.code_object = self @formatter end ## # Build a webcvs URL starting for the given +url+ with +full_path+ appended # as the destination path. If +url+ contains '%s' +full_path+ will be # will replace the %s using sprintf on the +url+. def cvs_url(url, full_path) if /%s/ =~ url then sprintf url, full_path else url + full_path end end end class RDoc::CodeObject include RDoc::Generator::Markup end class RDoc::MethodAttr ## # Prepend +src+ with line numbers. Relies on the first line of a source # code listing having: # # # File xxxxx, line dddd # # If it has this comment then line numbers are added to +src+ and the , # line dddd portion of the comment is removed. def add_line_numbers(src) return unless src.sub!(/\A(.*)(, line (\d+))/, '\1') first = $3.to_i - 1 last = first + src.count("\n") size = last.to_s.length line = first src.gsub!(/^/) do res = if line == first then " " * (size + 1) else "%2$*1$d " % [size, line] end line += 1 res end end ## # Turns the method's token stream into HTML. # # Prepends line numbers if +options.line_numbers+ is true. def markup_code return '' unless @token_stream src = RDoc::TokenStream.to_html @token_stream # dedent the source indent = src.length lines = src.lines.to_a lines.shift if src =~ /\A.*#\ *File/i # remove '# File' comment lines.each do |line| if line =~ /^ *(?=\S)/ n = $&.length indent = n if n < indent break if n == 0 end end src.gsub!(/^#{' ' * indent}/, '') if indent > 0 add_line_numbers(src) if options.line_numbers src end end class RDoc::ClassModule ## # Handy wrapper for marking up this class or module's comment def description markup @comment_location end end class RDoc::Context::Section include RDoc::Generator::Markup end class RDoc::TopLevel ## # Returns a URL for this source file on some web repository. Use the -W # command line option to set. def cvs_url url = @store.rdoc.options.webcvs if /%s/ =~ url then url % @relative_name else url + @relative_name end end end PK!q json_index.rbnu[# frozen_string_literal: true require 'json' begin require 'zlib' rescue LoadError end ## # The JsonIndex generator is designed to complement an HTML generator and # produces a JSON search index. This generator is derived from sdoc by # Vladimir Kolesnikov and contains verbatim code written by him. # # This generator is designed to be used with a regular HTML generator: # # class RDoc::Generator::Darkfish # def initialize options # # ... # @base_dir = Pathname.pwd.expand_path # # @json_index = RDoc::Generator::JsonIndex.new self, options # end # # def generate # # ... # @json_index.generate # end # end # # == Index Format # # The index is output as a JSON file assigned to the global variable # +search_data+. The structure is: # # var search_data = { # "index": { # "searchIndex": # ["a", "b", ...], # "longSearchIndex": # ["a", "a::b", ...], # "info": [ # ["A", "A", "A.html", "", ""], # ["B", "A::B", "A::B.html", "", ""], # ... # ] # } # } # # The same item is described across the +searchIndex+, +longSearchIndex+ and # +info+ fields. The +searchIndex+ field contains the item's short name, the # +longSearchIndex+ field contains the full_name (when appropriate) and the # +info+ field contains the item's name, full_name, path, parameters and a # snippet of the item's comment. # # == LICENSE # # Copyright (c) 2009 Vladimir Kolesnikov # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. class RDoc::Generator::JsonIndex include RDoc::Text ## # Where the search index lives in the generated output SEARCH_INDEX_FILE = File.join 'js', 'search_index.js' attr_reader :index # :nodoc: ## # Creates a new generator. +parent_generator+ is used to determine the # class_dir and file_dir of links in the output index. # # +options+ are the same options passed to the parent generator. def initialize parent_generator, options @parent_generator = parent_generator @store = parent_generator.store @options = options @template_dir = File.expand_path '../template/json_index', __FILE__ @base_dir = @parent_generator.base_dir @classes = nil @files = nil @index = nil end ## # Builds the JSON index as a Hash. def build_index reset @store.all_files.sort, @store.all_classes_and_modules.sort index_classes index_methods index_pages { :index => @index } end ## # Output progress information if debugging is enabled def debug_msg *msg return unless $DEBUG_RDOC $stderr.puts(*msg) end ## # Writes the JSON index to disk def generate debug_msg "Generating JSON index" debug_msg " writing search index to %s" % SEARCH_INDEX_FILE data = build_index return if @options.dry_run out_dir = @base_dir + @options.op_dir index_file = out_dir + SEARCH_INDEX_FILE FileUtils.mkdir_p index_file.dirname, :verbose => $DEBUG_RDOC index_file.open 'w', 0644 do |io| io.set_encoding Encoding::UTF_8 io.write 'var search_data = ' JSON.dump data, io, 0 end unless ENV['SOURCE_DATE_EPOCH'].nil? index_file.utime index_file.atime, Time.at(ENV['SOURCE_DATE_EPOCH'].to_i).gmtime end Dir.chdir @template_dir do Dir['**/*.js'].each do |source| dest = File.join out_dir, source FileUtils.install source, dest, :mode => 0644, :preserve => true, :verbose => $DEBUG_RDOC end end end ## # Compress the search_index.js file using gzip def generate_gzipped return if @options.dry_run or not defined?(Zlib) debug_msg "Compressing generated JSON index" out_dir = @base_dir + @options.op_dir search_index_file = out_dir + SEARCH_INDEX_FILE outfile = out_dir + "#{search_index_file}.gz" debug_msg "Reading the JSON index file from %s" % search_index_file search_index = search_index_file.read(mode: 'r:utf-8') debug_msg "Writing gzipped search index to %s" % outfile Zlib::GzipWriter.open(outfile) do |gz| gz.mtime = File.mtime(search_index_file) gz.orig_name = search_index_file.basename.to_s gz.write search_index gz.close end # GZip the rest of the js files Dir.chdir @template_dir do Dir['**/*.js'].each do |source| dest = out_dir + source outfile = out_dir + "#{dest}.gz" debug_msg "Reading the original js file from %s" % dest data = dest.read debug_msg "Writing gzipped file to %s" % outfile Zlib::GzipWriter.open(outfile) do |gz| gz.mtime = File.mtime(dest) gz.orig_name = dest.basename.to_s gz.write data gz.close end end end end ## # Adds classes and modules to the index def index_classes debug_msg " generating class search index" documented = @classes.uniq.select do |klass| klass.document_self_or_methods end documented.each do |klass| debug_msg " #{klass.full_name}" record = klass.search_record @index[:searchIndex] << search_string(record.shift) @index[:longSearchIndex] << search_string(record.shift) @index[:info] << record end end ## # Adds methods to the index def index_methods debug_msg " generating method search index" list = @classes.uniq.map do |klass| klass.method_list end.flatten.sort_by do |method| [method.name, method.parent.full_name] end list.each do |method| debug_msg " #{method.full_name}" record = method.search_record @index[:searchIndex] << "#{search_string record.shift}()" @index[:longSearchIndex] << "#{search_string record.shift}()" @index[:info] << record end end ## # Adds pages to the index def index_pages debug_msg " generating pages search index" pages = @files.select do |file| file.text? end pages.each do |page| debug_msg " #{page.page_name}" record = page.search_record @index[:searchIndex] << search_string(record.shift) @index[:longSearchIndex] << '' record.shift @index[:info] << record end end ## # The directory classes are written to def class_dir @parent_generator.class_dir end ## # The directory files are written to def file_dir @parent_generator.file_dir end def reset files, classes # :nodoc: @files = files @classes = classes @index = { :searchIndex => [], :longSearchIndex => [], :info => [] } end ## # Removes whitespace and downcases +string+ def search_string string string.downcase.gsub(/\s/, '') end end PK!P Q Q darkfish.rbnu[# frozen_string_literal: true # -*- mode: ruby; ruby-indent-level: 2; tab-width: 2 -*- require 'erb' require 'fileutils' require 'pathname' require_relative 'markup' ## # Darkfish RDoc HTML Generator # # $Id: darkfish.rb 52 2009-01-07 02:08:11Z deveiant $ # # == Author/s # * Michael Granger (ged@FaerieMUD.org) # # == Contributors # * Mahlon E. Smith (mahlon@martini.nu) # * Eric Hodel (drbrain@segment7.net) # # == License # # Copyright (c) 2007, 2008, Michael Granger. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # # * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # * Neither the name of the author/s, nor the names of the project's # contributors may be used to endorse or promote products derived from this # software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # == Attributions # # Darkfish uses the {Silk Icons}[http://www.famfamfam.com/lab/icons/silk/] set # by Mark James. class RDoc::Generator::Darkfish RDoc::RDoc.add_generator self include ERB::Util ## # Stylesheets, fonts, etc. that are included in RDoc. BUILTIN_STYLE_ITEMS = # :nodoc: %w[ css/fonts.css fonts/Lato-Light.ttf fonts/Lato-LightItalic.ttf fonts/Lato-Regular.ttf fonts/Lato-RegularItalic.ttf fonts/SourceCodePro-Bold.ttf fonts/SourceCodePro-Regular.ttf css/rdoc.css ] ## # Path to this file's parent directory. Used to find templates and other # resources. GENERATOR_DIR = File.join 'rdoc', 'generator' ## # Release Version VERSION = '3' ## # Description of this generator DESCRIPTION = 'HTML generator, written by Michael Granger' ## # The relative path to style sheets and javascript. By default this is set # the same as the rel_prefix. attr_accessor :asset_rel_path ## # The path to generate files into, combined with --op from the # options for a full path. attr_reader :base_dir ## # Classes and modules to be used by this generator, not necessarily # displayed. See also #modsort attr_reader :classes ## # No files will be written when dry_run is true. attr_accessor :dry_run ## # When false the generate methods return a String instead of writing to a # file. The default is true. attr_accessor :file_output ## # Files to be displayed by this generator attr_reader :files ## # The JSON index generator for this Darkfish generator attr_reader :json_index ## # Methods to be displayed by this generator attr_reader :methods ## # Sorted list of classes and modules to be displayed by this generator attr_reader :modsort ## # The RDoc::Store that is the source of the generated content attr_reader :store ## # The directory where the template files live attr_reader :template_dir # :nodoc: ## # The output directory attr_reader :outputdir ## # Initialize a few instance variables before we start def initialize store, options @store = store @options = options @asset_rel_path = '' @base_dir = Pathname.pwd.expand_path @dry_run = @options.dry_run @file_output = true @template_dir = Pathname.new options.template_dir @template_cache = {} @classes = nil @context = nil @files = nil @methods = nil @modsort = nil @json_index = RDoc::Generator::JsonIndex.new self, options end ## # Output progress information if debugging is enabled def debug_msg *msg return unless $DEBUG_RDOC $stderr.puts(*msg) end ## # Directory where generated class HTML files live relative to the output # dir. def class_dir nil end ## # Directory where generated class HTML files live relative to the output # dir. def file_dir nil end ## # Create the directories the generated docs will live in if they don't # already exist. def gen_sub_directories @outputdir.mkpath end ## # Copy over the stylesheet into the appropriate place in the output # directory. def write_style_sheet debug_msg "Copying static files" options = { :verbose => $DEBUG_RDOC, :noop => @dry_run } BUILTIN_STYLE_ITEMS.each do |item| install_rdoc_static_file @template_dir + item, "./#{item}", options end unless @options.template_stylesheets.empty? FileUtils.cp @options.template_stylesheets, '.', **options end Dir[(@template_dir + "{js,images}/**/*").to_s].each do |path| next if File.directory? path next if File.basename(path) =~ /^\./ dst = Pathname.new(path).relative_path_from @template_dir install_rdoc_static_file @template_dir + path, dst, options end end ## # Build the initial indices and output objects based on an array of TopLevel # objects containing the extracted information. def generate setup write_style_sheet generate_index generate_class_files generate_file_files generate_table_of_contents @json_index.generate @json_index.generate_gzipped copy_static rescue => e debug_msg "%s: %s\n %s" % [ e.class.name, e.message, e.backtrace.join("\n ") ] raise end ## # Copies static files from the static_path into the output directory def copy_static return if @options.static_path.empty? fu_options = { :verbose => $DEBUG_RDOC, :noop => @dry_run } @options.static_path.each do |path| unless File.directory? path then FileUtils.install path, @outputdir, **fu_options.merge(:mode => 0644) next end Dir.chdir path do Dir[File.join('**', '*')].each do |entry| dest_file = @outputdir + entry if File.directory? entry then FileUtils.mkdir_p entry, **fu_options else FileUtils.install entry, dest_file, **fu_options.merge(:mode => 0644) end end end end end ## # Return a list of the documented modules sorted by salience first, then # by name. def get_sorted_module_list classes classes.select do |klass| klass.display? end.sort end ## # Generate an index page which lists all the classes which are documented. def generate_index setup template_file = @template_dir + 'index.rhtml' return unless template_file.exist? debug_msg "Rendering the index page..." out_file = @base_dir + @options.op_dir + 'index.html' rel_prefix = @outputdir.relative_path_from out_file.dirname search_index_rel_prefix = rel_prefix search_index_rel_prefix += @asset_rel_path if @file_output asset_rel_prefix = rel_prefix + @asset_rel_path @title = @options.title render_template template_file, out_file do |io| here = binding # suppress 1.9.3 warning here.local_variable_set(:asset_rel_prefix, asset_rel_prefix) here end rescue => e error = RDoc::Error.new \ "error generating index.html: #{e.message} (#{e.class})" error.set_backtrace e.backtrace raise error end ## # Generates a class file for +klass+ def generate_class klass, template_file = nil setup current = klass template_file ||= @template_dir + 'class.rhtml' debug_msg " working on %s (%s)" % [klass.full_name, klass.path] out_file = @outputdir + klass.path rel_prefix = @outputdir.relative_path_from out_file.dirname search_index_rel_prefix = rel_prefix search_index_rel_prefix += @asset_rel_path if @file_output asset_rel_prefix = rel_prefix + @asset_rel_path svninfo = get_svninfo(current) @title = "#{klass.type} #{klass.full_name} - #{@options.title}" debug_msg " rendering #{out_file}" render_template template_file, out_file do |io| here = binding # suppress 1.9.3 warning here.local_variable_set(:asset_rel_prefix, asset_rel_prefix) here.local_variable_set(:svninfo, svninfo) here end end ## # Generate a documentation file for each class and module def generate_class_files setup template_file = @template_dir + 'class.rhtml' template_file = @template_dir + 'classpage.rhtml' unless template_file.exist? return unless template_file.exist? debug_msg "Generating class documentation in #{@outputdir}" current = nil @classes.each do |klass| current = klass generate_class klass, template_file end rescue => e error = RDoc::Error.new \ "error generating #{current.path}: #{e.message} (#{e.class})" error.set_backtrace e.backtrace raise error end ## # Generate a documentation file for each file def generate_file_files setup page_file = @template_dir + 'page.rhtml' fileinfo_file = @template_dir + 'fileinfo.rhtml' # for legacy templates filepage_file = @template_dir + 'filepage.rhtml' unless page_file.exist? or fileinfo_file.exist? return unless page_file.exist? or fileinfo_file.exist? or filepage_file.exist? debug_msg "Generating file documentation in #{@outputdir}" out_file = nil current = nil @files.each do |file| current = file if file.text? and page_file.exist? then generate_page file next end template_file = nil out_file = @outputdir + file.path debug_msg " working on %s (%s)" % [file.full_name, out_file] rel_prefix = @outputdir.relative_path_from out_file.dirname search_index_rel_prefix = rel_prefix search_index_rel_prefix += @asset_rel_path if @file_output asset_rel_prefix = rel_prefix + @asset_rel_path unless filepage_file then if file.text? then next unless page_file.exist? template_file = page_file @title = file.page_name else next unless fileinfo_file.exist? template_file = fileinfo_file @title = "File: #{file.base_name}" end end @title += " - #{@options.title}" template_file ||= filepage_file render_template template_file, out_file do |io| here = binding # suppress 1.9.3 warning here.local_variable_set(:asset_rel_prefix, asset_rel_prefix) here.local_variable_set(:current, current) here end end rescue => e error = RDoc::Error.new "error generating #{out_file}: #{e.message} (#{e.class})" error.set_backtrace e.backtrace raise error end ## # Generate a page file for +file+ def generate_page file setup template_file = @template_dir + 'page.rhtml' out_file = @outputdir + file.path debug_msg " working on %s (%s)" % [file.full_name, out_file] rel_prefix = @outputdir.relative_path_from out_file.dirname search_index_rel_prefix = rel_prefix search_index_rel_prefix += @asset_rel_path if @file_output current = file asset_rel_prefix = rel_prefix + @asset_rel_path @title = "#{file.page_name} - #{@options.title}" debug_msg " rendering #{out_file}" render_template template_file, out_file do |io| here = binding # suppress 1.9.3 warning here.local_variable_set(:current, current) here.local_variable_set(:asset_rel_prefix, asset_rel_prefix) here end end ## # Generates the 404 page for the RDoc servlet def generate_servlet_not_found message setup template_file = @template_dir + 'servlet_not_found.rhtml' return unless template_file.exist? debug_msg "Rendering the servlet 404 Not Found page..." rel_prefix = rel_prefix = '' search_index_rel_prefix = rel_prefix search_index_rel_prefix += @asset_rel_path if @file_output asset_rel_prefix = '' @title = 'Not Found' render_template template_file do |io| here = binding # suppress 1.9.3 warning here.local_variable_set(:asset_rel_prefix, asset_rel_prefix) here end rescue => e error = RDoc::Error.new \ "error generating servlet_not_found: #{e.message} (#{e.class})" error.set_backtrace e.backtrace raise error end ## # Generates the servlet root page for the RDoc servlet def generate_servlet_root installed setup template_file = @template_dir + 'servlet_root.rhtml' return unless template_file.exist? debug_msg 'Rendering the servlet root page...' rel_prefix = '.' asset_rel_prefix = rel_prefix search_index_rel_prefix = asset_rel_prefix search_index_rel_prefix += @asset_rel_path if @file_output @title = 'Local RDoc Documentation' render_template template_file do |io| binding end rescue => e error = RDoc::Error.new \ "error generating servlet_root: #{e.message} (#{e.class})" error.set_backtrace e.backtrace raise error end ## # Generate an index page which lists all the classes which are documented. def generate_table_of_contents setup template_file = @template_dir + 'table_of_contents.rhtml' return unless template_file.exist? debug_msg "Rendering the Table of Contents..." out_file = @outputdir + 'table_of_contents.html' rel_prefix = @outputdir.relative_path_from out_file.dirname search_index_rel_prefix = rel_prefix search_index_rel_prefix += @asset_rel_path if @file_output asset_rel_prefix = rel_prefix + @asset_rel_path @title = "Table of Contents - #{@options.title}" render_template template_file, out_file do |io| here = binding # suppress 1.9.3 warning here.local_variable_set(:asset_rel_prefix, asset_rel_prefix) here end rescue => e error = RDoc::Error.new \ "error generating table_of_contents.html: #{e.message} (#{e.class})" error.set_backtrace e.backtrace raise error end def install_rdoc_static_file source, destination, options # :nodoc: return unless source.exist? begin FileUtils.mkdir_p File.dirname(destination), **options begin FileUtils.ln source, destination, **options rescue Errno::EEXIST FileUtils.rm destination retry end rescue FileUtils.cp source, destination, **options end end ## # Prepares for generation of output from the current directory def setup return if instance_variable_defined? :@outputdir @outputdir = Pathname.new(@options.op_dir).expand_path @base_dir return unless @store @classes = @store.all_classes_and_modules.sort @files = @store.all_files.sort @methods = @classes.map { |m| m.method_list }.flatten.sort @modsort = get_sorted_module_list @classes end ## # Return a string describing the amount of time in the given number of # seconds in terms a human can understand easily. def time_delta_string seconds return 'less than a minute' if seconds < 60 return "#{seconds / 60} minute#{seconds / 60 == 1 ? '' : 's'}" if seconds < 3000 # 50 minutes return 'about one hour' if seconds < 5400 # 90 minutes return "#{seconds / 3600} hours" if seconds < 64800 # 18 hours return 'one day' if seconds < 86400 # 1 day return 'about one day' if seconds < 172800 # 2 days return "#{seconds / 86400} days" if seconds < 604800 # 1 week return 'about one week' if seconds < 1209600 # 2 week return "#{seconds / 604800} weeks" if seconds < 7257600 # 3 months return "#{seconds / 2419200} months" if seconds < 31536000 # 1 year return "#{seconds / 31536000} years" end # %q$Id: darkfish.rb 52 2009-01-07 02:08:11Z deveiant $" SVNID_PATTERN = / \$Id:\s (\S+)\s # filename (\d+)\s # rev (\d{4}-\d{2}-\d{2})\s # Date (YYYY-MM-DD) (\d{2}:\d{2}:\d{2}Z)\s # Time (HH:MM:SSZ) (\w+)\s # committer \$$ /x ## # Try to extract Subversion information out of the first constant whose # value looks like a subversion Id tag. If no matching constant is found, # and empty hash is returned. def get_svninfo klass constants = klass.constants or return {} constants.find { |c| c.value =~ SVNID_PATTERN } or return {} filename, rev, date, time, committer = $~.captures commitdate = Time.parse "#{date} #{time}" return { :filename => filename, :rev => Integer(rev), :commitdate => commitdate, :commitdelta => time_delta_string(Time.now - commitdate), :committer => committer, } end ## # Creates a template from its components and the +body_file+. # # For backwards compatibility, if +body_file+ contains " #{head_file.read} #{body} #{footer_file.read} TEMPLATE end ## # Renders the ERb contained in +file_name+ relative to the template # directory and returns the result based on the current context. def render file_name template_file = @template_dir + file_name template = template_for template_file, false, RDoc::ERBPartial template.filename = template_file.to_s template.result @context end ## # Load and render the erb template in the given +template_file+ and write # it out to +out_file+. # # Both +template_file+ and +out_file+ should be Pathname-like objects. # # An io will be yielded which must be captured by binding in the caller. def render_template template_file, out_file = nil # :yield: io io_output = out_file && !@dry_run && @file_output erb_klass = io_output ? RDoc::ERBIO : ERB template = template_for template_file, true, erb_klass if io_output then debug_msg "Outputting to %s" % [out_file.expand_path] out_file.dirname.mkpath out_file.open 'w', 0644 do |io| io.set_encoding @options.encoding @context = yield io template_result template, @context, template_file end else @context = yield nil output = template_result template, @context, template_file debug_msg " would have written %d characters to %s" % [ output.length, out_file.expand_path ] if @dry_run output end end ## # Creates the result for +template+ with +context+. If an error is raised a # Pathname +template_file+ will indicate the file where the error occurred. def template_result template, context, template_file template.filename = template_file.to_s template.result context rescue NoMethodError => e raise RDoc::Error, "Error while evaluating %s: %s" % [ template_file.expand_path, e.message, ], e.backtrace end ## # Retrieves a cache template for +file+, if present, or fills the cache. def template_for file, page = true, klass = ERB template = @template_cache[file] return template if template if page then template = assemble_template file erbout = 'io' else template = file.read template = template.encode @options.encoding file_var = File.basename(file).sub(/\..*/, '') erbout = "_erbout_#{file_var}" end if RUBY_VERSION >= '2.6' template = klass.new template, trim_mode: '-', eoutvar: erbout else template = klass.new template, nil, '-', erbout end @template_cache[file] = template template end end PK!f=wri.rbnu[# frozen_string_literal: true ## # Generates ri data files class RDoc::Generator::RI RDoc::RDoc.add_generator self ## # Description of this generator DESCRIPTION = 'creates ri data files' ## # Set up a new ri generator def initialize store, options #:not-new: @options = options @store = store @store.path = '.' end ## # Writes the parsed data store to disk for use by ri. def generate @store.save end end PK!S'GG template/darkfish/filepage.rhtmlnu[ File: <%= file.base_name %> [<%= @options.title %>] <% if file.parser == RDoc::Parser::Simple %>
<% simple_files = @files.select { |f| f.parser == RDoc::Parser::Simple } %> <% unless simple_files.empty? then %>

Files

<% end %>

Class Index [+]

Quicksearch
<% if $DEBUG_RDOC %>
toggle debugging
<% end %>
<%= file.description %>

[Validate]

Generated with the Darkfish Rdoc Generator <%= RDoc::Generator::Darkfish::VERSION %>.

<% else %>
Last Modified
<%= file.last_modified %>
<% if file.requires %>
Requires
    <% file.requires.each do |require| %>
  • <%= require.name %>
  • <% end %>
<% end %> <% if @options.webcvs %>
Trac URL
<%= file.cvs_url %>
<% end %>
<% if file.comment %>

Description

<%= file.description %>
<% end %>
<% end %> PK!}5}5template/darkfish/rdoc.cssnu[/* * "Darkfish" Rdoc CSS * $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $ * * Author: Michael Granger * */ /* Base Green is: #6C8C22 */ *{ padding: 0; margin: 0; } body { background: #efefef; font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif; } body.class, body.module, body.file { margin-left: 40px; } body.file-popup { font-size: 90%; margin-left: 0; } h1 { font-size: 300%; text-shadow: rgba(135,145,135,0.65) 2px 2px 3px; color: #6C8C22; } h2,h3,h4 { margin-top: 1.5em; } :link, :visited { color: #6C8C22; text-decoration: none; } :link:hover, :visited:hover { border-bottom: 1px dotted #6C8C22; } pre { background: #ddd; padding: 0.5em 0; } /* @group Generic Classes */ .initially-hidden { display: none; } .quicksearch-field { width: 98%; background: #ddd; border: 1px solid #aaa; height: 1.5em; -webkit-border-radius: 4px; } .quicksearch-field:focus { background: #f1edba; } .missing-docs { font-size: 120%; background: white url(images/wrench_orange.png) no-repeat 4px center; color: #ccc; line-height: 2em; border: 1px solid #d00; opacity: 1; padding-left: 20px; text-indent: 24px; letter-spacing: 3px; font-weight: bold; -webkit-border-radius: 5px; -moz-border-radius: 5px; } .target-section { border: 2px solid #dcce90; border-left-width: 8px; padding: 0 1em; background: #fff3c2; } /* @end */ /* @group Index Page, Standalone file pages */ body.indexpage { margin: 1em 3em; } body.indexpage p, body.indexpage div, body.file p { margin: 1em 0; } .indexpage .rdoc-list p, .file .rdoc-list p { margin: 0em 0; } .indexpage ol, .file #documentation ol { line-height: 160%; } .indexpage ul, .file #documentation ul { line-height: 160%; list-style: none; } .indexpage ul :link, .indexpage ul :visited { font-size: 16px; } .indexpage li, .file #documentation li { padding-left: 20px; } .indexpage ol, .file #documentation ol { margin-left: 20px; } .indexpage ol > li, .file #documentation ol > li { padding-left: 0; } .indexpage ul > li, .file #documentation ul > li { background: url(images/bullet_black.png) no-repeat left 4px; } .indexpage li.module { background: url(images/package.png) no-repeat left 4px; } .indexpage li.class { background: url(images/ruby.png) no-repeat left 4px; } .indexpage li.file { background: url(images/page_white_text.png) no-repeat left 4px; } .file li p, .indexpage li p { margin: 0 0; } /* @end */ /* @group Top-Level Structure */ .class #metadata, .file #metadata, .module #metadata { float: left; width: 260px; } .class #documentation, .file #documentation, .module #documentation { margin: 2em 1em 5em 300px; min-width: 340px; } .file #metadata { margin: 0.8em; } #validator-badges { clear: both; margin: 1em 1em 2em; } /* @end */ /* @group Metadata Section */ #metadata .section { background-color: #dedede; -moz-border-radius: 5px; -webkit-border-radius: 5px; border: 1px solid #aaa; margin: 0 8px 16px; font-size: 90%; overflow: hidden; } #metadata h3.section-header { margin: 0; padding: 2px 8px; background: #ccc; color: #666; -moz-border-radius-topleft: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; border-bottom: 1px solid #aaa; } #metadata #home-section h3.section-header { border-bottom: 0; } #metadata ul, #metadata dl, #metadata p { padding: 8px; list-style: none; } #file-metadata ul { padding-left: 28px; list-style-image: url(images/page_green.png); } dl.svninfo { color: #666; margin: 0; } dl.svninfo dt { font-weight: bold; } ul.link-list li { white-space: nowrap; } ul.link-list .type { font-size: 8px; text-transform: uppercase; color: white; background: #969696; padding: 2px 4px; -webkit-border-radius: 5px; } /* @end */ /* @group Project Metadata Section */ #project-metadata { margin-top: 3em; } .file #project-metadata { margin-top: 0em; } #project-metadata .section { border: 1px solid #aaa; } #project-metadata h3.section-header { border-bottom: 1px solid #aaa; position: relative; } #project-metadata h3.section-header .search-toggle { position: absolute; right: 5px; } #project-metadata form { color: #777; background: #ccc; padding: 8px 8px 16px; border-bottom: 1px solid #bbb; } #project-metadata fieldset { border: 0; } #no-class-search-results { margin: 0 auto 1em; text-align: center; font-size: 14px; font-weight: bold; color: #aaa; } /* @end */ /* @group Documentation Section */ .description { font-size: 100%; color: #333; } .description p { margin: 1em 0.4em; } .description li p { margin: 0; } .description ul { margin-left: 1.5em; } .description ul li { line-height: 1.4em; } .description dl, #documentation dl { margin: 8px 1.5em; border: 1px solid #ccc; } .description dl { font-size: 14px; } .description dt, #documentation dt { padding: 2px 4px; font-weight: bold; background: #ddd; } .description dd, #documentation dd { padding: 2px 12px; } .description dd + dt, #documentation dd + dt { margin-top: 0.7em; } #documentation .section { font-size: 90%; } #documentation h2.section-header { margin-top: 2em; padding: 0.75em 0.5em; background: #ccc; color: #333; font-size: 175%; border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; } #documentation h3.section-header { margin-top: 2em; padding: 0.25em 0.5em; background-color: #dedede; color: #333; font-size: 150%; border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; } #constants-list > dl, #attributes-list > dl { margin: 1em 0 2em; border: 0; } #constants-list > dl dt, #attributes-list > dl dt { padding-left: 0; font-weight: bold; font-family: Monaco, "Andale Mono"; background: inherit; } #constants-list > dl dt a, #attributes-list > dl dt a { color: inherit; } #constants-list > dl dd, #attributes-list > dl dd { margin: 0 0 1em 0; padding: 0; color: #666; } .documentation-section h2 { position: relative; } .documentation-section h2 a { position: absolute; top: 8px; right: 10px; font-size: 12px; color: #9b9877; visibility: hidden; } .documentation-section h2:hover a { visibility: visible; } /* @group Method Details */ #documentation .method-source-code { display: none; } #documentation .method-detail { margin: 0.5em 0; padding: 0.5em 0; cursor: pointer; } #documentation .method-detail:hover { background-color: #f1edba; } #documentation .method-heading { position: relative; padding: 2px 4px 0 20px; font-size: 125%; font-weight: bold; color: #333; background: url(images/brick.png) no-repeat left bottom; } #documentation .method-heading :link, #documentation .method-heading :visited { color: inherit; } #documentation .method-click-advice { position: absolute; top: 2px; right: 5px; font-size: 10px; color: #9b9877; visibility: hidden; padding-right: 20px; line-height: 20px; background: url(images/zoom.png) no-repeat right top; } #documentation .method-detail:hover .method-click-advice { visibility: visible; } #documentation .method-alias .method-heading { color: #666; background: url(images/brick_link.png) no-repeat left bottom; } #documentation .method-description, #documentation .aliases { margin: 0 20px; color: #666; } #documentation .method-description p, #documentation .aliases p { line-height: 1.2em; } #documentation .aliases { padding-top: 4px; font-style: italic; cursor: default; } #documentation .method-description p { padding: 0; } #documentation .method-description p + p { margin-bottom: 0.5em; } #documentation .method-description ul { margin-left: 1.5em; } #documentation .attribute-method-heading { background: url(images/tag_green.png) no-repeat left bottom; } #documentation #attribute-method-details .method-detail:hover { background-color: transparent; cursor: default; } #documentation .attribute-access-type { font-size: 60%; text-transform: uppercase; vertical-align: super; padding: 0 2px; } /* @end */ /* @end */ /* @group Source Code */ div.method-source-code { background: #262626; color: #efefef; margin: 1em; padding: 0.5em; border: 1px dashed #999; overflow: hidden; } div.method-source-code pre { background: inherit; padding: 0; color: white; overflow: auto; } /* @group Ruby keyword styles */ .ruby-constant { color: #7fffd4; background: transparent; } .ruby-keyword { color: #00ffff; background: transparent; } .ruby-ivar { color: #eedd82; background: transparent; } .ruby-operator { color: #00ffee; background: transparent; } .ruby-identifier { color: #ffdead; background: transparent; } .ruby-node { color: #ffa07a; background: transparent; } .ruby-comment { color: #b22222; font-weight: bold; background: transparent; } .ruby-regexp { color: #ffa07a; background: transparent; } .ruby-value { color: #7fffd4; background: transparent; } /* @end */ /* @end */ /* @group File Popup Contents */ .file #metadata, .file-popup #metadata { } .file-popup dl { font-size: 80%; padding: 0.75em; background-color: #dedede; color: #333; border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; } .file dt { font-weight: bold; padding-left: 22px; line-height: 20px; background: url(images/page_white_width.png) no-repeat left top; } .file dt.modified-date { background: url(images/date.png) no-repeat left top; } .file dt.requires { background: url(images/plugin.png) no-repeat left top; } .file dt.scs-url { background: url(images/wrench.png) no-repeat left top; } .file dl dd { margin: 0 0 1em 0; } .file #metadata dl dd ul { list-style: circle; margin-left: 20px; padding-top: 0; } .file #metadata dl dd ul li { } .file h2 { margin-top: 2em; padding: 0.75em 0.5em; background-color: #dedede; color: #333; font-size: 120%; border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; } /* @end */ /* @group ThickBox Styles */ #TB_window { font: 12px Arial, Helvetica, sans-serif; color: #333333; } #TB_secondLine { font: 10px Arial, Helvetica, sans-serif; color:#666666; } #TB_window :link, #TB_window :visited { color: #666666; } #TB_window :link:hover, #TB_window :visited:hover { color: #000; } #TB_window :link:active, #TB_window :visited:active { color: #666666; } #TB_window :link:focus, #TB_window :visited:focus { color: #666666; } #TB_overlay { position: fixed; z-index:100; top: 0px; left: 0px; height:100%; width:100%; } .TB_overlayMacFFBGHack {background: url(images/macFFBgHack.png) repeat;} .TB_overlayBG { background-color:#000; filter:alpha(opacity=75); -moz-opacity: 0.75; opacity: 0.75; } * html #TB_overlay { /* ie6 hack */ position: absolute; height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); } #TB_window { position: fixed; background: #ffffff; z-index: 102; color:#000000; display:none; border: 4px solid #525252; text-align:left; top:50%; left:50%; } * html #TB_window { /* ie6 hack */ position: absolute; margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); } #TB_window img#TB_Image { display:block; margin: 15px 0 0 15px; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; border-top: 1px solid #666; border-left: 1px solid #666; } #TB_caption{ height:25px; padding:7px 30px 10px 25px; float:left; } #TB_closeWindow{ height:25px; padding:11px 25px 10px 0; float:right; } #TB_closeAjaxWindow{ padding:7px 10px 5px 0; margin-bottom:1px; text-align:right; float:right; } #TB_ajaxWindowTitle{ float:left; padding:7px 0 5px 10px; margin-bottom:1px; font-size: 22px; } #TB_title{ background-color: #6C8C22; color: #dedede; height:40px; } #TB_title :link, #TB_title :visited { color: white !important; border-bottom: 1px dotted #dedede; } #TB_ajaxContent{ clear:both; padding:2px 15px 15px 15px; overflow:auto; text-align:left; line-height:1.4em; } #TB_ajaxContent.TB_modal{ padding:15px; } #TB_ajaxContent p{ padding:5px 0px 5px 0px; } #TB_load{ position: fixed; display:none; height:13px; width:208px; z-index:103; top: 50%; left: 50%; margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */ } * html #TB_load { /* ie6 hack */ position: absolute; margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); } #TB_HideSelect{ z-index:99; position:fixed; top: 0; left: 0; background-color:#fff; border:none; filter:alpha(opacity=0); -moz-opacity: 0; opacity: 0; height:100%; width:100%; } * html #TB_HideSelect { /* ie6 hack */ position: absolute; height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); } #TB_iframeContent{ clear:both; border:none; margin-bottom:-1px; margin-top:1px; _margin-bottom:1px; } /* @end */ /* @group Debugging Section */ #debugging-toggle { text-align: center; } #debugging-toggle img { cursor: pointer; } #rdoc-debugging-section-dump { display: none; margin: 0 2em 2em; background: #ccc; border: 1px solid #999; } /* @end */ PK! |;fftemplate/darkfish/js/jquery.jsnu[/*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */ (function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"":"")+""),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cq(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cp(){cn=b}function co(){setTimeout(cp,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bv(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bl(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bd,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bk(a){f.nodeName(a,"input")?bj(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bj)}function bj(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bi(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bh(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bg(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i=0===c})}function U(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function M(a,b){return(a&&a!=="*"?a+".":"")+b.replace(y,"`").replace(z,"&")}function L(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function J(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function D(){return!0}function C(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function K(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(K,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,x=/^-ms-/,y=function(a,b){return(b+"").toUpperCase()},z=d.userAgent,A,B,C,D=Object.prototype.toString,E=Object.prototype.hasOwnProperty,F=Array.prototype.push,G=Array.prototype.slice,H=String.prototype.trim,I=Array.prototype.indexOf,J={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return G.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?F.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),B.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(G.apply(this,arguments),"slice",G.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:F,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;B.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!B){B=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",C,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",C),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&K()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):J[D.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!E.call(a,"constructor")&&!E.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||E.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(x,"ms-").replace(w,y)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c
a",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},m&&f.extend(p,{position:"absolute",left:"-1000px",top:"-1000px"});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
t
",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i=f.expando,j=typeof c=="string",k=a.nodeType,l=k?f.cache:a,m=k?a[f.expando]:a[f.expando]&&f.expando;if((!m||e&&m&&l[m]&&!l[m][i])&&j&&d===b)return;m||(k?a[f.expando]=m=++f.uuid:m=f.expando),l[m]||(l[m]={},k||(l[m].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?l[m][i]=f.extend(l[m][i],c):l[m]=f.extend(l[m],c);g=l[m],e&&(g[i]||(g[i]={}),g=g[i]),d!==b&&(g[f.camelCase(c)]=d);if(c==="events"&&!g[c])return g[i]&&g[i].events;j?(h=g[c],h==null&&(h=g[f.camelCase(c)])):h=g;return h}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e=f.expando,g=a.nodeType,h=g?f.cache:a,i=g?a[f.expando]:f.expando;if(!h[i])return;if(b){d=c?h[i][e]:h[i];if(d){d[b]||(b=f.camelCase(b)),delete d[b];if(!l(d))return}}if(c){delete h[i][e];if(!l(h[i]))return}var j=h[i][e];f.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null,j?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=j):g&&(f.support.deleteExpando?delete a[f.expando]:a.removeAttribute?a.removeAttribute(f.expando):a[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=v:u&&(i=u)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.attr(a,b,""),a.removeAttribute(b),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(u&&f.nodeName(a,"button"))return u.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(u&&f.nodeName(a,"button"))return u.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==null?g:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabIndex=f.propHooks.tabIndex,v={get:function(a,c){var d;return f.prop(a,c)===!0||(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(u=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var w=/\.(.*)$/,x=/^(?:textarea|input|select)$/i,y=/\./g,z=/ /g,A=/[^\w\s.|`]/g,B=function(a){return a.replace(A,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=C;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=C);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),B).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},I=function(c){var d=c.target,e,g;if(!!x.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=H(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:I,beforedeactivate:I,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&I.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&I.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",H(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in G)f.event.add(this,c+".specialChange",G[c]);return x.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return x.test(this.nodeName)}},G=f.event.special.change.filters,G.focus=G.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=S.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(U(c[0])||U(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=R.call(arguments);N.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!T[a]?f.unique(e):e,(this.length>1||P.test(d))&&O.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,f.support.htmlSerialize||(be._default=[1,"div
","
"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!be[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bh(a,d),e=bi(a),g=bi(d);for(h=0;e[h];++h)g[h]&&bh(e[h],g[h])}if(b){bg(a,d);if(c){e=bi(a),g=bi(d);for(h=0;e[h];++h)bg(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=be[l]||be._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bn.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bm,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bm.test(g)?g.replace(bm,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bv(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bw=function(a,c){var d,e,g;c=c.replace(bo,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bx=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bp.test(d)&&bq.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bv=bw||bx,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bz=/%20/g,bA=/\[\]$/,bB=/\r?\n/g,bC=/#.*$/,bD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bE=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bF=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bG=/^(?:GET|HEAD)$/,bH=/^\/\//,bI=/\?/,bJ=/)<[^<]*)*<\/script>/gi,bK=/^(?:select|textarea)/i,bL=/\s+/,bM=/([?&])_=[^&]*/,bN=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bO=f.fn.load,bP={},bQ={},bR,bS,bT=["*/"]+["*"];try{bR=e.href}catch(bU){bR=c.createElement("a"),bR.href="",bR=bR.href}bS=bN.exec(bR.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bO)return bO.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bJ,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bK.test(this.nodeName)||bE.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bB,"\r\n")}}):{name:b.name,value:c.replace(bB,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?bX(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),bX(a,b);return a},ajaxSettings:{url:bR,isLocal:bF.test(bS[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bT},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bV(bP),ajaxTransport:bV(bQ),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?bZ(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=b$(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bD.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bC,"").replace(bH,bS[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bL),d.crossDomain==null&&(r=bN.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bS[1]&&r[2]==bS[2]&&(r[3]||(r[1]==="http:"?80:443))==(bS[3]||(bS[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bW(bP,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bG.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bI.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bM,"$1_="+x);d.url=y+(y===d.url?(bI.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bT+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bW(bQ,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){s<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bz,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cq("show",3),a,b,c);for(var g=0,h=this.length;g=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b
";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=ct.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!ct.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cu(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cu(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNaN(j)?i:j}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window);PK!/qZZ+template/darkfish/js/thickbox-compressed.jsnu[/* * Thickbox 3 - One Box To Rule Them All. * By Cody Lindley (http://www.codylindley.com) * Copyright (c) 2007 cody lindley * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php */ var tb_pathToImage = "../images/loadingAnimation.gif"; eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<4 5=\'B\'><4 5=\'8\'>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'><4 5=\'8\'>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' />");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m\'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D&1d;&1d;2T &2R;"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;&2O; 2N"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"<4 5=\'2A\'>1l 1k 1j 1s");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'>");19(1z,1x,g);H P}$("#1X").s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"<4 5=\'2e\'>1l 1k 1j 1s ")}n{$("#B").N();$("#8").q(" ")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"<4 5=\'2e\'>1l 1k 1j 1s<4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' J=\'z:"+W+"p;A:"+V+"p;\'>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i * */ jQuery.fn.quicksearch = function( target, searchElems, options ) { // console.debug( "Quicksearch fn" ); var settings = { delay: 250, clearButton: false, highlightMatches: false, focusOnLoad: false, noSearchResultsIndicator: null }; if ( options ) $.extend( settings, options ); return jQuery(this).each( function() { // console.debug( "Creating a new quicksearch on %o for %o", this, searchElems ); new jQuery.quicksearch( this, searchElems, settings ); }); }; jQuery.quicksearch = function( searchBox, searchElems, settings ) { var timeout; var boxdiv = $(searchBox).parents('div').eq(0); function init() { setupKeyEventHandlers(); focusOnLoad(); }; function setupKeyEventHandlers() { // console.debug( "Hooking up the 'keypress' event to %o", searchBox ); $(searchBox). unbind( 'keyup' ). keyup( function(e) { return onSearchKey( e.keyCode ); }); $(searchBox). unbind( 'keypress' ). keypress( function(e) { switch( e.which ) { // Execute the search on Enter, Tab, or Newline case 9: case 13: case 10: clearTimeout( timeout ); e.preventDefault(); doQuickSearch(); break; // Allow backspace case 8: return true; break; // Only allow valid search characters default: return validQSChar( e.charCode ); } }); }; function focusOnLoad() { if ( !settings.focusOnLoad ) return false; $(searchBox).focus(); }; function onSearchKey ( code ) { clearTimeout( timeout ); // console.debug( "...scheduling search." ); timeout = setTimeout( doQuickSearch, settings.delay ); }; function validQSChar( code ) { var c = String.fromCharCode( code ); return ( (c == ':') || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') ); }; function doQuickSearch() { var searchText = searchBox.value; var pat = new RegExp( searchText, "im" ); var shownCount = 0; if ( settings.noSearchResultsIndicator ) { $('#' + settings.noSearchResultsIndicator).hide(); } // All elements start out hidden $(searchElems).each( function(index) { var str = $(this).text(); if ( pat.test(str) ) { shownCount += 1; $(this).fadeIn(); } else { $(this).hide(); } }); if ( shownCount == 0 && settings.noSearchResultsIndicator ) { $('#' + settings.noSearchResultsIndicator).slideDown(); } }; init(); }; PK!c..!template/darkfish/classpage.rhtmlnu["?> <%= klass.type.capitalize %>: <%= klass.full_name %>

In Files

<% if !svninfo.empty? then %>

Subversion Info

Rev
<%= svninfo[:rev] %>
Last Checked In
<%= svninfo[:commitdate].strftime('%Y-%m-%d %H:%M:%S') %> (<%= svninfo[:commitdelta] %> ago)
Checked in by
<%= svninfo[:committer] %>
<% end %>
<% if klass.type == 'class' then %>

Parent

<% if klass.superclass and not String === klass.superclass then %> <% else %> <% end %>
<% end %> <% unless klass.sections.length == 1 then %>

Sections

<% end %> <% unless klass.classes_and_modules.empty? then %>

Namespace

<% end %> <% unless klass.method_list.empty? then %>

Methods

<% end %> <% unless klass.includes.empty? then %>

Included Modules

<% end %>
<% simple_files = @files.select {|tl| tl.parser == RDoc::Parser::Simple } %> <% unless simple_files.empty? then %>

Files

<% end %>

Class/Module Index [+]

Quicksearch
<% if $DEBUG_RDOC then %>
toggle debugging
<% end %>

<%= klass.full_name %>

<%= klass.description %>
<% klass.each_section do |section, constants, attributes| %> <% constants = constants.select { |const| const.display? } %> <% attributes = attributes.select { |attr| attr.display? } %>
<% if section.title then %>

<%= section.title %> ↑ top

<% end %> <% if section.comment then %>
<%= section.description %>
<% end %> <% unless constants.empty? then %>

Constants

<% constants.each do |const| %>
<%= const.name %>
<% if const.comment then %>
<%= const.description.strip %>
<% else %>
(Not documented)
<% end %> <% end %>
<% end %> <% unless attributes.empty? then %>

Attributes

<% attributes.each do |attrib| %>
<% if attrib.rw =~ /w/i then %> <% end %>
<%= h attrib.name %>[<%= attrib.rw %>]
<% if attrib.comment then %> <%= attrib.description.strip %> <% else %>

(Not documented)

<% end %>
<% end %>
<% end %> <% klass.methods_by_type(section).each do |type, visibilities| next if visibilities.empty? visibilities.each do |visibility, methods| next if methods.empty? %>

<%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods

<% methods.each do |method| %>
"> <% if method.call_seq then %> <% method.call_seq.strip.split("\n").each_with_index do |call_seq, i| %>
<%= call_seq.strip.gsub(/->/, '→').gsub( /^\w+\./m, '') %> <% if i == 0 then %> click to toggle source <% end %>
<% end %> <% else %>
<%= h method.name %><%= method.params %> click to toggle source
<% end %>
<% if method.comment then %> <%= method.description.strip %> <% else %>

(Not documented)

<% end %> <% if method.token_stream then %>
<%= method.markup_code %>
<% end %>
<% unless method.aliases.empty? then %>
Also aliased as: <%= method.aliases.map do |aka| if aka.parent then # HACK lib/rexml/encodings %{#{h aka.name}} else h aka.name end end.join ", " %>
<% end %> <% if method.is_alias_for then %> <% end %>
<% end %>
<% end end %>
<% end %>

[Validate]

Generated with the Darkfish Rdoc Generator <%= RDoc::Generator::Darkfish::VERSION %>.

PK!;FactoryClass.phpnu[file = $file; $this->reflector = $class; $this->extractFactoryMethods(); } public function extractFactoryMethods() { $this->methods = array(); foreach ($this->getPublicStaticMethods() as $method) { if ($method->isFactory()) { // echo $this->getName() . '::' . $method->getName() . ' : ' . count($method->getCalls()) . PHP_EOL; $this->methods[] = $method; } } } public function getPublicStaticMethods() { $methods = array(); foreach ($this->reflector->getMethods(ReflectionMethod::IS_STATIC) as $method) { if ($method->isPublic() && $method->getDeclaringClass() == $this->reflector) { $methods[] = new FactoryMethod($this, $method); } } return $methods; } public function getFile() { return $this->file; } public function getName() { return $this->reflector->name; } public function isFactory() { return !empty($this->methods); } public function getMethods() { return $this->methods; } } PK!g)  FactoryFile.phpnu[file = $file; $this->indent = $indent; } abstract public function addCall(FactoryCall $call); abstract public function build(); public function addFileHeader() { $this->code = ''; $this->addPart('file_header'); } public function addPart($name) { $this->addCode($this->readPart($name)); } public function addCode($code) { $this->code .= $code; } public function readPart($name) { return file_get_contents(__DIR__ . "/parts/$name.txt"); } public function generateFactoryCall(FactoryCall $call) { $method = $call->getMethod(); $code = $method->getComment($this->indent) . PHP_EOL; $code .= $this->generateDeclaration($call->getName(), $method); // $code .= $this->generateImport($method); $code .= $this->generateCall($method); $code .= $this->generateClosing(); return $code; } public function generateDeclaration($name, FactoryMethod $method) { $code = $this->indent . $this->getDeclarationModifiers() . 'function ' . $name . '(' . $this->generateDeclarationArguments($method) . ')' . PHP_EOL . $this->indent . '{' . PHP_EOL; return $code; } public function getDeclarationModifiers() { return ''; } public function generateDeclarationArguments(FactoryMethod $method) { if ($method->acceptsVariableArguments()) { return '/* args... */'; } else { return $method->getParameterDeclarations(); } } public function generateImport(FactoryMethod $method) { return $this->indent . self::INDENT . "require_once '" . $method->getClass()->getFile() . "';" . PHP_EOL; } public function generateCall(FactoryMethod $method) { $code = ''; if ($method->acceptsVariableArguments()) { $code .= $this->indent . self::INDENT . '$args = func_get_args();' . PHP_EOL; } $code .= $this->indent . self::INDENT . 'return '; if ($method->acceptsVariableArguments()) { $code .= 'call_user_func_array(array(\'' . '\\' . $method->getClassName() . '\', \'' . $method->getName() . '\'), $args);' . PHP_EOL; } else { $code .= '\\' . $method->getClassName() . '::' . $method->getName() . '(' . $method->getParameterInvocations() . ');' . PHP_EOL; } return $code; } public function generateClosing() { return $this->indent . '}' . PHP_EOL; } public function write() { file_put_contents($this->file, $this->code); } } PK!SȴStaticMethodFile.phpnu[methods = ''; } public function addCall(FactoryCall $call) { $this->methods .= PHP_EOL . $this->generateFactoryCall($call); } public function getDeclarationModifiers() { return 'public static '; } public function build() { $this->addFileHeader(); $this->addPart('matchers_imports'); $this->addPart('matchers_header'); $this->addCode($this->methods); $this->addPart('matchers_footer'); } } PK!sTFactoryParameter.phpnu[method = $method; $this->reflector = $reflector; } public function getDeclaration() { if ($this->reflector->isArray()) { $code = 'array '; } else { $class = $this->reflector->getClass(); if ($class !== null) { $code = '\\' . $class->name . ' '; } else { $code = ''; } } $code .= '$' . $this->reflector->name; if ($this->reflector->isOptional()) { $default = $this->reflector->getDefaultValue(); if (is_null($default)) { $default = 'null'; } elseif (is_bool($default)) { $default = $default ? 'true' : 'false'; } elseif (is_string($default)) { $default = "'" . $default . "'"; } elseif (is_numeric($default)) { $default = strval($default); } elseif (is_array($default)) { $default = 'array()'; } else { echo 'Warning: unknown default type for ' . $this->getMethod()->getFullName() . PHP_EOL; var_dump($default); $default = 'null'; } $code .= ' = ' . $default; } return $code; } public function getInvocation() { return '$' . $this->reflector->name; } public function getMethod() { return $this->method; } } PK!G FactoryGenerator.phpnu[path = $path; $this->factoryFiles = array(); } public function addFactoryFile(FactoryFile $factoryFile) { $this->factoryFiles[] = $factoryFile; } public function generate() { $classes = $this->getClassesWithFactoryMethods(); foreach ($classes as $class) { foreach ($class->getMethods() as $method) { foreach ($method->getCalls() as $call) { foreach ($this->factoryFiles as $file) { $file->addCall($call); } } } } } public function write() { foreach ($this->factoryFiles as $file) { $file->build(); $file->write(); } } public function getClassesWithFactoryMethods() { $classes = array(); $files = $this->getSortedFiles(); foreach ($files as $file) { $class = $this->getFactoryClass($file); if ($class !== null) { $classes[] = $class; } } return $classes; } public function getSortedFiles() { $iter = \File_Iterator_Factory::getFileIterator($this->path, '.php'); $files = array(); foreach ($iter as $file) { $files[] = $file; } sort($files, SORT_STRING); return $files; } public function getFactoryClass($file) { $name = $this->getFactoryClassName($file); if ($name !== null) { require_once $file; if (class_exists($name)) { $class = new FactoryClass(substr($file, strpos($file, 'Hamcrest/')), new ReflectionClass($name)); if ($class->isFactory()) { return $class; } } } return null; } public function getFactoryClassName($file) { $content = file_get_contents($file); if (preg_match('/namespace\s+(.+);/', $content, $namespace) && preg_match('/\n\s*class\s+(\w+)\s+extends\b/', $content, $className) && preg_match('/@factory\b/', $content) ) { return $namespace[1] . '\\' . $className[1]; } return null; } } PK!uGlobalFunctionFile.phpnu[functions = ''; } public function addCall(FactoryCall $call) { $this->functions .= PHP_EOL . $this->generateFactoryCall($call); } public function build() { $this->addFileHeader(); $this->addPart('functions_imports'); $this->addPart('functions_header'); $this->addCode($this->functions); $this->addPart('functions_footer'); } public function generateFactoryCall(FactoryCall $call) { $code = "if (!function_exists('{$call->getName()}')) {"; $code.= parent::generateFactoryCall($call); $code.= "}\n"; return $code; } } PK!c]W;;run.phpnu[addFactoryFile(new StaticMethodFile(STATIC_MATCHERS_FILE)); $generator->addFactoryFile(new GlobalFunctionFile(GLOBAL_FUNCTIONS_FILE)); $generator->generate(); $generator->write(); PK!Z;parts/matchers_footer.txtnu[} PK!| xxparts/file_header.txtnu[parts/functions_header.txtnu[ if (!function_exists('assertThat')) { /** * Make an assertion and throw {@link Hamcrest_AssertionError} if it fails. * * Example: *
     * //With an identifier
     * assertThat("assertion identifier", $apple->flavour(), equalTo("tasty"));
     * //Without an identifier
     * assertThat($apple->flavour(), equalTo("tasty"));
     * //Evaluating a boolean expression
     * assertThat("some error", $a > $b);
     * 
*/ function assertThat() { $args = func_get_args(); call_user_func_array( array('Hamcrest\MatcherAssert', 'assertThat'), $args ); } } PK!;VVparts/matchers_header.txtnu[ /** * A series of static factories for all hamcrest matchers. */ class Matchers { PK!parts/functions_imports.txtnu[PK!parts/functions_footer.txtnu[PK!k3ccFactoryCall.phpnu[method = $method; $this->name = $name; } public function getMethod() { return $this->method; } public function getName() { return $this->name; } } PK!D.GFactoryMethod.phpnu[class = $class; $this->reflector = $reflector; $this->extractCommentWithoutLeadingShashesAndStars(); $this->extractFactoryNamesFromComment(); $this->extractParameters(); } public function extractCommentWithoutLeadingShashesAndStars() { $this->comment = explode("\n", $this->reflector->getDocComment()); foreach ($this->comment as &$line) { $line = preg_replace('#^\s*(/\\*+|\\*+/|\\*)\s?#', '', $line); } $this->trimLeadingBlankLinesFromComment(); $this->trimTrailingBlankLinesFromComment(); } public function trimLeadingBlankLinesFromComment() { while (count($this->comment) > 0) { $line = array_shift($this->comment); if (trim($line) != '') { array_unshift($this->comment, $line); break; } } } public function trimTrailingBlankLinesFromComment() { while (count($this->comment) > 0) { $line = array_pop($this->comment); if (trim($line) != '') { array_push($this->comment, $line); break; } } } public function extractFactoryNamesFromComment() { $this->calls = array(); for ($i = 0; $i < count($this->comment); $i++) { if ($this->extractFactoryNamesFromLine($this->comment[$i])) { unset($this->comment[$i]); } } $this->trimTrailingBlankLinesFromComment(); } public function extractFactoryNamesFromLine($line) { if (preg_match('/^\s*@factory(\s+(.+))?$/', $line, $match)) { $this->createCalls( $this->extractFactoryNamesFromAnnotation( isset($match[2]) ? trim($match[2]) : null ) ); return true; } return false; } public function extractFactoryNamesFromAnnotation($value) { $primaryName = $this->reflector->getName(); if (empty($value)) { return array($primaryName); } preg_match_all('/(\.{3}|-|[a-zA-Z_][a-zA-Z_0-9]*)/', $value, $match); $names = $match[0]; if (in_array('...', $names)) { $this->isVarArgs = true; } if (!in_array('-', $names) && !in_array($primaryName, $names)) { array_unshift($names, $primaryName); } return $names; } public function createCalls(array $names) { $names = array_unique($names); foreach ($names as $name) { if ($name != '-' && $name != '...') { $this->calls[] = new FactoryCall($this, $name); } } } public function extractParameters() { $this->parameters = array(); if (!$this->isVarArgs) { foreach ($this->reflector->getParameters() as $parameter) { $this->parameters[] = new FactoryParameter($this, $parameter); } } } public function getParameterDeclarations() { if ($this->isVarArgs || !$this->hasParameters()) { return ''; } $params = array(); foreach ($this->parameters as /** @var $parameter FactoryParameter */ $parameter) { $params[] = $parameter->getDeclaration(); } return implode(', ', $params); } public function getParameterInvocations() { if ($this->isVarArgs) { return ''; } $params = array(); foreach ($this->parameters as $parameter) { $params[] = $parameter->getInvocation(); } return implode(', ', $params); } public function getClass() { return $this->class; } public function getClassName() { return $this->class->getName(); } public function getName() { return $this->reflector->name; } public function isFactory() { return count($this->calls) > 0; } public function getCalls() { return $this->calls; } public function acceptsVariableArguments() { return $this->isVarArgs; } public function hasParameters() { return !empty($this->parameters); } public function getParameters() { return $this->parameters; } public function getFullName() { return $this->getClassName() . '::' . $this->getName(); } public function getCommentText() { return implode(PHP_EOL, $this->comment); } public function getComment($indent = '') { $comment = $indent . '/**'; foreach ($this->comment as $line) { $comment .= PHP_EOL . rtrim($indent . ' * ' . $line); } $comment .= PHP_EOL . $indent . ' */'; return $comment; } } PK!@gypsh.pynu[# Copyright (c) 2011 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """gypsh output module gypsh is a GYP shell. It's not really a generator per se. All it does is fire up an interactive Python session with a few local variables set to the variables passed to the generator. Like gypd, it's intended as a debugging aid, to facilitate the exploration of .gyp structures after being processed by the input module. The expected usage is "gyp -f gypsh -D OS=desired_os". """ import code import sys # All of this stuff about generator variables was lovingly ripped from gypd.py. # That module has a much better description of what's going on and why. _generator_identity_variables = [ 'EXECUTABLE_PREFIX', 'EXECUTABLE_SUFFIX', 'INTERMEDIATE_DIR', 'PRODUCT_DIR', 'RULE_INPUT_ROOT', 'RULE_INPUT_DIRNAME', 'RULE_INPUT_EXT', 'RULE_INPUT_NAME', 'RULE_INPUT_PATH', 'SHARED_INTERMEDIATE_DIR', ] generator_default_variables = { } for v in _generator_identity_variables: generator_default_variables[v] = '<(%s)' % v def GenerateOutput(target_list, target_dicts, data, params): locals = { 'target_list': target_list, 'target_dicts': target_dicts, 'data': data, } # Use a banner that looks like the stock Python one and like what # code.interact uses by default, but tack on something to indicate what # locals are available, and identify gypsh. banner='Python %s on %s\nlocals.keys() = %s\ngypsh' % \ (sys.version, sys.platform, repr(sorted(locals.keys()))) code.interact(banner, local=locals) PK!M1  msvs.pynu[# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import print_function import copy import ntpath import os import posixpath import re import subprocess import sys from collections import OrderedDict import gyp.common import gyp.easy_xml as easy_xml import gyp.generator.ninja as ninja_generator import gyp.MSVSNew as MSVSNew import gyp.MSVSProject as MSVSProject import gyp.MSVSSettings as MSVSSettings import gyp.MSVSToolFile as MSVSToolFile import gyp.MSVSUserFile as MSVSUserFile import gyp.MSVSUtil as MSVSUtil import gyp.MSVSVersion as MSVSVersion from gyp.common import GypError from gyp.common import OrderedSet PY3 = bytes != str # Regular expression for validating Visual Studio GUIDs. If the GUID # contains lowercase hex letters, MSVS will be fine. However, # IncrediBuild BuildConsole will parse the solution file, but then # silently skip building the target causing hard to track down errors. # Note that this only happens with the BuildConsole, and does not occur # if IncrediBuild is executed from inside Visual Studio. This regex # validates that the string looks like a GUID with all uppercase hex # letters. VALID_MSVS_GUID_CHARS = re.compile(r'^[A-F0-9\-]+$') generator_default_variables = { 'EXECUTABLE_PREFIX': '', 'EXECUTABLE_SUFFIX': '.exe', 'STATIC_LIB_PREFIX': '', 'SHARED_LIB_PREFIX': '', 'STATIC_LIB_SUFFIX': '.lib', 'SHARED_LIB_SUFFIX': '.dll', 'INTERMEDIATE_DIR': '$(IntDir)', 'SHARED_INTERMEDIATE_DIR': '$(OutDir)obj/global_intermediate', 'OS': 'win', 'PRODUCT_DIR': '$(OutDir)', 'LIB_DIR': '$(OutDir)lib', 'RULE_INPUT_ROOT': '$(InputName)', 'RULE_INPUT_DIRNAME': '$(InputDir)', 'RULE_INPUT_EXT': '$(InputExt)', 'RULE_INPUT_NAME': '$(InputFileName)', 'RULE_INPUT_PATH': '$(InputPath)', 'CONFIGURATION_NAME': '$(ConfigurationName)', } # The msvs specific sections that hold paths generator_additional_path_sections = [ 'msvs_cygwin_dirs', 'msvs_props', ] generator_additional_non_configuration_keys = [ 'msvs_cygwin_dirs', 'msvs_cygwin_shell', 'msvs_large_pdb', 'msvs_shard', 'msvs_external_builder', 'msvs_external_builder_out_dir', 'msvs_external_builder_build_cmd', 'msvs_external_builder_clean_cmd', 'msvs_external_builder_clcompile_cmd', 'msvs_enable_winrt', 'msvs_requires_importlibrary', 'msvs_enable_winphone', 'msvs_enable_marmasm', 'msvs_application_type_revision', 'msvs_target_platform_version', 'msvs_target_platform_minversion', ] # List of precompiled header related keys. precomp_keys = [ 'msvs_precompiled_header', 'msvs_precompiled_source', ] cached_username = None cached_domain = None # TODO(gspencer): Switch the os.environ calls to be # win32api.GetDomainName() and win32api.GetUserName() once the # python version in depot_tools has been updated to work on Vista # 64-bit. def _GetDomainAndUserName(): if sys.platform not in ('win32', 'cygwin'): return ('DOMAIN', 'USERNAME') global cached_username global cached_domain if not cached_domain or not cached_username: domain = os.environ.get('USERDOMAIN') username = os.environ.get('USERNAME') if not domain or not username: call = subprocess.Popen(['net', 'config', 'Workstation'], stdout=subprocess.PIPE) config = call.communicate()[0] if PY3: config = config.decode('utf-8') username_re = re.compile(r'^User name\s+(\S+)', re.MULTILINE) username_match = username_re.search(config) if username_match: username = username_match.group(1) domain_re = re.compile(r'^Logon domain\s+(\S+)', re.MULTILINE) domain_match = domain_re.search(config) if domain_match: domain = domain_match.group(1) cached_domain = domain cached_username = username return (cached_domain, cached_username) fixpath_prefix = None def _NormalizedSource(source): """Normalize the path. But not if that gets rid of a variable, as this may expand to something larger than one directory. Arguments: source: The path to be normalize.d Returns: The normalized path. """ normalized = os.path.normpath(source) if source.count('$') == normalized.count('$'): source = normalized return source def _FixPath(path): """Convert paths to a form that will make sense in a vcproj file. Arguments: path: The path to convert, may contain / etc. Returns: The path with all slashes made into backslashes. """ if fixpath_prefix and path and not os.path.isabs(path) and not path[0] == '$' and not _IsWindowsAbsPath(path): path = os.path.join(fixpath_prefix, path) path = path.replace('/', '\\') path = _NormalizedSource(path) if path and path[-1] == '\\': path = path[:-1] return path def _IsWindowsAbsPath(path): r""" On Cygwin systems Python needs a little help determining if a path is an absolute Windows path or not, so that it does not treat those as relative, which results in bad paths like: '..\C:\\some_source_code_file.cc' """ return path.startswith('c:') or path.startswith('C:') def _FixPaths(paths): """Fix each of the paths of the list.""" return [_FixPath(i) for i in paths] def _ConvertSourcesToFilterHierarchy(sources, prefix=None, excluded=None, list_excluded=True, msvs_version=None): """Converts a list split source file paths into a vcproj folder hierarchy. Arguments: sources: A list of source file paths split. prefix: A list of source file path layers meant to apply to each of sources. excluded: A set of excluded files. msvs_version: A MSVSVersion object. Returns: A hierarchy of filenames and MSVSProject.Filter objects that matches the layout of the source tree. For example: _ConvertSourcesToFilterHierarchy([['a', 'bob1.c'], ['b', 'bob2.c']], prefix=['joe']) --> [MSVSProject.Filter('a', contents=['joe\\a\\bob1.c']), MSVSProject.Filter('b', contents=['joe\\b\\bob2.c'])] """ if not prefix: prefix = [] result = [] excluded_result = [] folders = OrderedDict() # Gather files into the final result, excluded, or folders. for s in sources: if len(s) == 1: filename = _NormalizedSource('\\'.join(prefix + s)) if filename in excluded: excluded_result.append(filename) else: result.append(filename) elif msvs_version and not msvs_version.UsesVcxproj(): # For MSVS 2008 and earlier, we need to process all files before walking # the sub folders. if not folders.get(s[0]): folders[s[0]] = [] folders[s[0]].append(s[1:]) else: contents = _ConvertSourcesToFilterHierarchy([s[1:]], prefix + [s[0]], excluded=excluded, list_excluded=list_excluded, msvs_version=msvs_version) contents = MSVSProject.Filter(s[0], contents=contents) result.append(contents) # Add a folder for excluded files. if excluded_result and list_excluded: excluded_folder = MSVSProject.Filter('_excluded_files', contents=excluded_result) result.append(excluded_folder) if msvs_version and msvs_version.UsesVcxproj(): return result # Populate all the folders. for f in folders: contents = _ConvertSourcesToFilterHierarchy(folders[f], prefix=prefix + [f], excluded=excluded, list_excluded=list_excluded, msvs_version=msvs_version) contents = MSVSProject.Filter(f, contents=contents) result.append(contents) return result def _ToolAppend(tools, tool_name, setting, value, only_if_unset=False): if not value: return _ToolSetOrAppend(tools, tool_name, setting, value, only_if_unset) def _ToolSetOrAppend(tools, tool_name, setting, value, only_if_unset=False): # TODO(bradnelson): ugly hack, fix this more generally!!! if 'Directories' in setting or 'Dependencies' in setting: if type(value) == str: value = value.replace('/', '\\') else: value = [i.replace('/', '\\') for i in value] if not tools.get(tool_name): tools[tool_name] = dict() tool = tools[tool_name] if tool.get(setting): if only_if_unset: return if type(tool[setting]) == list and type(value) == list: tool[setting] += value else: raise TypeError( 'Appending "%s" to a non-list setting "%s" for tool "%s" is ' 'not allowed, previous value: %s' % ( value, setting, tool_name, str(tool[setting]))) else: tool[setting] = value def _ConfigPlatform(config_data): return config_data.get('msvs_configuration_platform', 'Win32') def _ConfigBaseName(config_name, platform_name): if config_name.endswith('_' + platform_name): return config_name[0:-len(platform_name) - 1] else: return config_name def _ConfigFullName(config_name, config_data): platform_name = _ConfigPlatform(config_data) return '%s|%s' % (_ConfigBaseName(config_name, platform_name), platform_name) def _ConfigWindowsTargetPlatformVersion(config_data): ver = config_data.get('msvs_windows_target_platform_version') if not ver or re.match(r'^\d+', ver): return ver for key in [r'HKLM\Software\Microsoft\Microsoft SDKs\Windows\%s', r'HKLM\Software\Wow6432Node\Microsoft\Microsoft SDKs\Windows\%s']: sdkdir = MSVSVersion._RegistryGetValue(key % ver, 'InstallationFolder') if not sdkdir: continue version = MSVSVersion._RegistryGetValue(key % ver, 'ProductVersion') or '' # find a matching entry in sdkdir\include names = sorted([x for x in os.listdir(r'%s\include' % sdkdir) \ if x.startswith(version)], reverse = True) return names[0] def _BuildCommandLineForRuleRaw(spec, cmd, cygwin_shell, has_input_path, quote_cmd, do_setup_env): if [x for x in cmd if '$(InputDir)' in x]: input_dir_preamble = ( 'set INPUTDIR=$(InputDir)\n' 'if NOT DEFINED INPUTDIR set INPUTDIR=.\\\n' 'set INPUTDIR=%INPUTDIR:~0,-1%\n' ) else: input_dir_preamble = '' if cygwin_shell: # Find path to cygwin. cygwin_dir = _FixPath(spec.get('msvs_cygwin_dirs', ['.'])[0]) # Prepare command. direct_cmd = cmd direct_cmd = [i.replace('$(IntDir)', '`cygpath -m "${INTDIR}"`') for i in direct_cmd] direct_cmd = [i.replace('$(OutDir)', '`cygpath -m "${OUTDIR}"`') for i in direct_cmd] direct_cmd = [i.replace('$(InputDir)', '`cygpath -m "${INPUTDIR}"`') for i in direct_cmd] if has_input_path: direct_cmd = [i.replace('$(InputPath)', '`cygpath -m "${INPUTPATH}"`') for i in direct_cmd] direct_cmd = ['\\"%s\\"' % i.replace('"', '\\\\\\"') for i in direct_cmd] # direct_cmd = gyp.common.EncodePOSIXShellList(direct_cmd) direct_cmd = ' '.join(direct_cmd) # TODO(quote): regularize quoting path names throughout the module cmd = '' if do_setup_env: cmd += 'call "$(ProjectDir)%(cygwin_dir)s\\setup_env.bat" && ' cmd += 'set CYGWIN=nontsec&& ' if direct_cmd.find('NUMBER_OF_PROCESSORS') >= 0: cmd += 'set /a NUMBER_OF_PROCESSORS_PLUS_1=%%NUMBER_OF_PROCESSORS%%+1&& ' if direct_cmd.find('INTDIR') >= 0: cmd += 'set INTDIR=$(IntDir)&& ' if direct_cmd.find('OUTDIR') >= 0: cmd += 'set OUTDIR=$(OutDir)&& ' if has_input_path and direct_cmd.find('INPUTPATH') >= 0: cmd += 'set INPUTPATH=$(InputPath) && ' cmd += 'bash -c "%(cmd)s"' cmd = cmd % {'cygwin_dir': cygwin_dir, 'cmd': direct_cmd} return input_dir_preamble + cmd else: # Convert cat --> type to mimic unix. if cmd[0] == 'cat': command = ['type'] else: command = [cmd[0].replace('/', '\\')] # Add call before command to ensure that commands can be tied together one # after the other without aborting in Incredibuild, since IB makes a bat # file out of the raw command string, and some commands (like python) are # actually batch files themselves. command.insert(0, 'call') # Fix the paths # TODO(quote): This is a really ugly heuristic, and will miss path fixing # for arguments like "--arg=path" or "/opt:path". # If the argument starts with a slash or dash, it's probably a command line # switch arguments = [i if (i[:1] in "/-") else _FixPath(i) for i in cmd[1:]] arguments = [i.replace('$(InputDir)', '%INPUTDIR%') for i in arguments] arguments = [MSVSSettings.FixVCMacroSlashes(i) for i in arguments] if quote_cmd: # Support a mode for using cmd directly. # Convert any paths to native form (first element is used directly). # TODO(quote): regularize quoting path names throughout the module arguments = ['"%s"' % i for i in arguments] # Collapse into a single command. return input_dir_preamble + ' '.join(command + arguments) def _BuildCommandLineForRule(spec, rule, has_input_path, do_setup_env): # Currently this weird argument munging is used to duplicate the way a # python script would need to be run as part of the chrome tree. # Eventually we should add some sort of rule_default option to set this # per project. For now the behavior chrome needs is the default. mcs = rule.get('msvs_cygwin_shell') if mcs is None: mcs = int(spec.get('msvs_cygwin_shell', 1)) elif isinstance(mcs, str): mcs = int(mcs) quote_cmd = int(rule.get('msvs_quote_cmd', 1)) return _BuildCommandLineForRuleRaw(spec, rule['action'], mcs, has_input_path, quote_cmd, do_setup_env=do_setup_env) def _AddActionStep(actions_dict, inputs, outputs, description, command): """Merge action into an existing list of actions. Care must be taken so that actions which have overlapping inputs either don't get assigned to the same input, or get collapsed into one. Arguments: actions_dict: dictionary keyed on input name, which maps to a list of dicts describing the actions attached to that input file. inputs: list of inputs outputs: list of outputs description: description of the action command: command line to execute """ # Require there to be at least one input (call sites will ensure this). assert inputs action = { 'inputs': inputs, 'outputs': outputs, 'description': description, 'command': command, } # Pick where to stick this action. # While less than optimal in terms of build time, attach them to the first # input for now. chosen_input = inputs[0] # Add it there. if chosen_input not in actions_dict: actions_dict[chosen_input] = [] actions_dict[chosen_input].append(action) def _AddCustomBuildToolForMSVS(p, spec, primary_input, inputs, outputs, description, cmd): """Add a custom build tool to execute something. Arguments: p: the target project spec: the target project dict primary_input: input file to attach the build tool to inputs: list of inputs outputs: list of outputs description: description of the action cmd: command line to execute """ inputs = _FixPaths(inputs) outputs = _FixPaths(outputs) tool = MSVSProject.Tool( 'VCCustomBuildTool', {'Description': description, 'AdditionalDependencies': ';'.join(inputs), 'Outputs': ';'.join(outputs), 'CommandLine': cmd, }) # Add to the properties of primary input for each config. for config_name, c_data in spec['configurations'].items(): p.AddFileConfig(_FixPath(primary_input), _ConfigFullName(config_name, c_data), tools=[tool]) def _AddAccumulatedActionsToMSVS(p, spec, actions_dict): """Add actions accumulated into an actions_dict, merging as needed. Arguments: p: the target project spec: the target project dict actions_dict: dictionary keyed on input name, which maps to a list of dicts describing the actions attached to that input file. """ for primary_input in actions_dict: inputs = OrderedSet() outputs = OrderedSet() descriptions = [] commands = [] for action in actions_dict[primary_input]: inputs.update(OrderedSet(action['inputs'])) outputs.update(OrderedSet(action['outputs'])) descriptions.append(action['description']) commands.append(action['command']) # Add the custom build step for one input file. description = ', and also '.join(descriptions) command = '\r\n'.join(commands) _AddCustomBuildToolForMSVS(p, spec, primary_input=primary_input, inputs=inputs, outputs=outputs, description=description, cmd=command) def _RuleExpandPath(path, input_file): """Given the input file to which a rule applied, string substitute a path. Arguments: path: a path to string expand input_file: the file to which the rule applied. Returns: The string substituted path. """ path = path.replace('$(InputName)', os.path.splitext(os.path.split(input_file)[1])[0]) path = path.replace('$(InputDir)', os.path.dirname(input_file)) path = path.replace('$(InputExt)', os.path.splitext(os.path.split(input_file)[1])[1]) path = path.replace('$(InputFileName)', os.path.split(input_file)[1]) path = path.replace('$(InputPath)', input_file) return path def _FindRuleTriggerFiles(rule, sources): """Find the list of files which a particular rule applies to. Arguments: rule: the rule in question sources: the set of all known source files for this project Returns: The list of sources that trigger a particular rule. """ return rule.get('rule_sources', []) def _RuleInputsAndOutputs(rule, trigger_file): """Find the inputs and outputs generated by a rule. Arguments: rule: the rule in question. trigger_file: the main trigger for this rule. Returns: The pair of (inputs, outputs) involved in this rule. """ raw_inputs = _FixPaths(rule.get('inputs', [])) raw_outputs = _FixPaths(rule.get('outputs', [])) inputs = OrderedSet() outputs = OrderedSet() inputs.add(trigger_file) for i in raw_inputs: inputs.add(_RuleExpandPath(i, trigger_file)) for o in raw_outputs: outputs.add(_RuleExpandPath(o, trigger_file)) return (inputs, outputs) def _GenerateNativeRulesForMSVS(p, rules, output_dir, spec, options): """Generate a native rules file. Arguments: p: the target project rules: the set of rules to include output_dir: the directory in which the project/gyp resides spec: the project dict options: global generator options """ rules_filename = '%s%s.rules' % (spec['target_name'], options.suffix) rules_file = MSVSToolFile.Writer(os.path.join(output_dir, rules_filename), spec['target_name']) # Add each rule. for r in rules: rule_name = r['rule_name'] rule_ext = r['extension'] inputs = _FixPaths(r.get('inputs', [])) outputs = _FixPaths(r.get('outputs', [])) # Skip a rule with no action and no inputs. if 'action' not in r and not r.get('rule_sources', []): continue cmd = _BuildCommandLineForRule(spec, r, has_input_path=True, do_setup_env=True) rules_file.AddCustomBuildRule(name=rule_name, description=r.get('message', rule_name), extensions=[rule_ext], additional_dependencies=inputs, outputs=outputs, cmd=cmd) # Write out rules file. rules_file.WriteIfChanged() # Add rules file to project. p.AddToolFile(rules_filename) def _Cygwinify(path): path = path.replace('$(OutDir)', '$(OutDirCygwin)') path = path.replace('$(IntDir)', '$(IntDirCygwin)') return path def _GenerateExternalRules(rules, output_dir, spec, sources, options, actions_to_add): """Generate an external makefile to do a set of rules. Arguments: rules: the list of rules to include output_dir: path containing project and gyp files spec: project specification data sources: set of sources known options: global generator options actions_to_add: The list of actions we will add to. """ filename = '%s_rules%s.mk' % (spec['target_name'], options.suffix) mk_file = gyp.common.WriteOnDiff(os.path.join(output_dir, filename)) # Find cygwin style versions of some paths. mk_file.write('OutDirCygwin:=$(shell cygpath -u "$(OutDir)")\n') mk_file.write('IntDirCygwin:=$(shell cygpath -u "$(IntDir)")\n') # Gather stuff needed to emit all: target. all_inputs = OrderedSet() all_outputs = OrderedSet() all_output_dirs = OrderedSet() first_outputs = [] for rule in rules: trigger_files = _FindRuleTriggerFiles(rule, sources) for tf in trigger_files: inputs, outputs = _RuleInputsAndOutputs(rule, tf) all_inputs.update(OrderedSet(inputs)) all_outputs.update(OrderedSet(outputs)) # Only use one target from each rule as the dependency for # 'all' so we don't try to build each rule multiple times. first_outputs.append(list(outputs)[0]) # Get the unique output directories for this rule. output_dirs = [os.path.split(i)[0] for i in outputs] for od in output_dirs: all_output_dirs.add(od) first_outputs_cyg = [_Cygwinify(i) for i in first_outputs] # Write out all: target, including mkdir for each output directory. mk_file.write('all: %s\n' % ' '.join(first_outputs_cyg)) for od in all_output_dirs: if od: mk_file.write('\tmkdir -p `cygpath -u "%s"`\n' % od) mk_file.write('\n') # Define how each output is generated. for rule in rules: trigger_files = _FindRuleTriggerFiles(rule, sources) for tf in trigger_files: # Get all the inputs and outputs for this rule for this trigger file. inputs, outputs = _RuleInputsAndOutputs(rule, tf) inputs = [_Cygwinify(i) for i in inputs] outputs = [_Cygwinify(i) for i in outputs] # Prepare the command line for this rule. cmd = [_RuleExpandPath(c, tf) for c in rule['action']] cmd = ['"%s"' % i for i in cmd] cmd = ' '.join(cmd) # Add it to the makefile. mk_file.write('%s: %s\n' % (' '.join(outputs), ' '.join(inputs))) mk_file.write('\t%s\n\n' % cmd) # Close up the file. mk_file.close() # Add makefile to list of sources. sources.add(filename) # Add a build action to call makefile. cmd = ['make', 'OutDir=$(OutDir)', 'IntDir=$(IntDir)', '-j', '${NUMBER_OF_PROCESSORS_PLUS_1}', '-f', filename] cmd = _BuildCommandLineForRuleRaw(spec, cmd, True, False, True, True) # Insert makefile as 0'th input, so it gets the action attached there, # as this is easier to understand from in the IDE. all_inputs = list(all_inputs) all_inputs.insert(0, filename) _AddActionStep(actions_to_add, inputs=_FixPaths(all_inputs), outputs=_FixPaths(all_outputs), description='Running external rules for %s' % spec['target_name'], command=cmd) def _EscapeEnvironmentVariableExpansion(s): """Escapes % characters. Escapes any % characters so that Windows-style environment variable expansions will leave them alone. See http://connect.microsoft.com/VisualStudio/feedback/details/106127/cl-d-name-text-containing-percentage-characters-doesnt-compile to understand why we have to do this. Args: s: The string to be escaped. Returns: The escaped string. """ s = s.replace('%', '%%') return s quote_replacer_regex = re.compile(r'(\\*)"') def _EscapeCommandLineArgumentForMSVS(s): """Escapes a Windows command-line argument. So that the Win32 CommandLineToArgv function will turn the escaped result back into the original string. See http://msdn.microsoft.com/en-us/library/17w5ykft.aspx ("Parsing C++ Command-Line Arguments") to understand why we have to do this. Args: s: the string to be escaped. Returns: the escaped string. """ def _Replace(match): # For a literal quote, CommandLineToArgv requires an odd number of # backslashes preceding it, and it produces half as many literal backslashes # (rounded down). So we need to produce 2n+1 backslashes. return 2 * match.group(1) + '\\"' # Escape all quotes so that they are interpreted literally. s = quote_replacer_regex.sub(_Replace, s) # Now add unescaped quotes so that any whitespace is interpreted literally. s = '"' + s + '"' return s delimiters_replacer_regex = re.compile(r'(\\*)([,;]+)') def _EscapeVCProjCommandLineArgListItem(s): """Escapes command line arguments for MSVS. The VCProj format stores string lists in a single string using commas and semi-colons as separators, which must be quoted if they are to be interpreted literally. However, command-line arguments may already have quotes, and the VCProj parser is ignorant of the backslash escaping convention used by CommandLineToArgv, so the command-line quotes and the VCProj quotes may not be the same quotes. So to store a general command-line argument in a VCProj list, we need to parse the existing quoting according to VCProj's convention and quote any delimiters that are not already quoted by that convention. The quotes that we add will also be seen by CommandLineToArgv, so if backslashes precede them then we also have to escape those backslashes according to the CommandLineToArgv convention. Args: s: the string to be escaped. Returns: the escaped string. """ def _Replace(match): # For a non-literal quote, CommandLineToArgv requires an even number of # backslashes preceding it, and it produces half as many literal # backslashes. So we need to produce 2n backslashes. return 2 * match.group(1) + '"' + match.group(2) + '"' segments = s.split('"') # The unquoted segments are at the even-numbered indices. for i in range(0, len(segments), 2): segments[i] = delimiters_replacer_regex.sub(_Replace, segments[i]) # Concatenate back into a single string s = '"'.join(segments) if len(segments) % 2 == 0: # String ends while still quoted according to VCProj's convention. This # means the delimiter and the next list item that follow this one in the # .vcproj file will be misinterpreted as part of this item. There is nothing # we can do about this. Adding an extra quote would correct the problem in # the VCProj but cause the same problem on the final command-line. Moving # the item to the end of the list does works, but that's only possible if # there's only one such item. Let's just warn the user. print('Warning: MSVS may misinterpret the odd number of ' + 'quotes in ' + s, file=sys.stderr) return s def _EscapeCppDefineForMSVS(s): """Escapes a CPP define so that it will reach the compiler unaltered.""" s = _EscapeEnvironmentVariableExpansion(s) s = _EscapeCommandLineArgumentForMSVS(s) s = _EscapeVCProjCommandLineArgListItem(s) # cl.exe replaces literal # characters with = in preprocesor definitions for # some reason. Octal-encode to work around that. s = s.replace('#', '\\%03o' % ord('#')) return s quote_replacer_regex2 = re.compile(r'(\\+)"') def _EscapeCommandLineArgumentForMSBuild(s): """Escapes a Windows command-line argument for use by MSBuild.""" def _Replace(match): return (len(match.group(1)) / 2 * 4) * '\\' + '\\"' # Escape all quotes so that they are interpreted literally. s = quote_replacer_regex2.sub(_Replace, s) return s def _EscapeMSBuildSpecialCharacters(s): escape_dictionary = { '%': '%25', '$': '%24', '@': '%40', "'": '%27', ';': '%3B', '?': '%3F', '*': '%2A' } result = ''.join([escape_dictionary.get(c, c) for c in s]) return result def _EscapeCppDefineForMSBuild(s): """Escapes a CPP define so that it will reach the compiler unaltered.""" s = _EscapeEnvironmentVariableExpansion(s) s = _EscapeCommandLineArgumentForMSBuild(s) s = _EscapeMSBuildSpecialCharacters(s) # cl.exe replaces literal # characters with = in preprocesor definitions for # some reason. Octal-encode to work around that. s = s.replace('#', '\\%03o' % ord('#')) return s def _GenerateRulesForMSVS(p, output_dir, options, spec, sources, excluded_sources, actions_to_add): """Generate all the rules for a particular project. Arguments: p: the project output_dir: directory to emit rules to options: global options passed to the generator spec: the specification for this project sources: the set of all known source files in this project excluded_sources: the set of sources excluded from normal processing actions_to_add: deferred list of actions to add in """ rules = spec.get('rules', []) rules_native = [r for r in rules if not int(r.get('msvs_external_rule', 0))] rules_external = [r for r in rules if int(r.get('msvs_external_rule', 0))] # Handle rules that use a native rules file. if rules_native: _GenerateNativeRulesForMSVS(p, rules_native, output_dir, spec, options) # Handle external rules (non-native rules). if rules_external: _GenerateExternalRules(rules_external, output_dir, spec, sources, options, actions_to_add) _AdjustSourcesForRules(rules, sources, excluded_sources, False) def _AdjustSourcesForRules(rules, sources, excluded_sources, is_msbuild): # Add outputs generated by each rule (if applicable). for rule in rules: # Add in the outputs from this rule. trigger_files = _FindRuleTriggerFiles(rule, sources) for trigger_file in trigger_files: # Remove trigger_file from excluded_sources to let the rule be triggered # (e.g. rule trigger ax_enums.idl is added to excluded_sources # because it's also in an action's inputs in the same project) excluded_sources.discard(_FixPath(trigger_file)) # Done if not processing outputs as sources. if int(rule.get('process_outputs_as_sources', False)): inputs, outputs = _RuleInputsAndOutputs(rule, trigger_file) inputs = OrderedSet(_FixPaths(inputs)) outputs = OrderedSet(_FixPaths(outputs)) inputs.remove(_FixPath(trigger_file)) sources.update(inputs) if not is_msbuild: excluded_sources.update(inputs) sources.update(outputs) def _FilterActionsFromExcluded(excluded_sources, actions_to_add): """Take inputs with actions attached out of the list of exclusions. Arguments: excluded_sources: list of source files not to be built. actions_to_add: dict of actions keyed on source file they're attached to. Returns: excluded_sources with files that have actions attached removed. """ must_keep = OrderedSet(_FixPaths(actions_to_add.keys())) return [s for s in excluded_sources if s not in must_keep] def _GetDefaultConfiguration(spec): return spec['configurations'][spec['default_configuration']] def _GetGuidOfProject(proj_path, spec): """Get the guid for the project. Arguments: proj_path: Path of the vcproj or vcxproj file to generate. spec: The target dictionary containing the properties of the target. Returns: the guid. Raises: ValueError: if the specified GUID is invalid. """ # Pluck out the default configuration. default_config = _GetDefaultConfiguration(spec) # Decide the guid of the project. guid = default_config.get('msvs_guid') if guid: if VALID_MSVS_GUID_CHARS.match(guid) is None: raise ValueError('Invalid MSVS guid: "%s". Must match regex: "%s".' % (guid, VALID_MSVS_GUID_CHARS.pattern)) guid = '{%s}' % guid guid = guid or MSVSNew.MakeGuid(proj_path) return guid def _GetMsbuildToolsetOfProject(proj_path, spec, version): """Get the platform toolset for the project. Arguments: proj_path: Path of the vcproj or vcxproj file to generate. spec: The target dictionary containing the properties of the target. version: The MSVSVersion object. Returns: the platform toolset string or None. """ # Pluck out the default configuration. default_config = _GetDefaultConfiguration(spec) toolset = default_config.get('msbuild_toolset') if not toolset and version.DefaultToolset(): toolset = version.DefaultToolset() return toolset def _GenerateProject(project, options, version, generator_flags): """Generates a vcproj file. Arguments: project: the MSVSProject object. options: global generator options. version: the MSVSVersion object. generator_flags: dict of generator-specific flags. Returns: A list of source files that cannot be found on disk. """ default_config = _GetDefaultConfiguration(project.spec) # Skip emitting anything if told to with msvs_existing_vcproj option. if default_config.get('msvs_existing_vcproj'): return [] if version.UsesVcxproj(): return _GenerateMSBuildProject(project, options, version, generator_flags) else: return _GenerateMSVSProject(project, options, version, generator_flags) # TODO: Avoid code duplication with _ValidateSourcesForOSX in make.py. def _ValidateSourcesForMSVSProject(spec, version): """Makes sure if duplicate basenames are not specified in the source list. Arguments: spec: The target dictionary containing the properties of the target. version: The VisualStudioVersion object. """ # This validation should not be applied to MSVC2010 and later. assert not version.UsesVcxproj() # TODO: Check if MSVC allows this for loadable_module targets. if spec.get('type', None) not in ('static_library', 'shared_library'): return sources = spec.get('sources', []) basenames = {} for source in sources: name, ext = os.path.splitext(source) is_compiled_file = ext in [ '.c', '.cc', '.cpp', '.cxx', '.m', '.mm', '.s', '.S'] if not is_compiled_file: continue basename = os.path.basename(name) # Don't include extension. basenames.setdefault(basename, []).append(source) error = '' for basename, files in basenames.items(): if len(files) > 1: error += ' %s: %s\n' % (basename, ' '.join(files)) if error: print('static library %s has several files with the same basename:\n' % spec['target_name'] + error + 'MSVC08 cannot handle that.') raise GypError('Duplicate basenames in sources section, see list above') def _GenerateMSVSProject(project, options, version, generator_flags): """Generates a .vcproj file. It may create .rules and .user files too. Arguments: project: The project object we will generate the file for. options: Global options passed to the generator. version: The VisualStudioVersion object. generator_flags: dict of generator-specific flags. """ spec = project.spec gyp.common.EnsureDirExists(project.path) platforms = _GetUniquePlatforms(spec) p = MSVSProject.Writer(project.path, version, spec['target_name'], project.guid, platforms) # Get directory project file is in. project_dir = os.path.split(project.path)[0] gyp_path = _NormalizedSource(project.build_file) relative_path_of_gyp_file = gyp.common.RelativePath(gyp_path, project_dir) config_type = _GetMSVSConfigurationType(spec, project.build_file) for config_name, config in spec['configurations'].items(): _AddConfigurationToMSVSProject(p, spec, config_type, config_name, config) # MSVC08 and prior version cannot handle duplicate basenames in the same # target. # TODO: Take excluded sources into consideration if possible. _ValidateSourcesForMSVSProject(spec, version) # Prepare list of sources and excluded sources. gyp_file = os.path.split(project.build_file)[1] sources, excluded_sources = _PrepareListOfSources(spec, generator_flags, gyp_file) # Add rules. actions_to_add = {} _GenerateRulesForMSVS(p, project_dir, options, spec, sources, excluded_sources, actions_to_add) list_excluded = generator_flags.get('msvs_list_excluded_files', True) sources, excluded_sources, excluded_idl = ( _AdjustSourcesAndConvertToFilterHierarchy(spec, options, project_dir, sources, excluded_sources, list_excluded, version)) # Add in files. missing_sources = _VerifySourcesExist(sources, project_dir) p.AddFiles(sources) _AddToolFilesToMSVS(p, spec) _HandlePreCompiledHeaders(p, sources, spec) _AddActions(actions_to_add, spec, relative_path_of_gyp_file) _AddCopies(actions_to_add, spec) _WriteMSVSUserFile(project.path, version, spec) # NOTE: this stanza must appear after all actions have been decided. # Don't excluded sources with actions attached, or they won't run. excluded_sources = _FilterActionsFromExcluded( excluded_sources, actions_to_add) _ExcludeFilesFromBeingBuilt(p, spec, excluded_sources, excluded_idl, list_excluded) _AddAccumulatedActionsToMSVS(p, spec, actions_to_add) # Write it out. p.WriteIfChanged() return missing_sources def _GetUniquePlatforms(spec): """Returns the list of unique platforms for this spec, e.g ['win32', ...]. Arguments: spec: The target dictionary containing the properties of the target. Returns: The MSVSUserFile object created. """ # Gather list of unique platforms. platforms = OrderedSet() for configuration in spec['configurations']: platforms.add(_ConfigPlatform(spec['configurations'][configuration])) platforms = list(platforms) return platforms def _CreateMSVSUserFile(proj_path, version, spec): """Generates a .user file for the user running this Gyp program. Arguments: proj_path: The path of the project file being created. The .user file shares the same path (with an appropriate suffix). version: The VisualStudioVersion object. spec: The target dictionary containing the properties of the target. Returns: The MSVSUserFile object created. """ (domain, username) = _GetDomainAndUserName() vcuser_filename = '.'.join([proj_path, domain, username, 'user']) user_file = MSVSUserFile.Writer(vcuser_filename, version, spec['target_name']) return user_file def _GetMSVSConfigurationType(spec, build_file): """Returns the configuration type for this project. It's a number defined by Microsoft. May raise an exception. Args: spec: The target dictionary containing the properties of the target. build_file: The path of the gyp file. Returns: An integer, the configuration type. """ try: config_type = { 'executable': '1', # .exe 'shared_library': '2', # .dll 'loadable_module': '2', # .dll 'static_library': '4', # .lib 'none': '10', # Utility type }[spec['type']] except KeyError: if spec.get('type'): raise GypError('Target type %s is not a valid target type for ' 'target %s in %s.' % (spec['type'], spec['target_name'], build_file)) else: raise GypError('Missing type field for target %s in %s.' % (spec['target_name'], build_file)) return config_type def _AddConfigurationToMSVSProject(p, spec, config_type, config_name, config): """Adds a configuration to the MSVS project. Many settings in a vcproj file are specific to a configuration. This function the main part of the vcproj file that's configuration specific. Arguments: p: The target project being generated. spec: The target dictionary containing the properties of the target. config_type: The configuration type, a number as defined by Microsoft. config_name: The name of the configuration. config: The dictionary that defines the special processing to be done for this configuration. """ # Get the information for this configuration include_dirs, midl_include_dirs, resource_include_dirs = \ _GetIncludeDirs(config) libraries = _GetLibraries(spec) library_dirs = _GetLibraryDirs(config) out_file, vc_tool, _ = _GetOutputFilePathAndTool(spec, msbuild=False) defines = _GetDefines(config) defines = [_EscapeCppDefineForMSVS(d) for d in defines] disabled_warnings = _GetDisabledWarnings(config) prebuild = config.get('msvs_prebuild') postbuild = config.get('msvs_postbuild') def_file = _GetModuleDefinition(spec) precompiled_header = config.get('msvs_precompiled_header') # Prepare the list of tools as a dictionary. tools = dict() # Add in user specified msvs_settings. msvs_settings = config.get('msvs_settings', {}) MSVSSettings.ValidateMSVSSettings(msvs_settings) # Prevent default library inheritance from the environment. _ToolAppend(tools, 'VCLinkerTool', 'AdditionalDependencies', ['$(NOINHERIT)']) for tool in msvs_settings: settings = config['msvs_settings'][tool] for setting in settings: _ToolAppend(tools, tool, setting, settings[setting]) # Add the information to the appropriate tool _ToolAppend(tools, 'VCCLCompilerTool', 'AdditionalIncludeDirectories', include_dirs) _ToolAppend(tools, 'VCMIDLTool', 'AdditionalIncludeDirectories', midl_include_dirs) _ToolAppend(tools, 'VCResourceCompilerTool', 'AdditionalIncludeDirectories', resource_include_dirs) # Add in libraries. _ToolAppend(tools, 'VCLinkerTool', 'AdditionalDependencies', libraries) _ToolAppend(tools, 'VCLinkerTool', 'AdditionalLibraryDirectories', library_dirs) if out_file: _ToolAppend(tools, vc_tool, 'OutputFile', out_file, only_if_unset=True) # Add defines. _ToolAppend(tools, 'VCCLCompilerTool', 'PreprocessorDefinitions', defines) _ToolAppend(tools, 'VCResourceCompilerTool', 'PreprocessorDefinitions', defines) # Change program database directory to prevent collisions. _ToolAppend(tools, 'VCCLCompilerTool', 'ProgramDataBaseFileName', '$(IntDir)$(ProjectName)\\vc80.pdb', only_if_unset=True) # Add disabled warnings. _ToolAppend(tools, 'VCCLCompilerTool', 'DisableSpecificWarnings', disabled_warnings) # Add Pre-build. _ToolAppend(tools, 'VCPreBuildEventTool', 'CommandLine', prebuild) # Add Post-build. _ToolAppend(tools, 'VCPostBuildEventTool', 'CommandLine', postbuild) # Turn on precompiled headers if appropriate. if precompiled_header: precompiled_header = os.path.split(precompiled_header)[1] _ToolAppend(tools, 'VCCLCompilerTool', 'UsePrecompiledHeader', '2') _ToolAppend(tools, 'VCCLCompilerTool', 'PrecompiledHeaderThrough', precompiled_header) _ToolAppend(tools, 'VCCLCompilerTool', 'ForcedIncludeFiles', precompiled_header) # Loadable modules don't generate import libraries; # tell dependent projects to not expect one. if spec['type'] == 'loadable_module': _ToolAppend(tools, 'VCLinkerTool', 'IgnoreImportLibrary', 'true') # Set the module definition file if any. if def_file: _ToolAppend(tools, 'VCLinkerTool', 'ModuleDefinitionFile', def_file) _AddConfigurationToMSVS(p, spec, tools, config, config_type, config_name) def _GetIncludeDirs(config): """Returns the list of directories to be used for #include directives. Arguments: config: The dictionary that defines the special processing to be done for this configuration. Returns: The list of directory paths. """ # TODO(bradnelson): include_dirs should really be flexible enough not to # require this sort of thing. include_dirs = ( config.get('include_dirs', []) + config.get('msvs_system_include_dirs', [])) midl_include_dirs = ( config.get('midl_include_dirs', []) + config.get('msvs_system_include_dirs', [])) resource_include_dirs = config.get('resource_include_dirs', include_dirs) include_dirs = _FixPaths(include_dirs) midl_include_dirs = _FixPaths(midl_include_dirs) resource_include_dirs = _FixPaths(resource_include_dirs) return include_dirs, midl_include_dirs, resource_include_dirs def _GetLibraryDirs(config): """Returns the list of directories to be used for library search paths. Arguments: config: The dictionary that defines the special processing to be done for this configuration. Returns: The list of directory paths. """ library_dirs = config.get('library_dirs', []) library_dirs = _FixPaths(library_dirs) return library_dirs def _GetLibraries(spec): """Returns the list of libraries for this configuration. Arguments: spec: The target dictionary containing the properties of the target. Returns: The list of directory paths. """ libraries = spec.get('libraries', []) # Strip out -l, as it is not used on windows (but is needed so we can pass # in libraries that are assumed to be in the default library path). # Also remove duplicate entries, leaving only the last duplicate, while # preserving order. found = OrderedSet() unique_libraries_list = [] for entry in reversed(libraries): library = re.sub(r'^\-l', '', entry) if not os.path.splitext(library)[1]: library += '.lib' if library not in found: found.add(library) unique_libraries_list.append(library) unique_libraries_list.reverse() return unique_libraries_list def _GetOutputFilePathAndTool(spec, msbuild): """Returns the path and tool to use for this target. Figures out the path of the file this spec will create and the name of the VC tool that will create it. Arguments: spec: The target dictionary containing the properties of the target. Returns: A triple of (file path, name of the vc tool, name of the msbuild tool) """ # Select a name for the output file. out_file = '' vc_tool = '' msbuild_tool = '' output_file_map = { 'executable': ('VCLinkerTool', 'Link', '$(OutDir)', '.exe'), 'shared_library': ('VCLinkerTool', 'Link', '$(OutDir)', '.dll'), 'loadable_module': ('VCLinkerTool', 'Link', '$(OutDir)', '.dll'), 'static_library': ('VCLibrarianTool', 'Lib', '$(OutDir)lib\\', '.lib'), } output_file_props = output_file_map.get(spec['type']) if output_file_props and int(spec.get('msvs_auto_output_file', 1)): vc_tool, msbuild_tool, out_dir, suffix = output_file_props if spec.get('standalone_static_library', 0): out_dir = '$(OutDir)' out_dir = spec.get('product_dir', out_dir) product_extension = spec.get('product_extension') if product_extension: suffix = '.' + product_extension elif msbuild: suffix = '$(TargetExt)' prefix = spec.get('product_prefix', '') product_name = spec.get('product_name', '$(ProjectName)') out_file = ntpath.join(out_dir, prefix + product_name + suffix) return out_file, vc_tool, msbuild_tool def _GetOutputTargetExt(spec): """Returns the extension for this target, including the dot If product_extension is specified, set target_extension to this to avoid MSB8012, returns None otherwise. Ignores any target_extension settings in the input files. Arguments: spec: The target dictionary containing the properties of the target. Returns: A string with the extension, or None """ target_extension = spec.get('product_extension') if target_extension: return '.' + target_extension return None def _GetDefines(config): """Returns the list of preprocessor definitions for this configuation. Arguments: config: The dictionary that defines the special processing to be done for this configuration. Returns: The list of preprocessor definitions. """ defines = [] for d in config.get('defines', []): if type(d) == list: fd = '='.join([str(dpart) for dpart in d]) else: fd = str(d) defines.append(fd) return defines def _GetDisabledWarnings(config): return [str(i) for i in config.get('msvs_disabled_warnings', [])] def _GetModuleDefinition(spec): def_file = '' if spec['type'] in ['shared_library', 'loadable_module', 'executable']: def_files = [s for s in spec.get('sources', []) if s.endswith('.def')] if len(def_files) == 1: def_file = _FixPath(def_files[0]) elif def_files: raise ValueError( 'Multiple module definition files in one target, target %s lists ' 'multiple .def files: %s' % ( spec['target_name'], ' '.join(def_files))) return def_file def _ConvertToolsToExpectedForm(tools): """Convert tools to a form expected by Visual Studio. Arguments: tools: A dictionary of settings; the tool name is the key. Returns: A list of Tool objects. """ tool_list = [] for tool, settings in tools.items(): # Collapse settings with lists. settings_fixed = {} for setting, value in settings.items(): if type(value) == list: if ((tool == 'VCLinkerTool' and setting == 'AdditionalDependencies') or setting == 'AdditionalOptions'): settings_fixed[setting] = ' '.join(value) else: settings_fixed[setting] = ';'.join(value) else: settings_fixed[setting] = value # Add in this tool. tool_list.append(MSVSProject.Tool(tool, settings_fixed)) return tool_list def _AddConfigurationToMSVS(p, spec, tools, config, config_type, config_name): """Add to the project file the configuration specified by config. Arguments: p: The target project being generated. spec: the target project dict. tools: A dictionary of settings; the tool name is the key. config: The dictionary that defines the special processing to be done for this configuration. config_type: The configuration type, a number as defined by Microsoft. config_name: The name of the configuration. """ attributes = _GetMSVSAttributes(spec, config, config_type) # Add in this configuration. tool_list = _ConvertToolsToExpectedForm(tools) p.AddConfig(_ConfigFullName(config_name, config), attrs=attributes, tools=tool_list) def _GetMSVSAttributes(spec, config, config_type): # Prepare configuration attributes. prepared_attrs = {} source_attrs = config.get('msvs_configuration_attributes', {}) for a in source_attrs: prepared_attrs[a] = source_attrs[a] # Add props files. vsprops_dirs = config.get('msvs_props', []) vsprops_dirs = _FixPaths(vsprops_dirs) if vsprops_dirs: prepared_attrs['InheritedPropertySheets'] = ';'.join(vsprops_dirs) # Set configuration type. prepared_attrs['ConfigurationType'] = config_type output_dir = prepared_attrs.get('OutputDirectory', '$(SolutionDir)$(ConfigurationName)') prepared_attrs['OutputDirectory'] = _FixPath(output_dir) + '\\' if 'IntermediateDirectory' not in prepared_attrs: intermediate = '$(ConfigurationName)\\obj\\$(ProjectName)' prepared_attrs['IntermediateDirectory'] = _FixPath(intermediate) + '\\' else: intermediate = _FixPath(prepared_attrs['IntermediateDirectory']) + '\\' intermediate = MSVSSettings.FixVCMacroSlashes(intermediate) prepared_attrs['IntermediateDirectory'] = intermediate return prepared_attrs def _AddNormalizedSources(sources_set, sources_array): sources_set.update(_NormalizedSource(s) for s in sources_array) def _PrepareListOfSources(spec, generator_flags, gyp_file): """Prepare list of sources and excluded sources. Besides the sources specified directly in the spec, adds the gyp file so that a change to it will cause a re-compile. Also adds appropriate sources for actions and copies. Assumes later stage will un-exclude files which have custom build steps attached. Arguments: spec: The target dictionary containing the properties of the target. gyp_file: The name of the gyp file. Returns: A pair of (list of sources, list of excluded sources). The sources will be relative to the gyp file. """ sources = OrderedSet() _AddNormalizedSources(sources, spec.get('sources', [])) excluded_sources = OrderedSet() # Add in the gyp file. if not generator_flags.get('standalone'): sources.add(gyp_file) # Add in 'action' inputs and outputs. for a in spec.get('actions', []): inputs = a['inputs'] inputs = [_NormalizedSource(i) for i in inputs] # Add all inputs to sources and excluded sources. inputs = OrderedSet(inputs) sources.update(inputs) if not spec.get('msvs_external_builder'): excluded_sources.update(inputs) if int(a.get('process_outputs_as_sources', False)): _AddNormalizedSources(sources, a.get('outputs', [])) # Add in 'copies' inputs and outputs. for cpy in spec.get('copies', []): _AddNormalizedSources(sources, cpy.get('files', [])) return (sources, excluded_sources) def _AdjustSourcesAndConvertToFilterHierarchy( spec, options, gyp_dir, sources, excluded_sources, list_excluded, version): """Adjusts the list of sources and excluded sources. Also converts the sets to lists. Arguments: spec: The target dictionary containing the properties of the target. options: Global generator options. gyp_dir: The path to the gyp file being processed. sources: A set of sources to be included for this project. excluded_sources: A set of sources to be excluded for this project. version: A MSVSVersion object. Returns: A trio of (list of sources, list of excluded sources, path of excluded IDL file) """ # Exclude excluded sources coming into the generator. excluded_sources.update(OrderedSet(spec.get('sources_excluded', []))) # Add excluded sources into sources for good measure. sources.update(excluded_sources) # Convert to proper windows form. # NOTE: sources goes from being a set to a list here. # NOTE: excluded_sources goes from being a set to a list here. sources = _FixPaths(sources) # Convert to proper windows form. excluded_sources = _FixPaths(excluded_sources) excluded_idl = _IdlFilesHandledNonNatively(spec, sources) precompiled_related = _GetPrecompileRelatedFiles(spec) # Find the excluded ones, minus the precompiled header related ones. fully_excluded = [i for i in excluded_sources if i not in precompiled_related] # Convert to folders and the right slashes. sources = [i.split('\\') for i in sources] sources = _ConvertSourcesToFilterHierarchy(sources, excluded=fully_excluded, list_excluded=list_excluded, msvs_version=version) # Prune filters with a single child to flatten ugly directory structures # such as ../../src/modules/module1 etc. if version.UsesVcxproj(): while all([isinstance(s, MSVSProject.Filter) for s in sources]) \ and len(set([s.name for s in sources])) == 1: assert all([len(s.contents) == 1 for s in sources]) sources = [s.contents[0] for s in sources] else: while len(sources) == 1 and isinstance(sources[0], MSVSProject.Filter): sources = sources[0].contents return sources, excluded_sources, excluded_idl def _IdlFilesHandledNonNatively(spec, sources): # If any non-native rules use 'idl' as an extension exclude idl files. # Gather a list here to use later. using_idl = False for rule in spec.get('rules', []): if rule['extension'] == 'idl' and int(rule.get('msvs_external_rule', 0)): using_idl = True break if using_idl: excluded_idl = [i for i in sources if i.endswith('.idl')] else: excluded_idl = [] return excluded_idl def _GetPrecompileRelatedFiles(spec): # Gather a list of precompiled header related sources. precompiled_related = [] for _, config in spec['configurations'].items(): for k in precomp_keys: f = config.get(k) if f: precompiled_related.append(_FixPath(f)) return precompiled_related def _ExcludeFilesFromBeingBuilt(p, spec, excluded_sources, excluded_idl, list_excluded): exclusions = _GetExcludedFilesFromBuild(spec, excluded_sources, excluded_idl) for file_name, excluded_configs in exclusions.items(): if (not list_excluded and len(excluded_configs) == len(spec['configurations'])): # If we're not listing excluded files, then they won't appear in the # project, so don't try to configure them to be excluded. pass else: for config_name, config in excluded_configs: p.AddFileConfig(file_name, _ConfigFullName(config_name, config), {'ExcludedFromBuild': 'true'}) def _GetExcludedFilesFromBuild(spec, excluded_sources, excluded_idl): exclusions = {} # Exclude excluded sources from being built. for f in excluded_sources: excluded_configs = [] for config_name, config in spec['configurations'].items(): precomped = [_FixPath(config.get(i, '')) for i in precomp_keys] # Don't do this for ones that are precompiled header related. if f not in precomped: excluded_configs.append((config_name, config)) exclusions[f] = excluded_configs # If any non-native rules use 'idl' as an extension exclude idl files. # Exclude them now. for f in excluded_idl: excluded_configs = [] for config_name, config in spec['configurations'].items(): excluded_configs.append((config_name, config)) exclusions[f] = excluded_configs return exclusions def _AddToolFilesToMSVS(p, spec): # Add in tool files (rules). tool_files = OrderedSet() for _, config in spec['configurations'].items(): for f in config.get('msvs_tool_files', []): tool_files.add(f) for f in tool_files: p.AddToolFile(f) def _HandlePreCompiledHeaders(p, sources, spec): # Pre-compiled header source stubs need a different compiler flag # (generate precompiled header) and any source file not of the same # kind (i.e. C vs. C++) as the precompiled header source stub needs # to have use of precompiled headers disabled. extensions_excluded_from_precompile = [] for config_name, config in spec['configurations'].items(): source = config.get('msvs_precompiled_source') if source: source = _FixPath(source) # UsePrecompiledHeader=1 for if using precompiled headers. tool = MSVSProject.Tool('VCCLCompilerTool', {'UsePrecompiledHeader': '1'}) p.AddFileConfig(source, _ConfigFullName(config_name, config), {}, tools=[tool]) basename, extension = os.path.splitext(source) if extension == '.c': extensions_excluded_from_precompile = ['.cc', '.cpp', '.cxx'] else: extensions_excluded_from_precompile = ['.c'] def DisableForSourceTree(source_tree): for source in source_tree: if isinstance(source, MSVSProject.Filter): DisableForSourceTree(source.contents) else: basename, extension = os.path.splitext(source) if extension in extensions_excluded_from_precompile: for config_name, config in spec['configurations'].items(): tool = MSVSProject.Tool('VCCLCompilerTool', {'UsePrecompiledHeader': '0', 'ForcedIncludeFiles': '$(NOINHERIT)'}) p.AddFileConfig(_FixPath(source), _ConfigFullName(config_name, config), {}, tools=[tool]) # Do nothing if there was no precompiled source. if extensions_excluded_from_precompile: DisableForSourceTree(sources) def _AddActions(actions_to_add, spec, relative_path_of_gyp_file): # Add actions. actions = spec.get('actions', []) # Don't setup_env every time. When all the actions are run together in one # batch file in VS, the PATH will grow too long. # Membership in this set means that the cygwin environment has been set up, # and does not need to be set up again. have_setup_env = set() for a in actions: # Attach actions to the gyp file if nothing else is there. inputs = a.get('inputs') or [relative_path_of_gyp_file] attached_to = inputs[0] need_setup_env = attached_to not in have_setup_env cmd = _BuildCommandLineForRule(spec, a, has_input_path=False, do_setup_env=need_setup_env) have_setup_env.add(attached_to) # Add the action. _AddActionStep(actions_to_add, inputs=inputs, outputs=a.get('outputs', []), description=a.get('message', a['action_name']), command=cmd) def _WriteMSVSUserFile(project_path, version, spec): # Add run_as and test targets. if 'run_as' in spec: run_as = spec['run_as'] action = run_as.get('action', []) environment = run_as.get('environment', []) working_directory = run_as.get('working_directory', '.') elif int(spec.get('test', 0)): action = ['$(TargetPath)', '--gtest_print_time'] environment = [] working_directory = '.' else: return # Nothing to add # Write out the user file. user_file = _CreateMSVSUserFile(project_path, version, spec) for config_name, c_data in spec['configurations'].items(): user_file.AddDebugSettings(_ConfigFullName(config_name, c_data), action, environment, working_directory) user_file.WriteIfChanged() def _AddCopies(actions_to_add, spec): copies = _GetCopies(spec) for inputs, outputs, cmd, description in copies: _AddActionStep(actions_to_add, inputs=inputs, outputs=outputs, description=description, command=cmd) def _GetCopies(spec): copies = [] # Add copies. for cpy in spec.get('copies', []): for src in cpy.get('files', []): dst = os.path.join(cpy['destination'], os.path.basename(src)) # _AddCustomBuildToolForMSVS() will call _FixPath() on the inputs and # outputs, so do the same for our generated command line. if src.endswith('/'): src_bare = src[:-1] base_dir = posixpath.split(src_bare)[0] outer_dir = posixpath.split(src_bare)[1] cmd = 'cd "%s" && xcopy /e /f /y "%s" "%s\\%s\\"' % ( _FixPath(base_dir), outer_dir, _FixPath(dst), outer_dir) copies.append(([src], ['dummy_copies', dst], cmd, 'Copying %s to %s' % (src, dst))) else: cmd = 'mkdir "%s" 2>nul & set ERRORLEVEL=0 & copy /Y "%s" "%s"' % ( _FixPath(cpy['destination']), _FixPath(src), _FixPath(dst)) copies.append(([src], [dst], cmd, 'Copying %s to %s' % (src, dst))) return copies def _GetPathDict(root, path): # |path| will eventually be empty (in the recursive calls) if it was initially # relative; otherwise it will eventually end up as '\', 'D:\', etc. if not path or path.endswith(os.sep): return root parent, folder = os.path.split(path) parent_dict = _GetPathDict(root, parent) if folder not in parent_dict: parent_dict[folder] = dict() return parent_dict[folder] def _DictsToFolders(base_path, bucket, flat): # Convert to folders recursively. children = [] for folder, contents in bucket.items(): if type(contents) == dict: folder_children = _DictsToFolders(os.path.join(base_path, folder), contents, flat) if flat: children += folder_children else: folder_children = MSVSNew.MSVSFolder(os.path.join(base_path, folder), name='(' + folder + ')', entries=folder_children) children.append(folder_children) else: children.append(contents) return children def _CollapseSingles(parent, node): # Recursively explorer the tree of dicts looking for projects which are # the sole item in a folder which has the same name as the project. Bring # such projects up one level. if (type(node) == dict and len(node) == 1 and list(node)[0] == parent + '.vcproj'): return node[list(node)[0]] if type(node) != dict: return node for child in node: node[child] = _CollapseSingles(child, node[child]) return node def _GatherSolutionFolders(sln_projects, project_objects, flat): root = {} # Convert into a tree of dicts on path. for p in sln_projects: gyp_file, target = gyp.common.ParseQualifiedTarget(p)[0:2] gyp_dir = os.path.dirname(gyp_file) path_dict = _GetPathDict(root, gyp_dir) path_dict[target + '.vcproj'] = project_objects[p] # Walk down from the top until we hit a folder that has more than one entry. # In practice, this strips the top-level "src/" dir from the hierarchy in # the solution. while len(root) == 1 and type(root[list(root)[0]]) == dict: root = root[list(root)[0]] # Collapse singles. root = _CollapseSingles('', root) # Merge buckets until everything is a root entry. return _DictsToFolders('', root, flat) def _GetPathOfProject(qualified_target, spec, options, msvs_version): default_config = _GetDefaultConfiguration(spec) proj_filename = default_config.get('msvs_existing_vcproj') if not proj_filename: proj_filename = (spec['target_name'] + options.suffix + msvs_version.ProjectExtension()) build_file = gyp.common.BuildFile(qualified_target) proj_path = os.path.join(os.path.dirname(build_file), proj_filename) fix_prefix = None if options.generator_output: project_dir_path = os.path.dirname(os.path.abspath(proj_path)) proj_path = os.path.join(options.generator_output, proj_path) fix_prefix = gyp.common.RelativePath(project_dir_path, os.path.dirname(proj_path)) return proj_path, fix_prefix def _GetPlatformOverridesOfProject(spec): # Prepare a dict indicating which project configurations are used for which # solution configurations for this target. config_platform_overrides = {} for config_name, c in spec['configurations'].items(): config_fullname = _ConfigFullName(config_name, c) platform = c.get('msvs_target_platform', _ConfigPlatform(c)) fixed_config_fullname = '%s|%s' % ( _ConfigBaseName(config_name, _ConfigPlatform(c)), platform) config_platform_overrides[config_fullname] = fixed_config_fullname return config_platform_overrides def _CreateProjectObjects(target_list, target_dicts, options, msvs_version): """Create a MSVSProject object for the targets found in target list. Arguments: target_list: the list of targets to generate project objects for. target_dicts: the dictionary of specifications. options: global generator options. msvs_version: the MSVSVersion object. Returns: A set of created projects, keyed by target. """ global fixpath_prefix # Generate each project. projects = {} for qualified_target in target_list: spec = target_dicts[qualified_target] if spec['toolset'] != 'target': raise GypError( 'Multiple toolsets not supported in msvs build (target %s)' % qualified_target) proj_path, fixpath_prefix = _GetPathOfProject(qualified_target, spec, options, msvs_version) guid = _GetGuidOfProject(proj_path, spec) overrides = _GetPlatformOverridesOfProject(spec) build_file = gyp.common.BuildFile(qualified_target) # Create object for this project. obj = MSVSNew.MSVSProject( proj_path, name=spec['target_name'], guid=guid, spec=spec, build_file=build_file, config_platform_overrides=overrides, fixpath_prefix=fixpath_prefix) # Set project toolset if any (MS build only) if msvs_version.UsesVcxproj(): obj.set_msbuild_toolset( _GetMsbuildToolsetOfProject(proj_path, spec, msvs_version)) projects[qualified_target] = obj # Set all the dependencies, but not if we are using an external builder like # ninja for project in projects.values(): if not project.spec.get('msvs_external_builder'): deps = project.spec.get('dependencies', []) deps = [projects[d] for d in deps] project.set_dependencies(deps) return projects def _InitNinjaFlavor(params, target_list, target_dicts): """Initialize targets for the ninja flavor. This sets up the necessary variables in the targets to generate msvs projects that use ninja as an external builder. The variables in the spec are only set if they have not been set. This allows individual specs to override the default values initialized here. Arguments: params: Params provided to the generator. target_list: List of target pairs: 'base/base.gyp:base'. target_dicts: Dict of target properties keyed on target pair. """ for qualified_target in target_list: spec = target_dicts[qualified_target] if spec.get('msvs_external_builder'): # The spec explicitly defined an external builder, so don't change it. continue path_to_ninja = spec.get('msvs_path_to_ninja', 'ninja.exe') spec['msvs_external_builder'] = 'ninja' if not spec.get('msvs_external_builder_out_dir'): gyp_file, _, _ = gyp.common.ParseQualifiedTarget(qualified_target) gyp_dir = os.path.dirname(gyp_file) configuration = '$(Configuration)' if params.get('target_arch') == 'x64': configuration += '_x64' spec['msvs_external_builder_out_dir'] = os.path.join( gyp.common.RelativePath(params['options'].toplevel_dir, gyp_dir), ninja_generator.ComputeOutputDir(params), configuration) if not spec.get('msvs_external_builder_build_cmd'): spec['msvs_external_builder_build_cmd'] = [ path_to_ninja, '-C', '$(OutDir)', '$(ProjectName)', ] if not spec.get('msvs_external_builder_clean_cmd'): spec['msvs_external_builder_clean_cmd'] = [ path_to_ninja, '-C', '$(OutDir)', '-tclean', '$(ProjectName)', ] def CalculateVariables(default_variables, params): """Generated variables that require params to be known.""" generator_flags = params.get('generator_flags', {}) # Select project file format version (if unset, default to auto detecting). msvs_version = MSVSVersion.SelectVisualStudioVersion( generator_flags.get('msvs_version', 'auto')) # Stash msvs_version for later (so we don't have to probe the system twice). params['msvs_version'] = msvs_version # Set a variable so conditions can be based on msvs_version. default_variables['MSVS_VERSION'] = msvs_version.ShortName() # To determine processor word size on Windows, in addition to checking # PROCESSOR_ARCHITECTURE (which reflects the word size of the current # process), it is also necessary to check PROCESSOR_ARCITEW6432 (which # contains the actual word size of the system when running thru WOW64). if (os.environ.get('PROCESSOR_ARCHITECTURE', '').find('64') >= 0 or os.environ.get('PROCESSOR_ARCHITEW6432', '').find('64') >= 0): default_variables['MSVS_OS_BITS'] = 64 else: default_variables['MSVS_OS_BITS'] = 32 if gyp.common.GetFlavor(params) == 'ninja': default_variables['SHARED_INTERMEDIATE_DIR'] = '$(OutDir)gen' def PerformBuild(data, configurations, params): options = params['options'] msvs_version = params['msvs_version'] devenv = os.path.join(msvs_version.path, 'Common7', 'IDE', 'devenv.com') for build_file, build_file_dict in data.items(): (build_file_root, build_file_ext) = os.path.splitext(build_file) if build_file_ext != '.gyp': continue sln_path = build_file_root + options.suffix + '.sln' if options.generator_output: sln_path = os.path.join(options.generator_output, sln_path) for config in configurations: arguments = [devenv, sln_path, '/Build', config] print('Building [%s]: %s' % (config, arguments)) rtn = subprocess.check_call(arguments) def GenerateOutput(target_list, target_dicts, data, params): """Generate .sln and .vcproj files. This is the entry point for this generator. Arguments: target_list: List of target pairs: 'base/base.gyp:base'. target_dicts: Dict of target properties keyed on target pair. data: Dictionary containing per .gyp data. """ global fixpath_prefix options = params['options'] # Get the project file format version back out of where we stashed it in # GeneratorCalculatedVariables. msvs_version = params['msvs_version'] generator_flags = params.get('generator_flags', {}) # Optionally shard targets marked with 'msvs_shard': SHARD_COUNT. (target_list, target_dicts) = MSVSUtil.ShardTargets(target_list, target_dicts) # Optionally use the large PDB workaround for targets marked with # 'msvs_large_pdb': 1. (target_list, target_dicts) = MSVSUtil.InsertLargePdbShims( target_list, target_dicts, generator_default_variables) # Optionally configure each spec to use ninja as the external builder. if params.get('flavor') == 'ninja': _InitNinjaFlavor(params, target_list, target_dicts) # Prepare the set of configurations. configs = set() for qualified_target in target_list: spec = target_dicts[qualified_target] for config_name, config in spec['configurations'].items(): configs.add(_ConfigFullName(config_name, config)) configs = list(configs) # Figure out all the projects that will be generated and their guids project_objects = _CreateProjectObjects(target_list, target_dicts, options, msvs_version) # Generate each project. missing_sources = [] for project in project_objects.values(): fixpath_prefix = project.fixpath_prefix missing_sources.extend(_GenerateProject(project, options, msvs_version, generator_flags)) fixpath_prefix = None for build_file in data: # Validate build_file extension if not build_file.endswith('.gyp'): continue sln_path = os.path.splitext(build_file)[0] + options.suffix + '.sln' if options.generator_output: sln_path = os.path.join(options.generator_output, sln_path) # Get projects in the solution, and their dependents. sln_projects = gyp.common.BuildFileTargets(target_list, build_file) sln_projects += gyp.common.DeepDependencyTargets(target_dicts, sln_projects) # Create folder hierarchy. root_entries = _GatherSolutionFolders( sln_projects, project_objects, flat=msvs_version.FlatSolution()) # Create solution. sln = MSVSNew.MSVSSolution(sln_path, entries=root_entries, variants=configs, websiteProperties=False, version=msvs_version) sln.Write() if missing_sources: error_message = "Missing input files:\n" + \ '\n'.join(set(missing_sources)) if generator_flags.get('msvs_error_on_missing_sources', False): raise GypError(error_message) else: print("Warning: " + error_message, file=sys.stdout) def _GenerateMSBuildFiltersFile(filters_path, source_files, rule_dependencies, extension_to_rule_name, platforms): """Generate the filters file. This file is used by Visual Studio to organize the presentation of source files into folders. Arguments: filters_path: The path of the file to be created. source_files: The hierarchical structure of all the sources. extension_to_rule_name: A dictionary mapping file extensions to rules. """ filter_group = [] source_group = [] _AppendFiltersForMSBuild('', source_files, rule_dependencies, extension_to_rule_name, platforms, filter_group, source_group) if filter_group: content = ['Project', {'ToolsVersion': '4.0', 'xmlns': 'http://schemas.microsoft.com/developer/msbuild/2003' }, ['ItemGroup'] + filter_group, ['ItemGroup'] + source_group ] easy_xml.WriteXmlIfChanged(content, filters_path, pretty=True, win32=True) elif os.path.exists(filters_path): # We don't need this filter anymore. Delete the old filter file. os.unlink(filters_path) def _AppendFiltersForMSBuild(parent_filter_name, sources, rule_dependencies, extension_to_rule_name, platforms, filter_group, source_group): """Creates the list of filters and sources to be added in the filter file. Args: parent_filter_name: The name of the filter under which the sources are found. sources: The hierarchy of filters and sources to process. extension_to_rule_name: A dictionary mapping file extensions to rules. filter_group: The list to which filter entries will be appended. source_group: The list to which source entries will be appeneded. """ for source in sources: if isinstance(source, MSVSProject.Filter): # We have a sub-filter. Create the name of that sub-filter. if not parent_filter_name: filter_name = source.name else: filter_name = '%s\\%s' % (parent_filter_name, source.name) # Add the filter to the group. filter_group.append( ['Filter', {'Include': filter_name}, ['UniqueIdentifier', MSVSNew.MakeGuid(source.name)]]) # Recurse and add its dependents. _AppendFiltersForMSBuild(filter_name, source.contents, rule_dependencies, extension_to_rule_name, platforms, filter_group, source_group) else: # It's a source. Create a source entry. _, element = _MapFileToMsBuildSourceType(source, rule_dependencies, extension_to_rule_name, platforms) source_entry = [element, {'Include': source}] # Specify the filter it is part of, if any. if parent_filter_name: source_entry.append(['Filter', parent_filter_name]) source_group.append(source_entry) def _MapFileToMsBuildSourceType(source, rule_dependencies, extension_to_rule_name, platforms): """Returns the group and element type of the source file. Arguments: source: The source file name. extension_to_rule_name: A dictionary mapping file extensions to rules. Returns: A pair of (group this file should be part of, the label of element) """ _, ext = os.path.splitext(source) if ext in extension_to_rule_name: group = 'rule' element = extension_to_rule_name[ext] elif ext in ['.cc', '.cpp', '.c', '.cxx', '.mm']: group = 'compile' element = 'ClCompile' elif ext in ['.h', '.hxx']: group = 'include' element = 'ClInclude' elif ext == '.rc': group = 'resource' element = 'ResourceCompile' elif ext == '.asm': group = 'masm' element = 'MASM' for platform in platforms: if platform.lower() in ['arm', 'arm64']: element = 'MARMASM' elif ext == '.idl': group = 'midl' element = 'Midl' elif source in rule_dependencies: group = 'rule_dependency' element = 'CustomBuild' else: group = 'none' element = 'None' return (group, element) def _GenerateRulesForMSBuild(output_dir, options, spec, sources, excluded_sources, props_files_of_rules, targets_files_of_rules, actions_to_add, rule_dependencies, extension_to_rule_name): # MSBuild rules are implemented using three files: an XML file, a .targets # file and a .props file. # See http://blogs.msdn.com/b/vcblog/archive/2010/04/21/quick-help-on-vs2010-custom-build-rule.aspx # for more details. rules = spec.get('rules', []) rules_native = [r for r in rules if not int(r.get('msvs_external_rule', 0))] rules_external = [r for r in rules if int(r.get('msvs_external_rule', 0))] msbuild_rules = [] for rule in rules_native: # Skip a rule with no action and no inputs. if 'action' not in rule and not rule.get('rule_sources', []): continue msbuild_rule = MSBuildRule(rule, spec) msbuild_rules.append(msbuild_rule) rule_dependencies.update(msbuild_rule.additional_dependencies.split(';')) extension_to_rule_name[msbuild_rule.extension] = msbuild_rule.rule_name if msbuild_rules: base = spec['target_name'] + options.suffix props_name = base + '.props' targets_name = base + '.targets' xml_name = base + '.xml' props_files_of_rules.add(props_name) targets_files_of_rules.add(targets_name) props_path = os.path.join(output_dir, props_name) targets_path = os.path.join(output_dir, targets_name) xml_path = os.path.join(output_dir, xml_name) _GenerateMSBuildRulePropsFile(props_path, msbuild_rules) _GenerateMSBuildRuleTargetsFile(targets_path, msbuild_rules) _GenerateMSBuildRuleXmlFile(xml_path, msbuild_rules) if rules_external: _GenerateExternalRules(rules_external, output_dir, spec, sources, options, actions_to_add) _AdjustSourcesForRules(rules, sources, excluded_sources, True) class MSBuildRule(object): """Used to store information used to generate an MSBuild rule. Attributes: rule_name: The rule name, sanitized to use in XML. target_name: The name of the target. after_targets: The name of the AfterTargets element. before_targets: The name of the BeforeTargets element. depends_on: The name of the DependsOn element. compute_output: The name of the ComputeOutput element. dirs_to_make: The name of the DirsToMake element. inputs: The name of the _inputs element. tlog: The name of the _tlog element. extension: The extension this rule applies to. description: The message displayed when this rule is invoked. additional_dependencies: A string listing additional dependencies. outputs: The outputs of this rule. command: The command used to run the rule. """ def __init__(self, rule, spec): self.display_name = rule['rule_name'] # Assure that the rule name is only characters and numbers self.rule_name = re.sub(r'\W', '_', self.display_name) # Create the various element names, following the example set by the # Visual Studio 2008 to 2010 conversion. I don't know if VS2010 # is sensitive to the exact names. self.target_name = '_' + self.rule_name self.after_targets = self.rule_name + 'AfterTargets' self.before_targets = self.rule_name + 'BeforeTargets' self.depends_on = self.rule_name + 'DependsOn' self.compute_output = 'Compute%sOutput' % self.rule_name self.dirs_to_make = self.rule_name + 'DirsToMake' self.inputs = self.rule_name + '_inputs' self.tlog = self.rule_name + '_tlog' self.extension = rule['extension'] if not self.extension.startswith('.'): self.extension = '.' + self.extension self.description = MSVSSettings.ConvertVCMacrosToMSBuild( rule.get('message', self.rule_name)) old_additional_dependencies = _FixPaths(rule.get('inputs', [])) self.additional_dependencies = ( ';'.join([MSVSSettings.ConvertVCMacrosToMSBuild(i) for i in old_additional_dependencies])) old_outputs = _FixPaths(rule.get('outputs', [])) self.outputs = ';'.join([MSVSSettings.ConvertVCMacrosToMSBuild(i) for i in old_outputs]) old_command = _BuildCommandLineForRule(spec, rule, has_input_path=True, do_setup_env=True) self.command = MSVSSettings.ConvertVCMacrosToMSBuild(old_command) def _GenerateMSBuildRulePropsFile(props_path, msbuild_rules): """Generate the .props file.""" content = ['Project', {'xmlns': 'http://schemas.microsoft.com/developer/msbuild/2003'}] for rule in msbuild_rules: content.extend([ ['PropertyGroup', {'Condition': "'$(%s)' == '' and '$(%s)' == '' and " "'$(ConfigurationType)' != 'Makefile'" % (rule.before_targets, rule.after_targets) }, [rule.before_targets, 'Midl'], [rule.after_targets, 'CustomBuild'], ], ['PropertyGroup', [rule.depends_on, {'Condition': "'$(ConfigurationType)' != 'Makefile'"}, '_SelectedFiles;$(%s)' % rule.depends_on ], ], ['ItemDefinitionGroup', [rule.rule_name, ['CommandLineTemplate', rule.command], ['Outputs', rule.outputs], ['ExecutionDescription', rule.description], ['AdditionalDependencies', rule.additional_dependencies], ], ] ]) easy_xml.WriteXmlIfChanged(content, props_path, pretty=True, win32=True) def _GenerateMSBuildRuleTargetsFile(targets_path, msbuild_rules): """Generate the .targets file.""" content = ['Project', {'xmlns': 'http://schemas.microsoft.com/developer/msbuild/2003' } ] item_group = [ 'ItemGroup', ['PropertyPageSchema', {'Include': '$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml'} ] ] for rule in msbuild_rules: item_group.append( ['AvailableItemName', {'Include': rule.rule_name}, ['Targets', rule.target_name], ]) content.append(item_group) for rule in msbuild_rules: content.append( ['UsingTask', {'TaskName': rule.rule_name, 'TaskFactory': 'XamlTaskFactory', 'AssemblyName': 'Microsoft.Build.Tasks.v4.0' }, ['Task', '$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml'], ]) for rule in msbuild_rules: rule_name = rule.rule_name target_outputs = '%%(%s.Outputs)' % rule_name target_inputs = ('%%(%s.Identity);%%(%s.AdditionalDependencies);' '$(MSBuildProjectFile)') % (rule_name, rule_name) rule_inputs = '%%(%s.Identity)' % rule_name extension_condition = ("'%(Extension)'=='.obj' or " "'%(Extension)'=='.res' or " "'%(Extension)'=='.rsc' or " "'%(Extension)'=='.lib'") remove_section = [ 'ItemGroup', {'Condition': "'@(SelectedFiles)' != ''"}, [rule_name, {'Remove': '@(%s)' % rule_name, 'Condition': "'%(Identity)' != '@(SelectedFiles)'" } ] ] inputs_section = [ 'ItemGroup', [rule.inputs, {'Include': '%%(%s.AdditionalDependencies)' % rule_name}] ] logging_section = [ 'ItemGroup', [rule.tlog, {'Include': '%%(%s.Outputs)' % rule_name, 'Condition': ("'%%(%s.Outputs)' != '' and " "'%%(%s.ExcludedFromBuild)' != 'true'" % (rule_name, rule_name)) }, ['Source', "@(%s, '|')" % rule_name], ['Inputs', "@(%s -> '%%(Fullpath)', ';')" % rule.inputs], ], ] message_section = [ 'Message', {'Importance': 'High', 'Text': '%%(%s.ExecutionDescription)' % rule_name } ] write_tlog_section = [ 'WriteLinesToFile', {'Condition': "'@(%s)' != '' and '%%(%s.ExcludedFromBuild)' != " "'true'" % (rule.tlog, rule.tlog), 'File': '$(IntDir)$(ProjectName).write.1.tlog', 'Lines': "^%%(%s.Source);@(%s->'%%(Fullpath)')" % (rule.tlog, rule.tlog) } ] read_tlog_section = [ 'WriteLinesToFile', {'Condition': "'@(%s)' != '' and '%%(%s.ExcludedFromBuild)' != " "'true'" % (rule.tlog, rule.tlog), 'File': '$(IntDir)$(ProjectName).read.1.tlog', 'Lines': "^%%(%s.Source);%%(%s.Inputs)" % (rule.tlog, rule.tlog) } ] command_and_input_section = [ rule_name, {'Condition': "'@(%s)' != '' and '%%(%s.ExcludedFromBuild)' != " "'true'" % (rule_name, rule_name), 'EchoOff': 'true', 'StandardOutputImportance': 'High', 'StandardErrorImportance': 'High', 'CommandLineTemplate': '%%(%s.CommandLineTemplate)' % rule_name, 'AdditionalOptions': '%%(%s.AdditionalOptions)' % rule_name, 'Inputs': rule_inputs } ] content.extend([ ['Target', {'Name': rule.target_name, 'BeforeTargets': '$(%s)' % rule.before_targets, 'AfterTargets': '$(%s)' % rule.after_targets, 'Condition': "'@(%s)' != ''" % rule_name, 'DependsOnTargets': '$(%s);%s' % (rule.depends_on, rule.compute_output), 'Outputs': target_outputs, 'Inputs': target_inputs }, remove_section, inputs_section, logging_section, message_section, write_tlog_section, read_tlog_section, command_and_input_section, ], ['PropertyGroup', ['ComputeLinkInputsTargets', '$(ComputeLinkInputsTargets);', '%s;' % rule.compute_output ], ['ComputeLibInputsTargets', '$(ComputeLibInputsTargets);', '%s;' % rule.compute_output ], ], ['Target', {'Name': rule.compute_output, 'Condition': "'@(%s)' != ''" % rule_name }, ['ItemGroup', [rule.dirs_to_make, {'Condition': "'@(%s)' != '' and " "'%%(%s.ExcludedFromBuild)' != 'true'" % (rule_name, rule_name), 'Include': '%%(%s.Outputs)' % rule_name } ], ['Link', {'Include': '%%(%s.Identity)' % rule.dirs_to_make, 'Condition': extension_condition } ], ['Lib', {'Include': '%%(%s.Identity)' % rule.dirs_to_make, 'Condition': extension_condition } ], ['ImpLib', {'Include': '%%(%s.Identity)' % rule.dirs_to_make, 'Condition': extension_condition } ], ], ['MakeDir', {'Directories': ("@(%s->'%%(RootDir)%%(Directory)')" % rule.dirs_to_make) } ] ], ]) easy_xml.WriteXmlIfChanged(content, targets_path, pretty=True, win32=True) def _GenerateMSBuildRuleXmlFile(xml_path, msbuild_rules): # Generate the .xml file content = [ 'ProjectSchemaDefinitions', {'xmlns': ('clr-namespace:Microsoft.Build.Framework.XamlTypes;' 'assembly=Microsoft.Build.Framework'), 'xmlns:x': 'http://schemas.microsoft.com/winfx/2006/xaml', 'xmlns:sys': 'clr-namespace:System;assembly=mscorlib', 'xmlns:transformCallback': 'Microsoft.Cpp.Dev10.ConvertPropertyCallback' } ] for rule in msbuild_rules: content.extend([ ['Rule', {'Name': rule.rule_name, 'PageTemplate': 'tool', 'DisplayName': rule.display_name, 'Order': '200' }, ['Rule.DataSource', ['DataSource', {'Persistence': 'ProjectFile', 'ItemType': rule.rule_name } ] ], ['Rule.Categories', ['Category', {'Name': 'General'}, ['Category.DisplayName', ['sys:String', 'General'], ], ], ['Category', {'Name': 'Command Line', 'Subtype': 'CommandLine' }, ['Category.DisplayName', ['sys:String', 'Command Line'], ], ], ], ['StringListProperty', {'Name': 'Inputs', 'Category': 'Command Line', 'IsRequired': 'true', 'Switch': ' ' }, ['StringListProperty.DataSource', ['DataSource', {'Persistence': 'ProjectFile', 'ItemType': rule.rule_name, 'SourceType': 'Item' } ] ], ], ['StringProperty', {'Name': 'CommandLineTemplate', 'DisplayName': 'Command Line', 'Visible': 'False', 'IncludeInCommandLine': 'False' } ], ['DynamicEnumProperty', {'Name': rule.before_targets, 'Category': 'General', 'EnumProvider': 'Targets', 'IncludeInCommandLine': 'False' }, ['DynamicEnumProperty.DisplayName', ['sys:String', 'Execute Before'], ], ['DynamicEnumProperty.Description', ['sys:String', 'Specifies the targets for the build customization' ' to run before.' ], ], ['DynamicEnumProperty.ProviderSettings', ['NameValuePair', {'Name': 'Exclude', 'Value': '^%s|^Compute' % rule.before_targets } ] ], ['DynamicEnumProperty.DataSource', ['DataSource', {'Persistence': 'ProjectFile', 'HasConfigurationCondition': 'true' } ] ], ], ['DynamicEnumProperty', {'Name': rule.after_targets, 'Category': 'General', 'EnumProvider': 'Targets', 'IncludeInCommandLine': 'False' }, ['DynamicEnumProperty.DisplayName', ['sys:String', 'Execute After'], ], ['DynamicEnumProperty.Description', ['sys:String', ('Specifies the targets for the build customization' ' to run after.') ], ], ['DynamicEnumProperty.ProviderSettings', ['NameValuePair', {'Name': 'Exclude', 'Value': '^%s|^Compute' % rule.after_targets } ] ], ['DynamicEnumProperty.DataSource', ['DataSource', {'Persistence': 'ProjectFile', 'ItemType': '', 'HasConfigurationCondition': 'true' } ] ], ], ['StringListProperty', {'Name': 'Outputs', 'DisplayName': 'Outputs', 'Visible': 'False', 'IncludeInCommandLine': 'False' } ], ['StringProperty', {'Name': 'ExecutionDescription', 'DisplayName': 'Execution Description', 'Visible': 'False', 'IncludeInCommandLine': 'False' } ], ['StringListProperty', {'Name': 'AdditionalDependencies', 'DisplayName': 'Additional Dependencies', 'IncludeInCommandLine': 'False', 'Visible': 'false' } ], ['StringProperty', {'Subtype': 'AdditionalOptions', 'Name': 'AdditionalOptions', 'Category': 'Command Line' }, ['StringProperty.DisplayName', ['sys:String', 'Additional Options'], ], ['StringProperty.Description', ['sys:String', 'Additional Options'], ], ], ], ['ItemType', {'Name': rule.rule_name, 'DisplayName': rule.display_name } ], ['FileExtension', {'Name': '*' + rule.extension, 'ContentType': rule.rule_name } ], ['ContentType', {'Name': rule.rule_name, 'DisplayName': '', 'ItemType': rule.rule_name } ] ]) easy_xml.WriteXmlIfChanged(content, xml_path, pretty=True, win32=True) def _GetConfigurationAndPlatform(name, settings): configuration = name.rsplit('_', 1)[0] platform = settings.get('msvs_configuration_platform', 'Win32') return (configuration, platform) def _GetConfigurationCondition(name, settings): return (r"'$(Configuration)|$(Platform)'=='%s|%s'" % _GetConfigurationAndPlatform(name, settings)) def _GetMSBuildProjectConfigurations(configurations): group = ['ItemGroup', {'Label': 'ProjectConfigurations'}] for (name, settings) in sorted(configurations.items()): configuration, platform = _GetConfigurationAndPlatform(name, settings) designation = '%s|%s' % (configuration, platform) group.append( ['ProjectConfiguration', {'Include': designation}, ['Configuration', configuration], ['Platform', platform]]) return [group] def _GetMSBuildGlobalProperties(spec, guid, gyp_file_name): namespace = os.path.splitext(gyp_file_name)[0] properties = [ ['PropertyGroup', {'Label': 'Globals'}, ['ProjectGuid', guid], ['Keyword', 'Win32Proj'], ['RootNamespace', namespace], ['IgnoreWarnCompileDuplicatedFilename', 'true'], ] ] if os.environ.get('PROCESSOR_ARCHITECTURE') == 'AMD64' or \ os.environ.get('PROCESSOR_ARCHITEW6432') == 'AMD64': properties[0].append(['PreferredToolArchitecture', 'x64']) if spec.get('msvs_enable_winrt'): properties[0].append(['DefaultLanguage', 'en-US']) properties[0].append(['AppContainerApplication', 'true']) if spec.get('msvs_application_type_revision'): app_type_revision = spec.get('msvs_application_type_revision') properties[0].append(['ApplicationTypeRevision', app_type_revision]) else: properties[0].append(['ApplicationTypeRevision', '8.1']) if spec.get('msvs_target_platform_version'): target_platform_version = spec.get('msvs_target_platform_version') properties[0].append(['WindowsTargetPlatformVersion', target_platform_version]) if spec.get('msvs_target_platform_minversion'): target_platform_minversion = spec.get('msvs_target_platform_minversion') properties[0].append(['WindowsTargetPlatformMinVersion', target_platform_minversion]) else: properties[0].append(['WindowsTargetPlatformMinVersion', target_platform_version]) if spec.get('msvs_enable_winphone'): properties[0].append(['ApplicationType', 'Windows Phone']) else: properties[0].append(['ApplicationType', 'Windows Store']) platform_name = None msvs_windows_target_platform_version = None for configuration in spec['configurations'].values(): platform_name = platform_name or _ConfigPlatform(configuration) msvs_windows_target_platform_version = \ msvs_windows_target_platform_version or \ _ConfigWindowsTargetPlatformVersion(configuration) if platform_name and msvs_windows_target_platform_version: break if platform_name == 'ARM': properties[0].append(['WindowsSDKDesktopARMSupport', 'true']) if msvs_windows_target_platform_version: properties[0].append(['WindowsTargetPlatformVersion', \ str(msvs_windows_target_platform_version)]) return properties def _GetMSBuildConfigurationDetails(spec, build_file): properties = {} for name, settings in spec['configurations'].items(): msbuild_attributes = _GetMSBuildAttributes(spec, settings, build_file) condition = _GetConfigurationCondition(name, settings) character_set = msbuild_attributes.get('CharacterSet') _AddConditionalProperty(properties, condition, 'ConfigurationType', msbuild_attributes['ConfigurationType']) if character_set: if 'msvs_enable_winrt' not in spec : _AddConditionalProperty(properties, condition, 'CharacterSet', character_set) return _GetMSBuildPropertyGroup(spec, 'Configuration', properties) def _GetMSBuildLocalProperties(msbuild_toolset): # Currently the only local property we support is PlatformToolset properties = {} if msbuild_toolset: properties = [ ['PropertyGroup', {'Label': 'Locals'}, ['PlatformToolset', msbuild_toolset], ] ] return properties def _GetMSBuildPropertySheets(configurations): user_props = r'$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props' additional_props = {} props_specified = False for name, settings in sorted(configurations.items()): configuration = _GetConfigurationCondition(name, settings) if 'msbuild_props' in settings: additional_props[configuration] = _FixPaths(settings['msbuild_props']) props_specified = True else: additional_props[configuration] = '' if not props_specified: return [ ['ImportGroup', {'Label': 'PropertySheets'}, ['Import', {'Project': user_props, 'Condition': "exists('%s')" % user_props, 'Label': 'LocalAppDataPlatform' } ] ] ] else: sheets = [] for condition, props in additional_props.items(): import_group = [ 'ImportGroup', {'Label': 'PropertySheets', 'Condition': condition }, ['Import', {'Project': user_props, 'Condition': "exists('%s')" % user_props, 'Label': 'LocalAppDataPlatform' } ] ] for props_file in props: import_group.append(['Import', {'Project':props_file}]) sheets.append(import_group) return sheets def _ConvertMSVSBuildAttributes(spec, config, build_file): config_type = _GetMSVSConfigurationType(spec, build_file) msvs_attributes = _GetMSVSAttributes(spec, config, config_type) msbuild_attributes = {} for a in msvs_attributes: if a in ['IntermediateDirectory', 'OutputDirectory']: directory = MSVSSettings.ConvertVCMacrosToMSBuild(msvs_attributes[a]) if not directory.endswith('\\'): directory += '\\' msbuild_attributes[a] = directory elif a == 'CharacterSet': msbuild_attributes[a] = _ConvertMSVSCharacterSet(msvs_attributes[a]) elif a == 'ConfigurationType': msbuild_attributes[a] = _ConvertMSVSConfigurationType(msvs_attributes[a]) else: print('Warning: Do not know how to convert MSVS attribute ' + a) return msbuild_attributes def _ConvertMSVSCharacterSet(char_set): if char_set.isdigit(): char_set = { '0': 'MultiByte', '1': 'Unicode', '2': 'MultiByte', }[char_set] return char_set def _ConvertMSVSConfigurationType(config_type): if config_type.isdigit(): config_type = { '1': 'Application', '2': 'DynamicLibrary', '4': 'StaticLibrary', '10': 'Utility' }[config_type] return config_type def _GetMSBuildAttributes(spec, config, build_file): if 'msbuild_configuration_attributes' not in config: msbuild_attributes = _ConvertMSVSBuildAttributes(spec, config, build_file) else: config_type = _GetMSVSConfigurationType(spec, build_file) config_type = _ConvertMSVSConfigurationType(config_type) msbuild_attributes = config.get('msbuild_configuration_attributes', {}) msbuild_attributes.setdefault('ConfigurationType', config_type) output_dir = msbuild_attributes.get('OutputDirectory', '$(SolutionDir)$(Configuration)') msbuild_attributes['OutputDirectory'] = _FixPath(output_dir) + '\\' if 'IntermediateDirectory' not in msbuild_attributes: intermediate = _FixPath('$(Configuration)') + '\\' msbuild_attributes['IntermediateDirectory'] = intermediate if 'CharacterSet' in msbuild_attributes: msbuild_attributes['CharacterSet'] = _ConvertMSVSCharacterSet( msbuild_attributes['CharacterSet']) if 'TargetName' not in msbuild_attributes: prefix = spec.get('product_prefix', '') product_name = spec.get('product_name', '$(ProjectName)') target_name = prefix + product_name msbuild_attributes['TargetName'] = target_name if 'TargetExt' not in msbuild_attributes and 'product_extension' in spec: ext = spec.get('product_extension') msbuild_attributes['TargetExt'] = '.' + ext if spec.get('msvs_external_builder'): external_out_dir = spec.get('msvs_external_builder_out_dir', '.') msbuild_attributes['OutputDirectory'] = _FixPath(external_out_dir) + '\\' # Make sure that 'TargetPath' matches 'Lib.OutputFile' or 'Link.OutputFile' # (depending on the tool used) to avoid MSB8012 warning. msbuild_tool_map = { 'executable': 'Link', 'shared_library': 'Link', 'loadable_module': 'Link', 'static_library': 'Lib', } msbuild_tool = msbuild_tool_map.get(spec['type']) if msbuild_tool: msbuild_settings = config['finalized_msbuild_settings'] out_file = msbuild_settings[msbuild_tool].get('OutputFile') if out_file: msbuild_attributes['TargetPath'] = _FixPath(out_file) target_ext = msbuild_settings[msbuild_tool].get('TargetExt') if target_ext: msbuild_attributes['TargetExt'] = target_ext return msbuild_attributes def _GetMSBuildConfigurationGlobalProperties(spec, configurations, build_file): # TODO(jeanluc) We could optimize out the following and do it only if # there are actions. # TODO(jeanluc) Handle the equivalent of setting 'CYGWIN=nontsec'. new_paths = [] cygwin_dirs = spec.get('msvs_cygwin_dirs', ['.'])[0] if cygwin_dirs: cyg_path = '$(MSBuildProjectDirectory)\\%s\\bin\\' % _FixPath(cygwin_dirs) new_paths.append(cyg_path) # TODO(jeanluc) Change the convention to have both a cygwin_dir and a # python_dir. python_path = cyg_path.replace('cygwin\\bin', 'python_26') new_paths.append(python_path) if new_paths: new_paths = '$(ExecutablePath);' + ';'.join(new_paths) properties = {} for (name, configuration) in sorted(configurations.items()): condition = _GetConfigurationCondition(name, configuration) attributes = _GetMSBuildAttributes(spec, configuration, build_file) msbuild_settings = configuration['finalized_msbuild_settings'] _AddConditionalProperty(properties, condition, 'IntDir', attributes['IntermediateDirectory']) _AddConditionalProperty(properties, condition, 'OutDir', attributes['OutputDirectory']) _AddConditionalProperty(properties, condition, 'TargetName', attributes['TargetName']) if 'TargetExt' in attributes: _AddConditionalProperty(properties, condition, 'TargetExt', attributes['TargetExt']) if attributes.get('TargetPath'): _AddConditionalProperty(properties, condition, 'TargetPath', attributes['TargetPath']) if attributes.get('TargetExt'): _AddConditionalProperty(properties, condition, 'TargetExt', attributes['TargetExt']) if new_paths: _AddConditionalProperty(properties, condition, 'ExecutablePath', new_paths) tool_settings = msbuild_settings.get('', {}) for name, value in sorted(tool_settings.items()): formatted_value = _GetValueFormattedForMSBuild('', name, value) _AddConditionalProperty(properties, condition, name, formatted_value) return _GetMSBuildPropertyGroup(spec, None, properties) def _AddConditionalProperty(properties, condition, name, value): """Adds a property / conditional value pair to a dictionary. Arguments: properties: The dictionary to be modified. The key is the name of the property. The value is itself a dictionary; its key is the value and the value a list of condition for which this value is true. condition: The condition under which the named property has the value. name: The name of the property. value: The value of the property. """ if name not in properties: properties[name] = {} values = properties[name] if value not in values: values[value] = [] conditions = values[value] conditions.append(condition) # Regex for msvs variable references ( i.e. $(FOO) ). MSVS_VARIABLE_REFERENCE = re.compile(r'\$\(([a-zA-Z_][a-zA-Z0-9_]*)\)') def _GetMSBuildPropertyGroup(spec, label, properties): """Returns a PropertyGroup definition for the specified properties. Arguments: spec: The target project dict. label: An optional label for the PropertyGroup. properties: The dictionary to be converted. The key is the name of the property. The value is itself a dictionary; its key is the value and the value a list of condition for which this value is true. """ group = ['PropertyGroup'] if label: group.append({'Label': label}) num_configurations = len(spec['configurations']) def GetEdges(node): # Use a definition of edges such that user_of_variable -> used_varible. # This happens to be easier in this case, since a variable's # definition contains all variables it references in a single string. edges = set() for value in sorted(properties[node].keys()): # Add to edges all $(...) references to variables. # # Variable references that refer to names not in properties are excluded # These can exist for instance to refer built in definitions like # $(SolutionDir). # # Self references are ignored. Self reference is used in a few places to # append to the default value. I.e. PATH=$(PATH);other_path edges.update(set([v for v in MSVS_VARIABLE_REFERENCE.findall(value) if v in properties and v != node])) return edges properties_ordered = gyp.common.TopologicallySorted( properties.keys(), GetEdges) # Walk properties in the reverse of a topological sort on # user_of_variable -> used_variable as this ensures variables are # defined before they are used. # NOTE: reverse(topsort(DAG)) = topsort(reverse_edges(DAG)) for name in reversed(properties_ordered): values = properties[name] for value, conditions in sorted(values.items()): if len(conditions) == num_configurations: # If the value is the same all configurations, # just add one unconditional entry. group.append([name, value]) else: for condition in conditions: group.append([name, {'Condition': condition}, value]) return [group] def _GetMSBuildToolSettingsSections(spec, configurations): groups = [] for (name, configuration) in sorted(configurations.items()): msbuild_settings = configuration['finalized_msbuild_settings'] group = ['ItemDefinitionGroup', {'Condition': _GetConfigurationCondition(name, configuration)} ] for tool_name, tool_settings in sorted(msbuild_settings.items()): # Skip the tool named '' which is a holder of global settings handled # by _GetMSBuildConfigurationGlobalProperties. if tool_name: if tool_settings: tool = [tool_name] for name, value in sorted(tool_settings.items()): formatted_value = _GetValueFormattedForMSBuild(tool_name, name, value) tool.append([name, formatted_value]) group.append(tool) groups.append(group) return groups def _FinalizeMSBuildSettings(spec, configuration): if 'msbuild_settings' in configuration: converted = False msbuild_settings = configuration['msbuild_settings'] MSVSSettings.ValidateMSBuildSettings(msbuild_settings) else: converted = True msvs_settings = configuration.get('msvs_settings', {}) msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(msvs_settings) include_dirs, midl_include_dirs, resource_include_dirs = \ _GetIncludeDirs(configuration) libraries = _GetLibraries(spec) library_dirs = _GetLibraryDirs(configuration) out_file, _, msbuild_tool = _GetOutputFilePathAndTool(spec, msbuild=True) target_ext = _GetOutputTargetExt(spec) defines = _GetDefines(configuration) if converted: # Visual Studio 2010 has TR1 defines = [d for d in defines if d != '_HAS_TR1=0'] # Warn of ignored settings ignored_settings = ['msvs_tool_files'] for ignored_setting in ignored_settings: value = configuration.get(ignored_setting) if value: print('Warning: The automatic conversion to MSBuild does not handle ' '%s. Ignoring setting of %s' % (ignored_setting, str(value))) defines = [_EscapeCppDefineForMSBuild(d) for d in defines] disabled_warnings = _GetDisabledWarnings(configuration) prebuild = configuration.get('msvs_prebuild') postbuild = configuration.get('msvs_postbuild') def_file = _GetModuleDefinition(spec) precompiled_header = configuration.get('msvs_precompiled_header') # Add the information to the appropriate tool # TODO(jeanluc) We could optimize and generate these settings only if # the corresponding files are found, e.g. don't generate ResourceCompile # if you don't have any resources. _ToolAppend(msbuild_settings, 'ClCompile', 'AdditionalIncludeDirectories', include_dirs) _ToolAppend(msbuild_settings, 'Midl', 'AdditionalIncludeDirectories', midl_include_dirs) _ToolAppend(msbuild_settings, 'ResourceCompile', 'AdditionalIncludeDirectories', resource_include_dirs) # Add in libraries, note that even for empty libraries, we want this # set, to prevent inheriting default libraries from the environment. _ToolSetOrAppend(msbuild_settings, 'Link', 'AdditionalDependencies', libraries) _ToolAppend(msbuild_settings, 'Link', 'AdditionalLibraryDirectories', library_dirs) if out_file: _ToolAppend(msbuild_settings, msbuild_tool, 'OutputFile', out_file, only_if_unset=True) if target_ext: _ToolAppend(msbuild_settings, msbuild_tool, 'TargetExt', target_ext, only_if_unset=True) # Add defines. _ToolAppend(msbuild_settings, 'ClCompile', 'PreprocessorDefinitions', defines) _ToolAppend(msbuild_settings, 'ResourceCompile', 'PreprocessorDefinitions', defines) # Add disabled warnings. _ToolAppend(msbuild_settings, 'ClCompile', 'DisableSpecificWarnings', disabled_warnings) # Turn on precompiled headers if appropriate. if precompiled_header: precompiled_header = os.path.split(precompiled_header)[1] _ToolAppend(msbuild_settings, 'ClCompile', 'PrecompiledHeader', 'Use') _ToolAppend(msbuild_settings, 'ClCompile', 'PrecompiledHeaderFile', precompiled_header) _ToolAppend(msbuild_settings, 'ClCompile', 'ForcedIncludeFiles', [precompiled_header]) else: _ToolAppend(msbuild_settings, 'ClCompile', 'PrecompiledHeader', 'NotUsing') # Turn off WinRT compilation _ToolAppend(msbuild_settings, 'ClCompile', 'CompileAsWinRT', 'false') # Turn on import libraries if appropriate if spec.get('msvs_requires_importlibrary'): _ToolAppend(msbuild_settings, '', 'IgnoreImportLibrary', 'false') # Loadable modules don't generate import libraries; # tell dependent projects to not expect one. if spec['type'] == 'loadable_module': _ToolAppend(msbuild_settings, '', 'IgnoreImportLibrary', 'true') # Set the module definition file if any. if def_file: _ToolAppend(msbuild_settings, 'Link', 'ModuleDefinitionFile', def_file) configuration['finalized_msbuild_settings'] = msbuild_settings if prebuild: _ToolAppend(msbuild_settings, 'PreBuildEvent', 'Command', prebuild) if postbuild: _ToolAppend(msbuild_settings, 'PostBuildEvent', 'Command', postbuild) def _GetValueFormattedForMSBuild(tool_name, name, value): if type(value) == list: # For some settings, VS2010 does not automatically extends the settings # TODO(jeanluc) Is this what we want? if name in ['AdditionalIncludeDirectories', 'AdditionalLibraryDirectories', 'AdditionalOptions', 'DelayLoadDLLs', 'DisableSpecificWarnings', 'PreprocessorDefinitions']: value.append('%%(%s)' % name) # For most tools, entries in a list should be separated with ';' but some # settings use a space. Check for those first. exceptions = { 'ClCompile': ['AdditionalOptions'], 'Link': ['AdditionalOptions'], 'Lib': ['AdditionalOptions']} if tool_name in exceptions and name in exceptions[tool_name]: char = ' ' else: char = ';' formatted_value = char.join( [MSVSSettings.ConvertVCMacrosToMSBuild(i) for i in value]) else: formatted_value = MSVSSettings.ConvertVCMacrosToMSBuild(value) return formatted_value def _VerifySourcesExist(sources, root_dir): """Verifies that all source files exist on disk. Checks that all regular source files, i.e. not created at run time, exist on disk. Missing files cause needless recompilation but no otherwise visible errors. Arguments: sources: A recursive list of Filter/file names. root_dir: The root directory for the relative path names. Returns: A list of source files that cannot be found on disk. """ missing_sources = [] for source in sources: if isinstance(source, MSVSProject.Filter): missing_sources.extend(_VerifySourcesExist(source.contents, root_dir)) else: if '$' not in source: full_path = os.path.join(root_dir, source) if not os.path.exists(full_path): missing_sources.append(full_path) return missing_sources def _GetMSBuildSources(spec, sources, exclusions, rule_dependencies, extension_to_rule_name, actions_spec, sources_handled_by_action, list_excluded): groups = ['none', 'masm', 'midl', 'include', 'compile', 'resource', 'rule', 'rule_dependency'] grouped_sources = {} for g in groups: grouped_sources[g] = [] _AddSources2(spec, sources, exclusions, grouped_sources, rule_dependencies, extension_to_rule_name, sources_handled_by_action, list_excluded) sources = [] for g in groups: if grouped_sources[g]: sources.append(['ItemGroup'] + grouped_sources[g]) if actions_spec: sources.append(['ItemGroup'] + actions_spec) return sources def _AddSources2(spec, sources, exclusions, grouped_sources, rule_dependencies, extension_to_rule_name, sources_handled_by_action, list_excluded): extensions_excluded_from_precompile = [] for source in sources: if isinstance(source, MSVSProject.Filter): _AddSources2(spec, source.contents, exclusions, grouped_sources, rule_dependencies, extension_to_rule_name, sources_handled_by_action, list_excluded) else: if not source in sources_handled_by_action: detail = [] excluded_configurations = exclusions.get(source, []) if len(excluded_configurations) == len(spec['configurations']): detail.append(['ExcludedFromBuild', 'true']) else: for config_name, configuration in sorted(excluded_configurations): condition = _GetConfigurationCondition(config_name, configuration) detail.append(['ExcludedFromBuild', {'Condition': condition}, 'true']) # Add precompile if needed for config_name, configuration in spec['configurations'].items(): precompiled_source = configuration.get('msvs_precompiled_source', '') if precompiled_source != '': precompiled_source = _FixPath(precompiled_source) if not extensions_excluded_from_precompile: # If the precompiled header is generated by a C source, we must # not try to use it for C++ sources, and vice versa. basename, extension = os.path.splitext(precompiled_source) if extension == '.c': extensions_excluded_from_precompile = ['.cc', '.cpp', '.cxx'] else: extensions_excluded_from_precompile = ['.c'] if precompiled_source == source: condition = _GetConfigurationCondition(config_name, configuration) detail.append(['PrecompiledHeader', {'Condition': condition}, 'Create' ]) else: # Turn off precompiled header usage for source files of a # different type than the file that generated the # precompiled header. for extension in extensions_excluded_from_precompile: if source.endswith(extension): detail.append(['PrecompiledHeader', '']) detail.append(['ForcedIncludeFiles', '']) group, element = _MapFileToMsBuildSourceType(source, rule_dependencies, extension_to_rule_name, _GetUniquePlatforms(spec)) grouped_sources[group].append([element, {'Include': source}] + detail) def _GetMSBuildProjectReferences(project): references = [] if project.dependencies: group = ['ItemGroup'] for dependency in project.dependencies: guid = dependency.guid project_dir = os.path.split(project.path)[0] relative_path = gyp.common.RelativePath(dependency.path, project_dir) project_ref = ['ProjectReference', {'Include': relative_path}, ['Project', guid], ['ReferenceOutputAssembly', 'false'] ] for config in dependency.spec.get('configurations', {}).values(): if config.get('msvs_use_library_dependency_inputs', 0): project_ref.append(['UseLibraryDependencyInputs', 'true']) break # If it's disabled in any config, turn it off in the reference. if config.get('msvs_2010_disable_uldi_when_referenced', 0): project_ref.append(['UseLibraryDependencyInputs', 'false']) break group.append(project_ref) references.append(group) return references def _GenerateMSBuildProject(project, options, version, generator_flags): spec = project.spec configurations = spec['configurations'] project_dir, project_file_name = os.path.split(project.path) gyp.common.EnsureDirExists(project.path) # Prepare list of sources and excluded sources. gyp_path = _NormalizedSource(project.build_file) relative_path_of_gyp_file = gyp.common.RelativePath(gyp_path, project_dir) gyp_file = os.path.split(project.build_file)[1] sources, excluded_sources = _PrepareListOfSources(spec, generator_flags, gyp_file) # Add rules. actions_to_add = {} props_files_of_rules = set() targets_files_of_rules = set() rule_dependencies = set() extension_to_rule_name = {} list_excluded = generator_flags.get('msvs_list_excluded_files', True) # Don't generate rules if we are using an external builder like ninja. if not spec.get('msvs_external_builder'): _GenerateRulesForMSBuild(project_dir, options, spec, sources, excluded_sources, props_files_of_rules, targets_files_of_rules, actions_to_add, rule_dependencies, extension_to_rule_name) else: rules = spec.get('rules', []) _AdjustSourcesForRules(rules, sources, excluded_sources, True) sources, excluded_sources, excluded_idl = ( _AdjustSourcesAndConvertToFilterHierarchy(spec, options, project_dir, sources, excluded_sources, list_excluded, version)) # Don't add actions if we are using an external builder like ninja. if not spec.get('msvs_external_builder'): _AddActions(actions_to_add, spec, project.build_file) _AddCopies(actions_to_add, spec) # NOTE: this stanza must appear after all actions have been decided. # Don't excluded sources with actions attached, or they won't run. excluded_sources = _FilterActionsFromExcluded( excluded_sources, actions_to_add) exclusions = _GetExcludedFilesFromBuild(spec, excluded_sources, excluded_idl) actions_spec, sources_handled_by_action = _GenerateActionsForMSBuild( spec, actions_to_add) _GenerateMSBuildFiltersFile(project.path + '.filters', sources, rule_dependencies, extension_to_rule_name, _GetUniquePlatforms(spec)) missing_sources = _VerifySourcesExist(sources, project_dir) for configuration in configurations.values(): _FinalizeMSBuildSettings(spec, configuration) # Add attributes to root element import_default_section = [ ['Import', {'Project': r'$(VCTargetsPath)\Microsoft.Cpp.Default.props'}]] import_cpp_props_section = [ ['Import', {'Project': r'$(VCTargetsPath)\Microsoft.Cpp.props'}]] import_cpp_targets_section = [ ['Import', {'Project': r'$(VCTargetsPath)\Microsoft.Cpp.targets'}]] import_masm_props_section = [ ['Import', {'Project': r'$(VCTargetsPath)\BuildCustomizations\masm.props'}]] import_masm_targets_section = [ ['Import', {'Project': r'$(VCTargetsPath)\BuildCustomizations\masm.targets'}]] import_marmasm_props_section = [ ['Import', {'Project': r'$(VCTargetsPath)\BuildCustomizations\marmasm.props'}]] import_marmasm_targets_section = [ ['Import', {'Project': r'$(VCTargetsPath)\BuildCustomizations\marmasm.targets'}]] macro_section = [['PropertyGroup', {'Label': 'UserMacros'}]] content = [ 'Project', {'xmlns': 'http://schemas.microsoft.com/developer/msbuild/2003', 'ToolsVersion': version.ProjectVersion(), 'DefaultTargets': 'Build' }] content += _GetMSBuildProjectConfigurations(configurations) content += _GetMSBuildGlobalProperties(spec, project.guid, project_file_name) content += import_default_section content += _GetMSBuildConfigurationDetails(spec, project.build_file) if spec.get('msvs_enable_winphone'): content += _GetMSBuildLocalProperties('v120_wp81') else: content += _GetMSBuildLocalProperties(project.msbuild_toolset) content += import_cpp_props_section content += import_masm_props_section if spec.get('msvs_enable_marmasm'): content += import_marmasm_props_section content += _GetMSBuildExtensions(props_files_of_rules) content += _GetMSBuildPropertySheets(configurations) content += macro_section content += _GetMSBuildConfigurationGlobalProperties(spec, configurations, project.build_file) content += _GetMSBuildToolSettingsSections(spec, configurations) content += _GetMSBuildSources( spec, sources, exclusions, rule_dependencies, extension_to_rule_name, actions_spec, sources_handled_by_action, list_excluded) content += _GetMSBuildProjectReferences(project) content += import_cpp_targets_section content += import_masm_targets_section if spec.get('msvs_enable_marmasm'): content += import_marmasm_targets_section content += _GetMSBuildExtensionTargets(targets_files_of_rules) if spec.get('msvs_external_builder'): content += _GetMSBuildExternalBuilderTargets(spec) # TODO(jeanluc) File a bug to get rid of runas. We had in MSVS: # has_run_as = _WriteMSVSUserFile(project.path, version, spec) easy_xml.WriteXmlIfChanged(content, project.path, pretty=True, win32=True) return missing_sources def _GetMSBuildExternalBuilderTargets(spec): """Return a list of MSBuild targets for external builders. The "Build" and "Clean" targets are always generated. If the spec contains 'msvs_external_builder_clcompile_cmd', then the "ClCompile" target will also be generated, to support building selected C/C++ files. Arguments: spec: The gyp target spec. Returns: List of MSBuild 'Target' specs. """ build_cmd = _BuildCommandLineForRuleRaw( spec, spec['msvs_external_builder_build_cmd'], False, False, False, False) build_target = ['Target', {'Name': 'Build'}] build_target.append(['Exec', {'Command': build_cmd}]) clean_cmd = _BuildCommandLineForRuleRaw( spec, spec['msvs_external_builder_clean_cmd'], False, False, False, False) clean_target = ['Target', {'Name': 'Clean'}] clean_target.append(['Exec', {'Command': clean_cmd}]) targets = [build_target, clean_target] if spec.get('msvs_external_builder_clcompile_cmd'): clcompile_cmd = _BuildCommandLineForRuleRaw( spec, spec['msvs_external_builder_clcompile_cmd'], False, False, False, False) clcompile_target = ['Target', {'Name': 'ClCompile'}] clcompile_target.append(['Exec', {'Command': clcompile_cmd}]) targets.append(clcompile_target) return targets def _GetMSBuildExtensions(props_files_of_rules): extensions = ['ImportGroup', {'Label': 'ExtensionSettings'}] for props_file in props_files_of_rules: extensions.append(['Import', {'Project': props_file}]) return [extensions] def _GetMSBuildExtensionTargets(targets_files_of_rules): targets_node = ['ImportGroup', {'Label': 'ExtensionTargets'}] for targets_file in sorted(targets_files_of_rules): targets_node.append(['Import', {'Project': targets_file}]) return [targets_node] def _GenerateActionsForMSBuild(spec, actions_to_add): """Add actions accumulated into an actions_to_add, merging as needed. Arguments: spec: the target project dict actions_to_add: dictionary keyed on input name, which maps to a list of dicts describing the actions attached to that input file. Returns: A pair of (action specification, the sources handled by this action). """ sources_handled_by_action = OrderedSet() actions_spec = [] for primary_input, actions in actions_to_add.items(): inputs = OrderedSet() outputs = OrderedSet() descriptions = [] commands = [] for action in actions: inputs.update(OrderedSet(action['inputs'])) outputs.update(OrderedSet(action['outputs'])) descriptions.append(action['description']) cmd = action['command'] # For most actions, add 'call' so that actions that invoke batch files # return and continue executing. msbuild_use_call provides a way to # disable this but I have not seen any adverse effect from doing that # for everything. if action.get('msbuild_use_call', True): cmd = 'call ' + cmd commands.append(cmd) # Add the custom build action for one input file. description = ', and also '.join(descriptions) # We can't join the commands simply with && because the command line will # get too long. See also _AddActions: cygwin's setup_env mustn't be called # for every invocation or the command that sets the PATH will grow too # long. command = '\r\n'.join([c + '\r\nif %errorlevel% neq 0 exit /b %errorlevel%' for c in commands]) _AddMSBuildAction(spec, primary_input, inputs, outputs, command, description, sources_handled_by_action, actions_spec) return actions_spec, sources_handled_by_action def _AddMSBuildAction(spec, primary_input, inputs, outputs, cmd, description, sources_handled_by_action, actions_spec): command = MSVSSettings.ConvertVCMacrosToMSBuild(cmd) primary_input = _FixPath(primary_input) inputs_array = _FixPaths(inputs) outputs_array = _FixPaths(outputs) additional_inputs = ';'.join([i for i in inputs_array if i != primary_input]) outputs = ';'.join(outputs_array) sources_handled_by_action.add(primary_input) action_spec = ['CustomBuild', {'Include': primary_input}] action_spec.extend( # TODO(jeanluc) 'Document' for all or just if as_sources? [['FileType', 'Document'], ['Command', command], ['Message', description], ['Outputs', outputs] ]) if additional_inputs: action_spec.append(['AdditionalInputs', additional_inputs]) actions_spec.append(action_spec) PK! __init__.pynu[PK!gninja.pynu[from __future__ import print_function # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import copy import hashlib import json import multiprocessing import os.path import re import signal import subprocess import sys import gyp import gyp.common from gyp.common import OrderedSet import gyp.msvs_emulation import gyp.MSVSUtil as MSVSUtil import gyp.xcode_emulation try: from cStringIO import StringIO except ImportError: from io import StringIO from gyp.common import GetEnvironFallback import gyp.ninja_syntax as ninja_syntax generator_default_variables = { 'EXECUTABLE_PREFIX': '', 'EXECUTABLE_SUFFIX': '', 'STATIC_LIB_PREFIX': 'lib', 'STATIC_LIB_SUFFIX': '.a', 'SHARED_LIB_PREFIX': 'lib', # Gyp expects the following variables to be expandable by the build # system to the appropriate locations. Ninja prefers paths to be # known at gyp time. To resolve this, introduce special # variables starting with $! and $| (which begin with a $ so gyp knows it # should be treated specially, but is otherwise an invalid # ninja/shell variable) that are passed to gyp here but expanded # before writing out into the target .ninja files; see # ExpandSpecial. # $! is used for variables that represent a path and that can only appear at # the start of a string, while $| is used for variables that can appear # anywhere in a string. 'INTERMEDIATE_DIR': '$!INTERMEDIATE_DIR', 'SHARED_INTERMEDIATE_DIR': '$!PRODUCT_DIR/gen', 'PRODUCT_DIR': '$!PRODUCT_DIR', 'CONFIGURATION_NAME': '$|CONFIGURATION_NAME', # Special variables that may be used by gyp 'rule' targets. # We generate definitions for these variables on the fly when processing a # rule. 'RULE_INPUT_ROOT': '${root}', 'RULE_INPUT_DIRNAME': '${dirname}', 'RULE_INPUT_PATH': '${source}', 'RULE_INPUT_EXT': '${ext}', 'RULE_INPUT_NAME': '${name}', } # Placates pylint. generator_additional_non_configuration_keys = [] generator_additional_path_sections = [] generator_extra_sources_for_rules = [] generator_filelist_paths = None generator_supports_multiple_toolsets = gyp.common.CrossCompileRequested() def StripPrefix(arg, prefix): if arg.startswith(prefix): return arg[len(prefix):] return arg def QuoteShellArgument(arg, flavor): """Quote a string such that it will be interpreted as a single argument by the shell.""" # Rather than attempting to enumerate the bad shell characters, just # whitelist common OK ones and quote anything else. if re.match(r'^[a-zA-Z0-9_=.\\/-]+$', arg): return arg # No quoting necessary. if flavor == 'win': return gyp.msvs_emulation.QuoteForRspFile(arg) return "'" + arg.replace("'", "'" + '"\'"' + "'") + "'" def Define(d, flavor): """Takes a preprocessor define and returns a -D parameter that's ninja- and shell-escaped.""" if flavor == 'win': # cl.exe replaces literal # characters with = in preprocesor definitions for # some reason. Octal-encode to work around that. d = d.replace('#', '\\%03o' % ord('#')) return QuoteShellArgument(ninja_syntax.escape('-D' + d), flavor) def AddArch(output, arch): """Adds an arch string to an output path.""" output, extension = os.path.splitext(output) return '%s.%s%s' % (output, arch, extension) class Target(object): """Target represents the paths used within a single gyp target. Conceptually, building a single target A is a series of steps: 1) actions/rules/copies generates source/resources/etc. 2) compiles generates .o files 3) link generates a binary (library/executable) 4) bundle merges the above in a mac bundle (Any of these steps can be optional.) From a build ordering perspective, a dependent target B could just depend on the last output of this series of steps. But some dependent commands sometimes need to reach inside the box. For example, when linking B it needs to get the path to the static library generated by A. This object stores those paths. To keep things simple, member variables only store concrete paths to single files, while methods compute derived values like "the last output of the target". """ def __init__(self, type): # Gyp type ("static_library", etc.) of this target. self.type = type # File representing whether any input dependencies necessary for # dependent actions have completed. self.preaction_stamp = None # File representing whether any input dependencies necessary for # dependent compiles have completed. self.precompile_stamp = None # File representing the completion of actions/rules/copies, if any. self.actions_stamp = None # Path to the output of the link step, if any. self.binary = None # Path to the file representing the completion of building the bundle, # if any. self.bundle = None # On Windows, incremental linking requires linking against all the .objs # that compose a .lib (rather than the .lib itself). That list is stored # here. In this case, we also need to save the compile_deps for the target, # so that the target that directly depends on the .objs can also depend # on those. self.component_objs = None self.compile_deps = None # Windows only. The import .lib is the output of a build step, but # because dependents only link against the lib (not both the lib and the # dll) we keep track of the import library here. self.import_lib = None def Linkable(self): """Return true if this is a target that can be linked against.""" return self.type in ('static_library', 'shared_library') def UsesToc(self, flavor): """Return true if the target should produce a restat rule based on a TOC file.""" # For bundles, the .TOC should be produced for the binary, not for # FinalOutput(). But the naive approach would put the TOC file into the # bundle, so don't do this for bundles for now. if flavor == 'win' or self.bundle: return False return self.type in ('shared_library', 'loadable_module') def PreActionInput(self, flavor): """Return the path, if any, that should be used as a dependency of any dependent action step.""" if self.UsesToc(flavor): return self.FinalOutput() + '.TOC' return self.FinalOutput() or self.preaction_stamp def PreCompileInput(self): """Return the path, if any, that should be used as a dependency of any dependent compile step.""" return self.actions_stamp or self.precompile_stamp def FinalOutput(self): """Return the last output of the target, which depends on all prior steps.""" return self.bundle or self.binary or self.actions_stamp # A small discourse on paths as used within the Ninja build: # All files we produce (both at gyp and at build time) appear in the # build directory (e.g. out/Debug). # # Paths within a given .gyp file are always relative to the directory # containing the .gyp file. Call these "gyp paths". This includes # sources as well as the starting directory a given gyp rule/action # expects to be run from. We call the path from the source root to # the gyp file the "base directory" within the per-.gyp-file # NinjaWriter code. # # All paths as written into the .ninja files are relative to the build # directory. Call these paths "ninja paths". # # We translate between these two notions of paths with two helper # functions: # # - GypPathToNinja translates a gyp path (i.e. relative to the .gyp file) # into the equivalent ninja path. # # - GypPathToUniqueOutput translates a gyp path into a ninja path to write # an output file; the result can be namespaced such that it is unique # to the input file name as well as the output target name. class NinjaWriter(object): def __init__(self, hash_for_rules, target_outputs, base_dir, build_dir, output_file, toplevel_build, output_file_name, flavor, toplevel_dir=None): """ base_dir: path from source root to directory containing this gyp file, by gyp semantics, all input paths are relative to this build_dir: path from source root to build output toplevel_dir: path to the toplevel directory """ self.hash_for_rules = hash_for_rules self.target_outputs = target_outputs self.base_dir = base_dir self.build_dir = build_dir self.ninja = ninja_syntax.Writer(output_file) self.toplevel_build = toplevel_build self.output_file_name = output_file_name self.flavor = flavor self.abs_build_dir = None if toplevel_dir is not None: self.abs_build_dir = os.path.abspath(os.path.join(toplevel_dir, build_dir)) self.obj_ext = '.obj' if flavor == 'win' else '.o' if flavor == 'win': # See docstring of msvs_emulation.GenerateEnvironmentFiles(). self.win_env = {} for arch in ('x86', 'x64'): self.win_env[arch] = 'environment.' + arch # Relative path from build output dir to base dir. build_to_top = gyp.common.InvertRelativePath(build_dir, toplevel_dir) self.build_to_base = os.path.join(build_to_top, base_dir) # Relative path from base dir to build dir. base_to_top = gyp.common.InvertRelativePath(base_dir, toplevel_dir) self.base_to_build = os.path.join(base_to_top, build_dir) def ExpandSpecial(self, path, product_dir=None): """Expand specials like $!PRODUCT_DIR in |path|. If |product_dir| is None, assumes the cwd is already the product dir. Otherwise, |product_dir| is the relative path to the product dir. """ PRODUCT_DIR = '$!PRODUCT_DIR' if PRODUCT_DIR in path: if product_dir: path = path.replace(PRODUCT_DIR, product_dir) else: path = path.replace(PRODUCT_DIR + '/', '') path = path.replace(PRODUCT_DIR + '\\', '') path = path.replace(PRODUCT_DIR, '.') INTERMEDIATE_DIR = '$!INTERMEDIATE_DIR' if INTERMEDIATE_DIR in path: int_dir = self.GypPathToUniqueOutput('gen') # GypPathToUniqueOutput generates a path relative to the product dir, # so insert product_dir in front if it is provided. path = path.replace(INTERMEDIATE_DIR, os.path.join(product_dir or '', int_dir)) CONFIGURATION_NAME = '$|CONFIGURATION_NAME' path = path.replace(CONFIGURATION_NAME, self.config_name) return path def ExpandRuleVariables(self, path, root, dirname, source, ext, name): if self.flavor == 'win': path = self.msvs_settings.ConvertVSMacros( path, config=self.config_name) path = path.replace(generator_default_variables['RULE_INPUT_ROOT'], root) path = path.replace(generator_default_variables['RULE_INPUT_DIRNAME'], dirname) path = path.replace(generator_default_variables['RULE_INPUT_PATH'], source) path = path.replace(generator_default_variables['RULE_INPUT_EXT'], ext) path = path.replace(generator_default_variables['RULE_INPUT_NAME'], name) return path def GypPathToNinja(self, path, env=None): """Translate a gyp path to a ninja path, optionally expanding environment variable references in |path| with |env|. See the above discourse on path conversions.""" if env: if self.flavor == 'mac': path = gyp.xcode_emulation.ExpandEnvVars(path, env) elif self.flavor == 'win': path = gyp.msvs_emulation.ExpandMacros(path, env) if path.startswith('$!'): expanded = self.ExpandSpecial(path) if self.flavor == 'win': expanded = os.path.normpath(expanded) return expanded if '$|' in path: path = self.ExpandSpecial(path) assert '$' not in path, path return os.path.normpath(os.path.join(self.build_to_base, path)) def GypPathToUniqueOutput(self, path, qualified=True): """Translate a gyp path to a ninja path for writing output. If qualified is True, qualify the resulting filename with the name of the target. This is necessary when e.g. compiling the same path twice for two separate output targets. See the above discourse on path conversions.""" path = self.ExpandSpecial(path) assert not path.startswith('$'), path # Translate the path following this scheme: # Input: foo/bar.gyp, target targ, references baz/out.o # Output: obj/foo/baz/targ.out.o (if qualified) # obj/foo/baz/out.o (otherwise) # (and obj.host instead of obj for cross-compiles) # # Why this scheme and not some other one? # 1) for a given input, you can compute all derived outputs by matching # its path, even if the input is brought via a gyp file with '..'. # 2) simple files like libraries and stamps have a simple filename. obj = 'obj' if self.toolset != 'target': obj += '.' + self.toolset path_dir, path_basename = os.path.split(path) assert not os.path.isabs(path_dir), ( "'%s' can not be absolute path (see crbug.com/462153)." % path_dir) if qualified: path_basename = self.name + '.' + path_basename return os.path.normpath(os.path.join(obj, self.base_dir, path_dir, path_basename)) def WriteCollapsedDependencies(self, name, targets, order_only=None): """Given a list of targets, return a path for a single file representing the result of building all the targets or None. Uses a stamp file if necessary.""" assert targets == filter(None, targets), targets if len(targets) == 0: assert not order_only return None if len(targets) > 1 or order_only: stamp = self.GypPathToUniqueOutput(name + '.stamp') targets = self.ninja.build(stamp, 'stamp', targets, order_only=order_only) self.ninja.newline() return targets[0] def _SubninjaNameForArch(self, arch): output_file_base = os.path.splitext(self.output_file_name)[0] return '%s.%s.ninja' % (output_file_base, arch) def WriteSpec(self, spec, config_name, generator_flags): """The main entry point for NinjaWriter: write the build rules for a spec. Returns a Target object, which represents the output paths for this spec. Returns None if there are no outputs (e.g. a settings-only 'none' type target).""" self.config_name = config_name self.name = spec['target_name'] self.toolset = spec['toolset'] config = spec['configurations'][config_name] self.target = Target(spec['type']) self.is_standalone_static_library = bool( spec.get('standalone_static_library', 0)) # Track if this target contains any C++ files, to decide if gcc or g++ # should be used for linking. self.uses_cpp = False self.is_mac_bundle = gyp.xcode_emulation.IsMacBundle(self.flavor, spec) self.xcode_settings = self.msvs_settings = None if self.flavor == 'mac': self.xcode_settings = gyp.xcode_emulation.XcodeSettings(spec) if self.flavor == 'win': self.msvs_settings = gyp.msvs_emulation.MsvsSettings(spec, generator_flags) arch = self.msvs_settings.GetArch(config_name) self.ninja.variable('arch', self.win_env[arch]) self.ninja.variable('cc', '$cl_' + arch) self.ninja.variable('cxx', '$cl_' + arch) self.ninja.variable('cc_host', '$cl_' + arch) self.ninja.variable('cxx_host', '$cl_' + arch) self.ninja.variable('asm', '$ml_' + arch) if self.flavor == 'mac': self.archs = self.xcode_settings.GetActiveArchs(config_name) if len(self.archs) > 1: self.arch_subninjas = dict( (arch, ninja_syntax.Writer( OpenOutput(os.path.join(self.toplevel_build, self._SubninjaNameForArch(arch)), 'w'))) for arch in self.archs) # Compute predepends for all rules. # actions_depends is the dependencies this target depends on before running # any of its action/rule/copy steps. # compile_depends is the dependencies this target depends on before running # any of its compile steps. actions_depends = [] compile_depends = [] # TODO(evan): it is rather confusing which things are lists and which # are strings. Fix these. if 'dependencies' in spec: for dep in spec['dependencies']: if dep in self.target_outputs: target = self.target_outputs[dep] actions_depends.append(target.PreActionInput(self.flavor)) compile_depends.append(target.PreCompileInput()) actions_depends = filter(None, actions_depends) compile_depends = filter(None, compile_depends) actions_depends = self.WriteCollapsedDependencies('actions_depends', actions_depends) compile_depends = self.WriteCollapsedDependencies('compile_depends', compile_depends) self.target.preaction_stamp = actions_depends self.target.precompile_stamp = compile_depends # Write out actions, rules, and copies. These must happen before we # compile any sources, so compute a list of predependencies for sources # while we do it. extra_sources = [] mac_bundle_depends = [] self.target.actions_stamp = self.WriteActionsRulesCopies( spec, extra_sources, actions_depends, mac_bundle_depends) # If we have actions/rules/copies, we depend directly on those, but # otherwise we depend on dependent target's actions/rules/copies etc. # We never need to explicitly depend on previous target's link steps, # because no compile ever depends on them. compile_depends_stamp = (self.target.actions_stamp or compile_depends) # Write out the compilation steps, if any. link_deps = [] sources = extra_sources + spec.get('sources', []) if sources: if self.flavor == 'mac' and len(self.archs) > 1: # Write subninja file containing compile and link commands scoped to # a single arch if a fat binary is being built. for arch in self.archs: self.ninja.subninja(self._SubninjaNameForArch(arch)) pch = None if self.flavor == 'win': gyp.msvs_emulation.VerifyMissingSources( sources, self.abs_build_dir, generator_flags, self.GypPathToNinja) pch = gyp.msvs_emulation.PrecompiledHeader( self.msvs_settings, config_name, self.GypPathToNinja, self.GypPathToUniqueOutput, self.obj_ext) else: pch = gyp.xcode_emulation.MacPrefixHeader( self.xcode_settings, self.GypPathToNinja, lambda path, lang: self.GypPathToUniqueOutput(path + '-' + lang)) link_deps = self.WriteSources( self.ninja, config_name, config, sources, compile_depends_stamp, pch, spec) # Some actions/rules output 'sources' that are already object files. obj_outputs = [f for f in sources if f.endswith(self.obj_ext)] if obj_outputs: if self.flavor != 'mac' or len(self.archs) == 1: link_deps += [self.GypPathToNinja(o) for o in obj_outputs] else: print("Warning: Actions/rules writing object files don't work with " \ "multiarch targets, dropping. (target %s)" % spec['target_name']) elif self.flavor == 'mac' and len(self.archs) > 1: link_deps = collections.defaultdict(list) compile_deps = self.target.actions_stamp or actions_depends if self.flavor == 'win' and self.target.type == 'static_library': self.target.component_objs = link_deps self.target.compile_deps = compile_deps # Write out a link step, if needed. output = None is_empty_bundle = not link_deps and not mac_bundle_depends if link_deps or self.target.actions_stamp or actions_depends: output = self.WriteTarget(spec, config_name, config, link_deps, compile_deps) if self.is_mac_bundle: mac_bundle_depends.append(output) # Bundle all of the above together, if needed. if self.is_mac_bundle: output = self.WriteMacBundle(spec, mac_bundle_depends, is_empty_bundle) if not output: return None assert self.target.FinalOutput(), output return self.target def _WinIdlRule(self, source, prebuild, outputs): """Handle the implicit VS .idl rule for one source file. Fills |outputs| with files that are generated.""" outdir, output, vars, flags = self.msvs_settings.GetIdlBuildData( source, self.config_name) outdir = self.GypPathToNinja(outdir) def fix_path(path, rel=None): path = os.path.join(outdir, path) dirname, basename = os.path.split(source) root, ext = os.path.splitext(basename) path = self.ExpandRuleVariables( path, root, dirname, source, ext, basename) if rel: path = os.path.relpath(path, rel) return path vars = [(name, fix_path(value, outdir)) for name, value in vars] output = [fix_path(p) for p in output] vars.append(('outdir', outdir)) vars.append(('idlflags', flags)) input = self.GypPathToNinja(source) self.ninja.build(output, 'idl', input, variables=vars, order_only=prebuild) outputs.extend(output) def WriteWinIdlFiles(self, spec, prebuild): """Writes rules to match MSVS's implicit idl handling.""" assert self.flavor == 'win' if self.msvs_settings.HasExplicitIdlRulesOrActions(spec): return [] outputs = [] for source in filter(lambda x: x.endswith('.idl'), spec['sources']): self._WinIdlRule(source, prebuild, outputs) return outputs def WriteActionsRulesCopies(self, spec, extra_sources, prebuild, mac_bundle_depends): """Write out the Actions, Rules, and Copies steps. Return a path representing the outputs of these steps.""" outputs = [] if self.is_mac_bundle: mac_bundle_resources = spec.get('mac_bundle_resources', [])[:] else: mac_bundle_resources = [] extra_mac_bundle_resources = [] if 'actions' in spec: outputs += self.WriteActions(spec['actions'], extra_sources, prebuild, extra_mac_bundle_resources) if 'rules' in spec: outputs += self.WriteRules(spec['rules'], extra_sources, prebuild, mac_bundle_resources, extra_mac_bundle_resources) if 'copies' in spec: outputs += self.WriteCopies(spec['copies'], prebuild, mac_bundle_depends) if 'sources' in spec and self.flavor == 'win': outputs += self.WriteWinIdlFiles(spec, prebuild) stamp = self.WriteCollapsedDependencies('actions_rules_copies', outputs) if self.is_mac_bundle: xcassets = self.WriteMacBundleResources( extra_mac_bundle_resources + mac_bundle_resources, mac_bundle_depends) partial_info_plist = self.WriteMacXCassets(xcassets, mac_bundle_depends) self.WriteMacInfoPlist(partial_info_plist, mac_bundle_depends) return stamp def GenerateDescription(self, verb, message, fallback): """Generate and return a description of a build step. |verb| is the short summary, e.g. ACTION or RULE. |message| is a hand-written description, or None if not available. |fallback| is the gyp-level name of the step, usable as a fallback. """ if self.toolset != 'target': verb += '(%s)' % self.toolset if message: return '%s %s' % (verb, self.ExpandSpecial(message)) else: return '%s %s: %s' % (verb, self.name, fallback) def WriteActions(self, actions, extra_sources, prebuild, extra_mac_bundle_resources): # Actions cd into the base directory. env = self.GetToolchainEnv() all_outputs = [] for action in actions: # First write out a rule for the action. name = '%s_%s' % (action['action_name'], self.hash_for_rules) description = self.GenerateDescription('ACTION', action.get('message', None), name) is_cygwin = (self.msvs_settings.IsRuleRunUnderCygwin(action) if self.flavor == 'win' else False) args = action['action'] depfile = action.get('depfile', None) if depfile: depfile = self.ExpandSpecial(depfile, self.base_to_build) pool = 'console' if int(action.get('ninja_use_console', 0)) else None rule_name, _ = self.WriteNewNinjaRule(name, args, description, is_cygwin, env, pool, depfile=depfile) inputs = [self.GypPathToNinja(i, env) for i in action['inputs']] if int(action.get('process_outputs_as_sources', False)): extra_sources += action['outputs'] if int(action.get('process_outputs_as_mac_bundle_resources', False)): extra_mac_bundle_resources += action['outputs'] outputs = [self.GypPathToNinja(o, env) for o in action['outputs']] # Then write out an edge using the rule. self.ninja.build(outputs, rule_name, inputs, order_only=prebuild) all_outputs += outputs self.ninja.newline() return all_outputs def WriteRules(self, rules, extra_sources, prebuild, mac_bundle_resources, extra_mac_bundle_resources): env = self.GetToolchainEnv() all_outputs = [] for rule in rules: # Skip a rule with no action and no inputs. if 'action' not in rule and not rule.get('rule_sources', []): continue # First write out a rule for the rule action. name = '%s_%s' % (rule['rule_name'], self.hash_for_rules) args = rule['action'] description = self.GenerateDescription( 'RULE', rule.get('message', None), ('%s ' + generator_default_variables['RULE_INPUT_PATH']) % name) is_cygwin = (self.msvs_settings.IsRuleRunUnderCygwin(rule) if self.flavor == 'win' else False) pool = 'console' if int(rule.get('ninja_use_console', 0)) else None rule_name, args = self.WriteNewNinjaRule( name, args, description, is_cygwin, env, pool) # TODO: if the command references the outputs directly, we should # simplify it to just use $out. # Rules can potentially make use of some special variables which # must vary per source file. # Compute the list of variables we'll need to provide. special_locals = ('source', 'root', 'dirname', 'ext', 'name') needed_variables = set(['source']) for argument in args: for var in special_locals: if '${%s}' % var in argument: needed_variables.add(var) def cygwin_munge(path): # pylint: disable=cell-var-from-loop if is_cygwin: return path.replace('\\', '/') return path inputs = [self.GypPathToNinja(i, env) for i in rule.get('inputs', [])] # If there are n source files matching the rule, and m additional rule # inputs, then adding 'inputs' to each build edge written below will # write m * n inputs. Collapsing reduces this to m + n. sources = rule.get('rule_sources', []) num_inputs = len(inputs) if prebuild: num_inputs += 1 if num_inputs > 2 and len(sources) > 2: inputs = [self.WriteCollapsedDependencies( rule['rule_name'], inputs, order_only=prebuild)] prebuild = [] # For each source file, write an edge that generates all the outputs. for source in sources: source = os.path.normpath(source) dirname, basename = os.path.split(source) root, ext = os.path.splitext(basename) # Gather the list of inputs and outputs, expanding $vars if possible. outputs = [self.ExpandRuleVariables(o, root, dirname, source, ext, basename) for o in rule['outputs']] if int(rule.get('process_outputs_as_sources', False)): extra_sources += outputs was_mac_bundle_resource = source in mac_bundle_resources if was_mac_bundle_resource or \ int(rule.get('process_outputs_as_mac_bundle_resources', False)): extra_mac_bundle_resources += outputs # Note: This is n_resources * n_outputs_in_rule. Put to-be-removed # items in a set and remove them all in a single pass if this becomes # a performance issue. if was_mac_bundle_resource: mac_bundle_resources.remove(source) extra_bindings = [] for var in needed_variables: if var == 'root': extra_bindings.append(('root', cygwin_munge(root))) elif var == 'dirname': # '$dirname' is a parameter to the rule action, which means # it shouldn't be converted to a Ninja path. But we don't # want $!PRODUCT_DIR in there either. dirname_expanded = self.ExpandSpecial(dirname, self.base_to_build) extra_bindings.append(('dirname', cygwin_munge(dirname_expanded))) elif var == 'source': # '$source' is a parameter to the rule action, which means # it shouldn't be converted to a Ninja path. But we don't # want $!PRODUCT_DIR in there either. source_expanded = self.ExpandSpecial(source, self.base_to_build) extra_bindings.append(('source', cygwin_munge(source_expanded))) elif var == 'ext': extra_bindings.append(('ext', ext)) elif var == 'name': extra_bindings.append(('name', cygwin_munge(basename))) else: assert var is None, repr(var) outputs = [self.GypPathToNinja(o, env) for o in outputs] if self.flavor == 'win': # WriteNewNinjaRule uses unique_name for creating an rsp file on win. extra_bindings.append(('unique_name', hashlib.md5(outputs[0]).hexdigest())) self.ninja.build(outputs, rule_name, self.GypPathToNinja(source), implicit=inputs, order_only=prebuild, variables=extra_bindings) all_outputs.extend(outputs) return all_outputs def WriteCopies(self, copies, prebuild, mac_bundle_depends): outputs = [] env = self.GetToolchainEnv() for copy in copies: for path in copy['files']: # Normalize the path so trailing slashes don't confuse us. path = os.path.normpath(path) basename = os.path.split(path)[1] src = self.GypPathToNinja(path, env) dst = self.GypPathToNinja(os.path.join(copy['destination'], basename), env) outputs += self.ninja.build(dst, 'copy', src, order_only=prebuild) if self.is_mac_bundle: # gyp has mac_bundle_resources to copy things into a bundle's # Resources folder, but there's no built-in way to copy files to other # places in the bundle. Hence, some targets use copies for this. Check # if this file is copied into the current bundle, and if so add it to # the bundle depends so that dependent targets get rebuilt if the copy # input changes. if dst.startswith(self.xcode_settings.GetBundleContentsFolderPath()): mac_bundle_depends.append(dst) return outputs def WriteMacBundleResources(self, resources, bundle_depends): """Writes ninja edges for 'mac_bundle_resources'.""" xcassets = [] for output, res in gyp.xcode_emulation.GetMacBundleResources( generator_default_variables['PRODUCT_DIR'], self.xcode_settings, map(self.GypPathToNinja, resources)): output = self.ExpandSpecial(output) if os.path.splitext(output)[-1] != '.xcassets': isBinary = self.xcode_settings.IsBinaryOutputFormat(self.config_name) self.ninja.build(output, 'mac_tool', res, variables=[('mactool_cmd', 'copy-bundle-resource'), \ ('binary', isBinary)]) bundle_depends.append(output) else: xcassets.append(res) return xcassets def WriteMacXCassets(self, xcassets, bundle_depends): """Writes ninja edges for 'mac_bundle_resources' .xcassets files. This add an invocation of 'actool' via the 'mac_tool.py' helper script. It assumes that the assets catalogs define at least one imageset and thus an Assets.car file will be generated in the application resources directory. If this is not the case, then the build will probably be done at each invocation of ninja.""" if not xcassets: return extra_arguments = {} settings_to_arg = { 'XCASSETS_APP_ICON': 'app-icon', 'XCASSETS_LAUNCH_IMAGE': 'launch-image', } settings = self.xcode_settings.xcode_settings[self.config_name] for settings_key, arg_name in settings_to_arg.items(): value = settings.get(settings_key) if value: extra_arguments[arg_name] = value partial_info_plist = None if extra_arguments: partial_info_plist = self.GypPathToUniqueOutput( 'assetcatalog_generated_info.plist') extra_arguments['output-partial-info-plist'] = partial_info_plist outputs = [] outputs.append( os.path.join( self.xcode_settings.GetBundleResourceFolder(), 'Assets.car')) if partial_info_plist: outputs.append(partial_info_plist) keys = QuoteShellArgument(json.dumps(extra_arguments), self.flavor) extra_env = self.xcode_settings.GetPerTargetSettings() env = self.GetSortedXcodeEnv(additional_settings=extra_env) env = self.ComputeExportEnvString(env) bundle_depends.extend(self.ninja.build( outputs, 'compile_xcassets', xcassets, variables=[('env', env), ('keys', keys)])) return partial_info_plist def WriteMacInfoPlist(self, partial_info_plist, bundle_depends): """Write build rules for bundle Info.plist files.""" info_plist, out, defines, extra_env = gyp.xcode_emulation.GetMacInfoPlist( generator_default_variables['PRODUCT_DIR'], self.xcode_settings, self.GypPathToNinja) if not info_plist: return out = self.ExpandSpecial(out) if defines: # Create an intermediate file to store preprocessed results. intermediate_plist = self.GypPathToUniqueOutput( os.path.basename(info_plist)) defines = ' '.join([Define(d, self.flavor) for d in defines]) info_plist = self.ninja.build( intermediate_plist, 'preprocess_infoplist', info_plist, variables=[('defines',defines)]) env = self.GetSortedXcodeEnv(additional_settings=extra_env) env = self.ComputeExportEnvString(env) if partial_info_plist: intermediate_plist = self.GypPathToUniqueOutput('merged_info.plist') info_plist = self.ninja.build( intermediate_plist, 'merge_infoplist', [partial_info_plist, info_plist]) keys = self.xcode_settings.GetExtraPlistItems(self.config_name) keys = QuoteShellArgument(json.dumps(keys), self.flavor) isBinary = self.xcode_settings.IsBinaryOutputFormat(self.config_name) self.ninja.build(out, 'copy_infoplist', info_plist, variables=[('env', env), ('keys', keys), ('binary', isBinary)]) bundle_depends.append(out) def WriteSources(self, ninja_file, config_name, config, sources, predepends, precompiled_header, spec): """Write build rules to compile all of |sources|.""" if self.toolset == 'host': self.ninja.variable('ar', '$ar_host') self.ninja.variable('cc', '$cc_host') self.ninja.variable('cxx', '$cxx_host') self.ninja.variable('ld', '$ld_host') self.ninja.variable('ldxx', '$ldxx_host') self.ninja.variable('nm', '$nm_host') self.ninja.variable('readelf', '$readelf_host') if self.flavor != 'mac' or len(self.archs) == 1: return self.WriteSourcesForArch( self.ninja, config_name, config, sources, predepends, precompiled_header, spec) else: return dict((arch, self.WriteSourcesForArch( self.arch_subninjas[arch], config_name, config, sources, predepends, precompiled_header, spec, arch=arch)) for arch in self.archs) def WriteSourcesForArch(self, ninja_file, config_name, config, sources, predepends, precompiled_header, spec, arch=None): """Write build rules to compile all of |sources|.""" extra_defines = [] if self.flavor == 'mac': cflags = self.xcode_settings.GetCflags(config_name, arch=arch) cflags_c = self.xcode_settings.GetCflagsC(config_name) cflags_cc = self.xcode_settings.GetCflagsCC(config_name) cflags_objc = ['$cflags_c'] + \ self.xcode_settings.GetCflagsObjC(config_name) cflags_objcc = ['$cflags_cc'] + \ self.xcode_settings.GetCflagsObjCC(config_name) elif self.flavor == 'win': asmflags = self.msvs_settings.GetAsmflags(config_name) cflags = self.msvs_settings.GetCflags(config_name) cflags_c = self.msvs_settings.GetCflagsC(config_name) cflags_cc = self.msvs_settings.GetCflagsCC(config_name) extra_defines = self.msvs_settings.GetComputedDefines(config_name) # See comment at cc_command for why there's two .pdb files. pdbpath_c = pdbpath_cc = self.msvs_settings.GetCompilerPdbName( config_name, self.ExpandSpecial) if not pdbpath_c: obj = 'obj' if self.toolset != 'target': obj += '.' + self.toolset pdbpath = os.path.normpath(os.path.join(obj, self.base_dir, self.name)) pdbpath_c = pdbpath + '.c.pdb' pdbpath_cc = pdbpath + '.cc.pdb' self.WriteVariableList(ninja_file, 'pdbname_c', [pdbpath_c]) self.WriteVariableList(ninja_file, 'pdbname_cc', [pdbpath_cc]) self.WriteVariableList(ninja_file, 'pchprefix', [self.name]) else: cflags = config.get('cflags', []) cflags_c = config.get('cflags_c', []) cflags_cc = config.get('cflags_cc', []) # Respect environment variables related to build, but target-specific # flags can still override them. if self.toolset == 'target': cflags_c = (os.environ.get('CPPFLAGS', '').split() + os.environ.get('CFLAGS', '').split() + cflags_c) cflags_cc = (os.environ.get('CPPFLAGS', '').split() + os.environ.get('CXXFLAGS', '').split() + cflags_cc) elif self.toolset == 'host': cflags_c = (os.environ.get('CPPFLAGS_host', '').split() + os.environ.get('CFLAGS_host', '').split() + cflags_c) cflags_cc = (os.environ.get('CPPFLAGS_host', '').split() + os.environ.get('CXXFLAGS_host', '').split() + cflags_cc) defines = config.get('defines', []) + extra_defines self.WriteVariableList(ninja_file, 'defines', [Define(d, self.flavor) for d in defines]) if self.flavor == 'win': self.WriteVariableList(ninja_file, 'asmflags', map(self.ExpandSpecial, asmflags)) self.WriteVariableList(ninja_file, 'rcflags', [QuoteShellArgument(self.ExpandSpecial(f), self.flavor) for f in self.msvs_settings.GetRcflags(config_name, self.GypPathToNinja)]) include_dirs = config.get('include_dirs', []) env = self.GetToolchainEnv() if self.flavor == 'win': include_dirs = self.msvs_settings.AdjustIncludeDirs(include_dirs, config_name) self.WriteVariableList(ninja_file, 'includes', [QuoteShellArgument('-I' + self.GypPathToNinja(i, env), self.flavor) for i in include_dirs]) if self.flavor == 'win': midl_include_dirs = config.get('midl_include_dirs', []) midl_include_dirs = self.msvs_settings.AdjustMidlIncludeDirs( midl_include_dirs, config_name) self.WriteVariableList(ninja_file, 'midl_includes', [QuoteShellArgument('-I' + self.GypPathToNinja(i, env), self.flavor) for i in midl_include_dirs]) pch_commands = precompiled_header.GetPchBuildCommands(arch) if self.flavor == 'mac': # Most targets use no precompiled headers, so only write these if needed. for ext, var in [('c', 'cflags_pch_c'), ('cc', 'cflags_pch_cc'), ('m', 'cflags_pch_objc'), ('mm', 'cflags_pch_objcc')]: include = precompiled_header.GetInclude(ext, arch) if include: ninja_file.variable(var, include) arflags = config.get('arflags', []) self.WriteVariableList(ninja_file, 'cflags', map(self.ExpandSpecial, cflags)) self.WriteVariableList(ninja_file, 'cflags_c', map(self.ExpandSpecial, cflags_c)) self.WriteVariableList(ninja_file, 'cflags_cc', map(self.ExpandSpecial, cflags_cc)) if self.flavor == 'mac': self.WriteVariableList(ninja_file, 'cflags_objc', map(self.ExpandSpecial, cflags_objc)) self.WriteVariableList(ninja_file, 'cflags_objcc', map(self.ExpandSpecial, cflags_objcc)) self.WriteVariableList(ninja_file, 'arflags', map(self.ExpandSpecial, arflags)) ninja_file.newline() outputs = [] has_rc_source = False for source in sources: filename, ext = os.path.splitext(source) ext = ext[1:] obj_ext = self.obj_ext if ext in ('cc', 'cpp', 'cxx'): command = 'cxx' self.uses_cpp = True elif ext == 'c' or (ext == 'S' and self.flavor != 'win'): command = 'cc' elif ext == 's' and self.flavor != 'win': # Doesn't generate .o.d files. command = 'cc_s' elif (self.flavor == 'win' and ext == 'asm' and not self.msvs_settings.HasExplicitAsmRules(spec)): command = 'asm' # Add the _asm suffix as msvs is capable of handling .cc and # .asm files of the same name without collision. obj_ext = '_asm.obj' elif self.flavor == 'mac' and ext == 'm': command = 'objc' elif self.flavor == 'mac' and ext == 'mm': command = 'objcxx' self.uses_cpp = True elif self.flavor == 'win' and ext == 'rc': command = 'rc' obj_ext = '.res' has_rc_source = True else: # Ignore unhandled extensions. continue input = self.GypPathToNinja(source) output = self.GypPathToUniqueOutput(filename + obj_ext) if arch is not None: output = AddArch(output, arch) implicit = precompiled_header.GetObjDependencies([input], [output], arch) variables = [] if self.flavor == 'win': variables, output, implicit = precompiled_header.GetFlagsModifications( input, output, implicit, command, cflags_c, cflags_cc, self.ExpandSpecial) ninja_file.build(output, command, input, implicit=[gch for _, _, gch in implicit], order_only=predepends, variables=variables) outputs.append(output) if has_rc_source: resource_include_dirs = config.get('resource_include_dirs', include_dirs) self.WriteVariableList(ninja_file, 'resource_includes', [QuoteShellArgument('-I' + self.GypPathToNinja(i, env), self.flavor) for i in resource_include_dirs]) self.WritePchTargets(ninja_file, pch_commands) ninja_file.newline() return outputs def WritePchTargets(self, ninja_file, pch_commands): """Writes ninja rules to compile prefix headers.""" if not pch_commands: return for gch, lang_flag, lang, input in pch_commands: var_name = { 'c': 'cflags_pch_c', 'cc': 'cflags_pch_cc', 'm': 'cflags_pch_objc', 'mm': 'cflags_pch_objcc', }[lang] map = { 'c': 'cc', 'cc': 'cxx', 'm': 'objc', 'mm': 'objcxx', } cmd = map.get(lang) ninja_file.build(gch, cmd, input, variables=[(var_name, lang_flag)]) def WriteLink(self, spec, config_name, config, link_deps): """Write out a link step. Fills out target.binary. """ if self.flavor != 'mac' or len(self.archs) == 1: return self.WriteLinkForArch( self.ninja, spec, config_name, config, link_deps) else: output = self.ComputeOutput(spec) inputs = [self.WriteLinkForArch(self.arch_subninjas[arch], spec, config_name, config, link_deps[arch], arch=arch) for arch in self.archs] extra_bindings = [] build_output = output if not self.is_mac_bundle: self.AppendPostbuildVariable(extra_bindings, spec, output, output) # TODO(yyanagisawa): more work needed to fix: # https://code.google.com/p/gyp/issues/detail?id=411 if (spec['type'] in ('shared_library', 'loadable_module') and not self.is_mac_bundle): extra_bindings.append(('lib', output)) self.ninja.build([output, output + '.TOC'], 'solipo', inputs, variables=extra_bindings) else: self.ninja.build(build_output, 'lipo', inputs, variables=extra_bindings) return output def WriteLinkForArch(self, ninja_file, spec, config_name, config, link_deps, arch=None): """Write out a link step. Fills out target.binary. """ command = { 'executable': 'link', 'loadable_module': 'solink_module', 'shared_library': 'solink', }[spec['type']] command_suffix = '' implicit_deps = set() solibs = set() order_deps = set() if 'dependencies' in spec: # Two kinds of dependencies: # - Linkable dependencies (like a .a or a .so): add them to the link line. # - Non-linkable dependencies (like a rule that generates a file # and writes a stamp file): add them to implicit_deps extra_link_deps = set() for dep in spec['dependencies']: target = self.target_outputs.get(dep) if not target: continue linkable = target.Linkable() if linkable: new_deps = [] if (self.flavor == 'win' and target.component_objs and self.msvs_settings.IsUseLibraryDependencyInputs(config_name)): new_deps = target.component_objs if target.compile_deps: order_deps.add(target.compile_deps) elif self.flavor == 'win' and target.import_lib: new_deps = [target.import_lib] elif target.UsesToc(self.flavor): solibs.add(target.binary) implicit_deps.add(target.binary + '.TOC') else: new_deps = [target.binary] for new_dep in new_deps: if new_dep not in extra_link_deps: extra_link_deps.add(new_dep) link_deps.append(new_dep) final_output = target.FinalOutput() if not linkable or final_output != target.binary: implicit_deps.add(final_output) extra_bindings = [] if self.uses_cpp and self.flavor != 'win': extra_bindings.append(('ld', '$ldxx')) output = self.ComputeOutput(spec, arch) if arch is None and not self.is_mac_bundle: self.AppendPostbuildVariable(extra_bindings, spec, output, output) is_executable = spec['type'] == 'executable' # The ldflags config key is not used on mac or win. On those platforms # linker flags are set via xcode_settings and msvs_settings, respectively. env_ldflags = os.environ.get('LDFLAGS', '').split() if self.flavor == 'mac': ldflags = self.xcode_settings.GetLdflags(config_name, self.ExpandSpecial(generator_default_variables['PRODUCT_DIR']), self.GypPathToNinja, arch) ldflags = env_ldflags + ldflags elif self.flavor == 'win': manifest_base_name = self.GypPathToUniqueOutput( self.ComputeOutputFileName(spec)) ldflags, intermediate_manifest, manifest_files = \ self.msvs_settings.GetLdflags(config_name, self.GypPathToNinja, self.ExpandSpecial, manifest_base_name, output, is_executable, self.toplevel_build) ldflags = env_ldflags + ldflags self.WriteVariableList(ninja_file, 'manifests', manifest_files) implicit_deps = implicit_deps.union(manifest_files) if intermediate_manifest: self.WriteVariableList( ninja_file, 'intermediatemanifest', [intermediate_manifest]) command_suffix = _GetWinLinkRuleNameSuffix( self.msvs_settings.IsEmbedManifest(config_name)) def_file = self.msvs_settings.GetDefFile(self.GypPathToNinja) if def_file: implicit_deps.add(def_file) else: # Respect environment variables related to build, but target-specific # flags can still override them. ldflags = env_ldflags + config.get('ldflags', []) if is_executable and len(solibs): rpath = 'lib/' if self.toolset != 'target': rpath += self.toolset ldflags.append(r'-Wl,-rpath=\$$ORIGIN/%s' % rpath) ldflags.append('-Wl,-rpath-link=%s' % rpath) self.WriteVariableList(ninja_file, 'ldflags', map(self.ExpandSpecial, ldflags)) library_dirs = config.get('library_dirs', []) if self.flavor == 'win': library_dirs = [self.msvs_settings.ConvertVSMacros(l, config_name) for l in library_dirs] library_dirs = ['/LIBPATH:' + QuoteShellArgument(self.GypPathToNinja(l), self.flavor) for l in library_dirs] else: library_dirs = [QuoteShellArgument('-L' + self.GypPathToNinja(l), self.flavor) for l in library_dirs] libraries = gyp.common.uniquer(map(self.ExpandSpecial, spec.get('libraries', []))) if self.flavor == 'mac': libraries = self.xcode_settings.AdjustLibraries(libraries, config_name) elif self.flavor == 'win': libraries = self.msvs_settings.AdjustLibraries(libraries) self.WriteVariableList(ninja_file, 'libs', library_dirs + libraries) linked_binary = output if command in ('solink', 'solink_module'): extra_bindings.append(('soname', os.path.split(output)[1])) extra_bindings.append(('lib', gyp.common.EncodePOSIXShellArgument(output))) if self.flavor != 'win': link_file_list = output if self.is_mac_bundle: # 'Dependency Framework.framework/Versions/A/Dependency Framework' -> # 'Dependency Framework.framework.rsp' link_file_list = self.xcode_settings.GetWrapperName() if arch: link_file_list += '.' + arch link_file_list += '.rsp' # If an rspfile contains spaces, ninja surrounds the filename with # quotes around it and then passes it to open(), creating a file with # quotes in its name (and when looking for the rsp file, the name # makes it through bash which strips the quotes) :-/ link_file_list = link_file_list.replace(' ', '_') extra_bindings.append( ('link_file_list', gyp.common.EncodePOSIXShellArgument(link_file_list))) if self.flavor == 'win': extra_bindings.append(('binary', output)) if ('/NOENTRY' not in ldflags and not self.msvs_settings.GetNoImportLibrary(config_name)): self.target.import_lib = output + '.lib' extra_bindings.append(('implibflag', '/IMPLIB:%s' % self.target.import_lib)) pdbname = self.msvs_settings.GetPDBName( config_name, self.ExpandSpecial, output + '.pdb') output = [output, self.target.import_lib] if pdbname: output.append(pdbname) elif not self.is_mac_bundle: output = [output, output + '.TOC'] else: command = command + '_notoc' elif self.flavor == 'win': extra_bindings.append(('binary', output)) pdbname = self.msvs_settings.GetPDBName( config_name, self.ExpandSpecial, output + '.pdb') if pdbname: output = [output, pdbname] if len(solibs): extra_bindings.append(('solibs', gyp.common.EncodePOSIXShellList(solibs))) ninja_file.build(output, command + command_suffix, link_deps, implicit=list(implicit_deps), order_only=list(order_deps), variables=extra_bindings) return linked_binary def WriteTarget(self, spec, config_name, config, link_deps, compile_deps): extra_link_deps = any(self.target_outputs.get(dep).Linkable() for dep in spec.get('dependencies', []) if dep in self.target_outputs) if spec['type'] == 'none' or (not link_deps and not extra_link_deps): # TODO(evan): don't call this function for 'none' target types, as # it doesn't do anything, and we fake out a 'binary' with a stamp file. self.target.binary = compile_deps self.target.type = 'none' elif spec['type'] == 'static_library': self.target.binary = self.ComputeOutput(spec) if (self.flavor not in ('mac', 'openbsd', 'netbsd', 'win') and not self.is_standalone_static_library): self.ninja.build(self.target.binary, 'alink_thin', link_deps, order_only=compile_deps) else: variables = [] if self.xcode_settings: libtool_flags = self.xcode_settings.GetLibtoolflags(config_name) if libtool_flags: variables.append(('libtool_flags', libtool_flags)) if self.msvs_settings: libflags = self.msvs_settings.GetLibFlags(config_name, self.GypPathToNinja) variables.append(('libflags', libflags)) if self.flavor != 'mac' or len(self.archs) == 1: self.AppendPostbuildVariable(variables, spec, self.target.binary, self.target.binary) self.ninja.build(self.target.binary, 'alink', link_deps, order_only=compile_deps, variables=variables) else: inputs = [] for arch in self.archs: output = self.ComputeOutput(spec, arch) self.arch_subninjas[arch].build(output, 'alink', link_deps[arch], order_only=compile_deps, variables=variables) inputs.append(output) # TODO: It's not clear if libtool_flags should be passed to the alink # call that combines single-arch .a files into a fat .a file. self.AppendPostbuildVariable(variables, spec, self.target.binary, self.target.binary) self.ninja.build(self.target.binary, 'alink', inputs, # FIXME: test proving order_only=compile_deps isn't # needed. variables=variables) else: self.target.binary = self.WriteLink(spec, config_name, config, link_deps) return self.target.binary def WriteMacBundle(self, spec, mac_bundle_depends, is_empty): assert self.is_mac_bundle package_framework = spec['type'] in ('shared_library', 'loadable_module') output = self.ComputeMacBundleOutput() if is_empty: output += '.stamp' variables = [] self.AppendPostbuildVariable(variables, spec, output, self.target.binary, is_command_start=not package_framework) if package_framework and not is_empty: variables.append(('version', self.xcode_settings.GetFrameworkVersion())) self.ninja.build(output, 'package_framework', mac_bundle_depends, variables=variables) else: self.ninja.build(output, 'stamp', mac_bundle_depends, variables=variables) self.target.bundle = output return output def GetToolchainEnv(self, additional_settings=None): """Returns the variables toolchain would set for build steps.""" env = self.GetSortedXcodeEnv(additional_settings=additional_settings) if self.flavor == 'win': env = self.GetMsvsToolchainEnv( additional_settings=additional_settings) return env def GetMsvsToolchainEnv(self, additional_settings=None): """Returns the variables Visual Studio would set for build steps.""" return self.msvs_settings.GetVSMacroEnv('$!PRODUCT_DIR', config=self.config_name) def GetSortedXcodeEnv(self, additional_settings=None): """Returns the variables Xcode would set for build steps.""" assert self.abs_build_dir abs_build_dir = self.abs_build_dir return gyp.xcode_emulation.GetSortedXcodeEnv( self.xcode_settings, abs_build_dir, os.path.join(abs_build_dir, self.build_to_base), self.config_name, additional_settings) def GetSortedXcodePostbuildEnv(self): """Returns the variables Xcode would set for postbuild steps.""" postbuild_settings = {} # CHROMIUM_STRIP_SAVE_FILE is a chromium-specific hack. # TODO(thakis): It would be nice to have some general mechanism instead. strip_save_file = self.xcode_settings.GetPerTargetSetting( 'CHROMIUM_STRIP_SAVE_FILE') if strip_save_file: postbuild_settings['CHROMIUM_STRIP_SAVE_FILE'] = strip_save_file return self.GetSortedXcodeEnv(additional_settings=postbuild_settings) def AppendPostbuildVariable(self, variables, spec, output, binary, is_command_start=False): """Adds a 'postbuild' variable if there is a postbuild for |output|.""" postbuild = self.GetPostbuildCommand(spec, output, binary, is_command_start) if postbuild: variables.append(('postbuilds', postbuild)) def GetPostbuildCommand(self, spec, output, output_binary, is_command_start): """Returns a shell command that runs all the postbuilds, and removes |output| if any of them fails. If |is_command_start| is False, then the returned string will start with ' && '.""" if not self.xcode_settings or spec['type'] == 'none' or not output: return '' output = QuoteShellArgument(output, self.flavor) postbuilds = gyp.xcode_emulation.GetSpecPostbuildCommands(spec, quiet=True) if output_binary is not None: postbuilds = self.xcode_settings.AddImplicitPostbuilds( self.config_name, os.path.normpath(os.path.join(self.base_to_build, output)), QuoteShellArgument( os.path.normpath(os.path.join(self.base_to_build, output_binary)), self.flavor), postbuilds, quiet=True) if not postbuilds: return '' # Postbuilds expect to be run in the gyp file's directory, so insert an # implicit postbuild to cd to there. postbuilds.insert(0, gyp.common.EncodePOSIXShellList( ['cd', self.build_to_base])) env = self.ComputeExportEnvString(self.GetSortedXcodePostbuildEnv()) # G will be non-null if any postbuild fails. Run all postbuilds in a # subshell. commands = env + ' (' + \ ' && '.join([ninja_syntax.escape(command) for command in postbuilds]) command_string = (commands + '); G=$$?; ' # Remove the final output if any postbuild failed. '((exit $$G) || rm -rf %s) ' % output + '&& exit $$G)') if is_command_start: return '(' + command_string + ' && ' else: return '$ && (' + command_string def ComputeExportEnvString(self, env): """Given an environment, returns a string looking like 'export FOO=foo; export BAR="${FOO} bar;' that exports |env| to the shell.""" export_str = [] for k, v in env: export_str.append('export %s=%s;' % (k, ninja_syntax.escape(gyp.common.EncodePOSIXShellArgument(v)))) return ' '.join(export_str) def ComputeMacBundleOutput(self): """Return the 'output' (full output path) to a bundle output directory.""" assert self.is_mac_bundle path = generator_default_variables['PRODUCT_DIR'] return self.ExpandSpecial( os.path.join(path, self.xcode_settings.GetWrapperName())) def ComputeOutputFileName(self, spec, type=None): """Compute the filename of the final output for the current target.""" if not type: type = spec['type'] default_variables = copy.copy(generator_default_variables) CalculateVariables(default_variables, {'flavor': self.flavor}) # Compute filename prefix: the product prefix, or a default for # the product type. DEFAULT_PREFIX = { 'loadable_module': default_variables['SHARED_LIB_PREFIX'], 'shared_library': default_variables['SHARED_LIB_PREFIX'], 'static_library': default_variables['STATIC_LIB_PREFIX'], 'executable': default_variables['EXECUTABLE_PREFIX'], } prefix = spec.get('product_prefix', DEFAULT_PREFIX.get(type, '')) # Compute filename extension: the product extension, or a default # for the product type. DEFAULT_EXTENSION = { 'loadable_module': default_variables['SHARED_LIB_SUFFIX'], 'shared_library': default_variables['SHARED_LIB_SUFFIX'], 'static_library': default_variables['STATIC_LIB_SUFFIX'], 'executable': default_variables['EXECUTABLE_SUFFIX'], } extension = spec.get('product_extension') if extension: extension = '.' + extension else: extension = DEFAULT_EXTENSION.get(type, '') if 'product_name' in spec: # If we were given an explicit name, use that. target = spec['product_name'] else: # Otherwise, derive a name from the target name. target = spec['target_name'] if prefix == 'lib': # Snip out an extra 'lib' from libs if appropriate. target = StripPrefix(target, 'lib') if type in ('static_library', 'loadable_module', 'shared_library', 'executable'): return '%s%s%s' % (prefix, target, extension) elif type == 'none': return '%s.stamp' % target else: raise Exception('Unhandled output type %s' % type) def ComputeOutput(self, spec, arch=None): """Compute the path for the final output of the spec.""" type = spec['type'] if self.flavor == 'win': override = self.msvs_settings.GetOutputName(self.config_name, self.ExpandSpecial) if override: return override if arch is None and self.flavor == 'mac' and type in ( 'static_library', 'executable', 'shared_library', 'loadable_module'): filename = self.xcode_settings.GetExecutablePath() else: filename = self.ComputeOutputFileName(spec, type) if arch is None and 'product_dir' in spec: path = os.path.join(spec['product_dir'], filename) return self.ExpandSpecial(path) # Some products go into the output root, libraries go into shared library # dir, and everything else goes into the normal place. type_in_output_root = ['executable', 'loadable_module'] if self.flavor == 'mac' and self.toolset == 'target': type_in_output_root += ['shared_library', 'static_library'] elif self.flavor == 'win' and self.toolset == 'target': type_in_output_root += ['shared_library'] if arch is not None: # Make sure partial executables don't end up in a bundle or the regular # output directory. archdir = 'arch' if self.toolset != 'target': archdir = os.path.join('arch', '%s' % self.toolset) return os.path.join(archdir, AddArch(filename, arch)) elif type in type_in_output_root or self.is_standalone_static_library: return filename elif type == 'shared_library': libdir = 'lib' if self.toolset != 'target': libdir = os.path.join('lib', '%s' % self.toolset) return os.path.join(libdir, filename) else: return self.GypPathToUniqueOutput(filename, qualified=False) def WriteVariableList(self, ninja_file, var, values): assert not isinstance(values, str) if values is None: values = [] ninja_file.variable(var, ' '.join(values)) def WriteNewNinjaRule(self, name, args, description, is_cygwin, env, pool, depfile=None): """Write out a new ninja "rule" statement for a given command. Returns the name of the new rule, and a copy of |args| with variables expanded.""" if self.flavor == 'win': args = [self.msvs_settings.ConvertVSMacros( arg, self.base_to_build, config=self.config_name) for arg in args] description = self.msvs_settings.ConvertVSMacros( description, config=self.config_name) elif self.flavor == 'mac': # |env| is an empty list on non-mac. args = [gyp.xcode_emulation.ExpandEnvVars(arg, env) for arg in args] description = gyp.xcode_emulation.ExpandEnvVars(description, env) # TODO: we shouldn't need to qualify names; we do it because # currently the ninja rule namespace is global, but it really # should be scoped to the subninja. rule_name = self.name if self.toolset == 'target': rule_name += '.' + self.toolset rule_name += '.' + name rule_name = re.sub('[^a-zA-Z0-9_]', '_', rule_name) # Remove variable references, but not if they refer to the magic rule # variables. This is not quite right, as it also protects these for # actions, not just for rules where they are valid. Good enough. protect = [ '${root}', '${dirname}', '${source}', '${ext}', '${name}' ] protect = '(?!' + '|'.join(map(re.escape, protect)) + ')' description = re.sub(protect + r'\$', '_', description) # gyp dictates that commands are run from the base directory. # cd into the directory before running, and adjust paths in # the arguments to point to the proper locations. rspfile = None rspfile_content = None args = [self.ExpandSpecial(arg, self.base_to_build) for arg in args] if self.flavor == 'win': rspfile = rule_name + '.$unique_name.rsp' # The cygwin case handles this inside the bash sub-shell. run_in = '' if is_cygwin else ' ' + self.build_to_base if is_cygwin: rspfile_content = self.msvs_settings.BuildCygwinBashCommandLine( args, self.build_to_base) else: rspfile_content = gyp.msvs_emulation.EncodeRspFileList(args) command = ('%s gyp-win-tool action-wrapper $arch ' % sys.executable + rspfile + run_in) else: env = self.ComputeExportEnvString(env) command = gyp.common.EncodePOSIXShellList(args) command = 'cd %s; ' % self.build_to_base + env + command # GYP rules/actions express being no-ops by not touching their outputs. # Avoid executing downstream dependencies in this case by specifying # restat=1 to ninja. self.ninja.rule(rule_name, command, description, depfile=depfile, restat=True, pool=pool, rspfile=rspfile, rspfile_content=rspfile_content) self.ninja.newline() return rule_name, args def CalculateVariables(default_variables, params): """Calculate additional variables for use in the build (called by gyp).""" global generator_additional_non_configuration_keys global generator_additional_path_sections flavor = gyp.common.GetFlavor(params) if flavor == 'mac': default_variables.setdefault('OS', 'mac') default_variables.setdefault('SHARED_LIB_SUFFIX', '.dylib') default_variables.setdefault('SHARED_LIB_DIR', generator_default_variables['PRODUCT_DIR']) default_variables.setdefault('LIB_DIR', generator_default_variables['PRODUCT_DIR']) # Copy additional generator configuration data from Xcode, which is shared # by the Mac Ninja generator. import gyp.generator.xcode as xcode_generator generator_additional_non_configuration_keys = getattr(xcode_generator, 'generator_additional_non_configuration_keys', []) generator_additional_path_sections = getattr(xcode_generator, 'generator_additional_path_sections', []) global generator_extra_sources_for_rules generator_extra_sources_for_rules = getattr(xcode_generator, 'generator_extra_sources_for_rules', []) elif flavor == 'win': exts = gyp.MSVSUtil.TARGET_TYPE_EXT default_variables.setdefault('OS', 'win') default_variables['EXECUTABLE_SUFFIX'] = '.' + exts['executable'] default_variables['STATIC_LIB_PREFIX'] = '' default_variables['STATIC_LIB_SUFFIX'] = '.' + exts['static_library'] default_variables['SHARED_LIB_PREFIX'] = '' default_variables['SHARED_LIB_SUFFIX'] = '.' + exts['shared_library'] # Copy additional generator configuration data from VS, which is shared # by the Windows Ninja generator. import gyp.generator.msvs as msvs_generator generator_additional_non_configuration_keys = getattr(msvs_generator, 'generator_additional_non_configuration_keys', []) generator_additional_path_sections = getattr(msvs_generator, 'generator_additional_path_sections', []) gyp.msvs_emulation.CalculateCommonVariables(default_variables, params) else: operating_system = flavor if flavor == 'android': operating_system = 'linux' # Keep this legacy behavior for now. default_variables.setdefault('OS', operating_system) default_variables.setdefault('SHARED_LIB_SUFFIX', '.so') default_variables.setdefault('SHARED_LIB_DIR', os.path.join('$!PRODUCT_DIR', 'lib')) default_variables.setdefault('LIB_DIR', os.path.join('$!PRODUCT_DIR', 'obj')) def ComputeOutputDir(params): """Returns the path from the toplevel_dir to the build output directory.""" # generator_dir: relative path from pwd to where make puts build files. # Makes migrating from make to ninja easier, ninja doesn't put anything here. generator_dir = os.path.relpath(params['options'].generator_output or '.') # output_dir: relative path from generator_dir to the build directory. output_dir = params.get('generator_flags', {}).get('output_dir', 'out') # Relative path from source root to our output files. e.g. "out" return os.path.normpath(os.path.join(generator_dir, output_dir)) def CalculateGeneratorInputInfo(params): """Called by __init__ to initialize generator values based on params.""" # E.g. "out/gypfiles" toplevel = params['options'].toplevel_dir qualified_out_dir = os.path.normpath(os.path.join( toplevel, ComputeOutputDir(params), 'gypfiles')) global generator_filelist_paths generator_filelist_paths = { 'toplevel': toplevel, 'qualified_out_dir': qualified_out_dir, } def OpenOutput(path, mode='w'): """Open |path| for writing, creating directories if necessary.""" gyp.common.EnsureDirExists(path) return open(path, mode) def CommandWithWrapper(cmd, wrappers, prog): wrapper = wrappers.get(cmd, '') if wrapper: return wrapper + ' ' + prog return prog def GetDefaultConcurrentLinks(): """Returns a best-guess for a number of concurrent links.""" pool_size = int(os.environ.get('GYP_LINK_CONCURRENCY', 0)) if pool_size: return pool_size if sys.platform in ('win32', 'cygwin'): import ctypes class MEMORYSTATUSEX(ctypes.Structure): _fields_ = [ ("dwLength", ctypes.c_ulong), ("dwMemoryLoad", ctypes.c_ulong), ("ullTotalPhys", ctypes.c_ulonglong), ("ullAvailPhys", ctypes.c_ulonglong), ("ullTotalPageFile", ctypes.c_ulonglong), ("ullAvailPageFile", ctypes.c_ulonglong), ("ullTotalVirtual", ctypes.c_ulonglong), ("ullAvailVirtual", ctypes.c_ulonglong), ("sullAvailExtendedVirtual", ctypes.c_ulonglong), ] stat = MEMORYSTATUSEX() stat.dwLength = ctypes.sizeof(stat) ctypes.windll.kernel32.GlobalMemoryStatusEx(ctypes.byref(stat)) # VS 2015 uses 20% more working set than VS 2013 and can consume all RAM # on a 64 GB machine. mem_limit = max(1, stat.ullTotalPhys / (5 * (2 ** 30))) # total / 5GB hard_cap = max(1, int(os.environ.get('GYP_LINK_CONCURRENCY_MAX', 2**32))) return min(mem_limit, hard_cap) elif sys.platform.startswith('linux'): if os.path.exists("/proc/meminfo"): with open("/proc/meminfo") as meminfo: memtotal_re = re.compile(r'^MemTotal:\s*(\d*)\s*kB') for line in meminfo: match = memtotal_re.match(line) if not match: continue # Allow 8Gb per link on Linux because Gold is quite memory hungry return max(1, int(match.group(1)) / (8 * (2 ** 20))) return 1 elif sys.platform == 'darwin': try: avail_bytes = int(subprocess.check_output(['sysctl', '-n', 'hw.memsize'])) # A static library debug build of Chromium's unit_tests takes ~2.7GB, so # 4GB per ld process allows for some more bloat. return max(1, avail_bytes / (4 * (2 ** 30))) # total / 4GB except: return 1 else: # TODO(scottmg): Implement this for other platforms. return 1 def _GetWinLinkRuleNameSuffix(embed_manifest): """Returns the suffix used to select an appropriate linking rule depending on whether the manifest embedding is enabled.""" return '_embed' if embed_manifest else '' def _AddWinLinkRules(master_ninja, embed_manifest): """Adds link rules for Windows platform to |master_ninja|.""" def FullLinkCommand(ldcmd, out, binary_type): resource_name = { 'exe': '1', 'dll': '2', }[binary_type] return '%(python)s gyp-win-tool link-with-manifests $arch %(embed)s ' \ '%(out)s "%(ldcmd)s" %(resname)s $mt $rc "$intermediatemanifest" ' \ '$manifests' % { 'python': sys.executable, 'out': out, 'ldcmd': ldcmd, 'resname': resource_name, 'embed': embed_manifest } rule_name_suffix = _GetWinLinkRuleNameSuffix(embed_manifest) use_separate_mspdbsrv = ( int(os.environ.get('GYP_USE_SEPARATE_MSPDBSRV', '0')) != 0) dlldesc = 'LINK%s(DLL) $binary' % rule_name_suffix.upper() dllcmd = ('%s gyp-win-tool link-wrapper $arch %s ' '$ld /nologo $implibflag /DLL /OUT:$binary ' '@$binary.rsp' % (sys.executable, use_separate_mspdbsrv)) dllcmd = FullLinkCommand(dllcmd, '$binary', 'dll') master_ninja.rule('solink' + rule_name_suffix, description=dlldesc, command=dllcmd, rspfile='$binary.rsp', rspfile_content='$libs $in_newline $ldflags', restat=True, pool='link_pool') master_ninja.rule('solink_module' + rule_name_suffix, description=dlldesc, command=dllcmd, rspfile='$binary.rsp', rspfile_content='$libs $in_newline $ldflags', restat=True, pool='link_pool') # Note that ldflags goes at the end so that it has the option of # overriding default settings earlier in the command line. exe_cmd = ('%s gyp-win-tool link-wrapper $arch %s ' '$ld /nologo /OUT:$binary @$binary.rsp' % (sys.executable, use_separate_mspdbsrv)) exe_cmd = FullLinkCommand(exe_cmd, '$binary', 'exe') master_ninja.rule('link' + rule_name_suffix, description='LINK%s $binary' % rule_name_suffix.upper(), command=exe_cmd, rspfile='$binary.rsp', rspfile_content='$in_newline $libs $ldflags', pool='link_pool') def GenerateOutputForConfig(target_list, target_dicts, data, params, config_name): options = params['options'] flavor = gyp.common.GetFlavor(params) generator_flags = params.get('generator_flags', {}) # build_dir: relative path from source root to our output files. # e.g. "out/Debug" build_dir = os.path.normpath( os.path.join(ComputeOutputDir(params), config_name)) toplevel_build = os.path.join(options.toplevel_dir, build_dir) master_ninja_file = OpenOutput(os.path.join(toplevel_build, 'build.ninja')) master_ninja = ninja_syntax.Writer(master_ninja_file, width=120) # Put build-time support tools in out/{config_name}. gyp.common.CopyTool(flavor, toplevel_build) # Grab make settings for CC/CXX. # The rules are # - The priority from low to high is gcc/g++, the 'make_global_settings' in # gyp, the environment variable. # - If there is no 'make_global_settings' for CC.host/CXX.host or # 'CC_host'/'CXX_host' environment variable, cc_host/cxx_host should be set # to cc/cxx. if flavor == 'win': ar = 'lib.exe' # cc and cxx must be set to the correct architecture by overriding with one # of cl_x86 or cl_x64 below. cc = 'UNSET' cxx = 'UNSET' ld = 'link.exe' ld_host = '$ld' else: ar = 'ar' cc = 'cc' cxx = 'c++' ld = '$cc' ldxx = '$cxx' ld_host = '$cc_host' ldxx_host = '$cxx_host' ar_host = 'ar' cc_host = None cxx_host = None cc_host_global_setting = None cxx_host_global_setting = None clang_cl = None nm = 'nm' nm_host = 'nm' readelf = 'readelf' readelf_host = 'readelf' build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0]) make_global_settings = data[build_file].get('make_global_settings', []) build_to_root = gyp.common.InvertRelativePath(build_dir, options.toplevel_dir) wrappers = {} for key, value in make_global_settings: if key == 'AR': ar = os.path.join(build_to_root, value) if key == 'AR.host': ar_host = os.path.join(build_to_root, value) if key == 'CC': cc = os.path.join(build_to_root, value) if cc.endswith('clang-cl'): clang_cl = cc if key == 'CXX': cxx = os.path.join(build_to_root, value) if key == 'CC.host': cc_host = os.path.join(build_to_root, value) cc_host_global_setting = value if key == 'CXX.host': cxx_host = os.path.join(build_to_root, value) cxx_host_global_setting = value if key == 'LD': ld = os.path.join(build_to_root, value) if key == 'LD.host': ld_host = os.path.join(build_to_root, value) if key == 'LDXX': ldxx = os.path.join(build_to_root, value) if key == 'LDXX.host': ldxx_host = os.path.join(build_to_root, value) if key == 'NM': nm = os.path.join(build_to_root, value) if key == 'NM.host': nm_host = os.path.join(build_to_root, value) if key == 'READELF': readelf = os.path.join(build_to_root, value) if key == 'READELF.host': readelf_host = os.path.join(build_to_root, value) if key.endswith('_wrapper'): wrappers[key[:-len('_wrapper')]] = os.path.join(build_to_root, value) # Support wrappers from environment variables too. for key, value in os.environ.items(): if key.lower().endswith('_wrapper'): key_prefix = key[:-len('_wrapper')] key_prefix = re.sub(r'\.HOST$', '.host', key_prefix) wrappers[key_prefix] = os.path.join(build_to_root, value) if flavor == 'win': configs = [target_dicts[qualified_target]['configurations'][config_name] for qualified_target in target_list] shared_system_includes = None if not generator_flags.get('ninja_use_custom_environment_files', 0): shared_system_includes = \ gyp.msvs_emulation.ExtractSharedMSVSSystemIncludes( configs, generator_flags) cl_paths = gyp.msvs_emulation.GenerateEnvironmentFiles( toplevel_build, generator_flags, shared_system_includes, OpenOutput) for arch, path in cl_paths.items(): if clang_cl: # If we have selected clang-cl, use that instead. path = clang_cl command = CommandWithWrapper('CC', wrappers, QuoteShellArgument(path, 'win')) if clang_cl: # Use clang-cl to cross-compile for x86 or x86_64. command += (' -m32' if arch == 'x86' else ' -m64') master_ninja.variable('cl_' + arch, command) cc = GetEnvironFallback(['CC_target', 'CC'], cc) master_ninja.variable('cc', CommandWithWrapper('CC', wrappers, cc)) cxx = GetEnvironFallback(['CXX_target', 'CXX'], cxx) master_ninja.variable('cxx', CommandWithWrapper('CXX', wrappers, cxx)) if flavor == 'win': master_ninja.variable('ld', ld) master_ninja.variable('idl', 'midl.exe') master_ninja.variable('ar', ar) master_ninja.variable('rc', 'rc.exe') master_ninja.variable('ml_x86', 'ml.exe') master_ninja.variable('ml_x64', 'ml64.exe') master_ninja.variable('mt', 'mt.exe') else: master_ninja.variable('ld', CommandWithWrapper('LINK', wrappers, ld)) master_ninja.variable('ldxx', CommandWithWrapper('LINK', wrappers, ldxx)) master_ninja.variable('ar', GetEnvironFallback(['AR_target', 'AR'], ar)) if flavor != 'mac': # Mac does not use readelf/nm for .TOC generation, so avoiding polluting # the master ninja with extra unused variables. master_ninja.variable( 'nm', GetEnvironFallback(['NM_target', 'NM'], nm)) master_ninja.variable( 'readelf', GetEnvironFallback(['READELF_target', 'READELF'], readelf)) if generator_supports_multiple_toolsets: if not cc_host: cc_host = cc if not cxx_host: cxx_host = cxx master_ninja.variable('ar_host', GetEnvironFallback(['AR_host'], ar_host)) master_ninja.variable('nm_host', GetEnvironFallback(['NM_host'], nm_host)) master_ninja.variable('readelf_host', GetEnvironFallback(['READELF_host'], readelf_host)) cc_host = GetEnvironFallback(['CC_host'], cc_host) cxx_host = GetEnvironFallback(['CXX_host'], cxx_host) # The environment variable could be used in 'make_global_settings', like # ['CC.host', '$(CC)'] or ['CXX.host', '$(CXX)'], transform them here. if '$(CC)' in cc_host and cc_host_global_setting: cc_host = cc_host_global_setting.replace('$(CC)', cc) if '$(CXX)' in cxx_host and cxx_host_global_setting: cxx_host = cxx_host_global_setting.replace('$(CXX)', cxx) master_ninja.variable('cc_host', CommandWithWrapper('CC.host', wrappers, cc_host)) master_ninja.variable('cxx_host', CommandWithWrapper('CXX.host', wrappers, cxx_host)) if flavor == 'win': master_ninja.variable('ld_host', ld_host) master_ninja.variable('ldxx_host', ldxx_host) else: master_ninja.variable('ld_host', CommandWithWrapper( 'LINK', wrappers, ld_host)) master_ninja.variable('ldxx_host', CommandWithWrapper( 'LINK', wrappers, ldxx_host)) master_ninja.newline() master_ninja.pool('link_pool', depth=GetDefaultConcurrentLinks()) master_ninja.newline() deps = 'msvc' if flavor == 'win' else 'gcc' if flavor != 'win': master_ninja.rule( 'cc', description='CC $out', command=('$cc -MMD -MF $out.d $defines $includes $cflags $cflags_c ' '$cflags_pch_c -c $in -o $out'), depfile='$out.d', deps=deps) master_ninja.rule( 'cc_s', description='CC $out', command=('$cc $defines $includes $cflags $cflags_c ' '$cflags_pch_c -c $in -o $out')) master_ninja.rule( 'cxx', description='CXX $out', command=('$cxx -MMD -MF $out.d $defines $includes $cflags $cflags_cc ' '$cflags_pch_cc -c $in -o $out'), depfile='$out.d', deps=deps) else: # TODO(scottmg) Separate pdb names is a test to see if it works around # http://crbug.com/142362. It seems there's a race between the creation of # the .pdb by the precompiled header step for .cc and the compilation of # .c files. This should be handled by mspdbsrv, but rarely errors out with # c1xx : fatal error C1033: cannot open program database # By making the rules target separate pdb files this might be avoided. cc_command = ('ninja -t msvc -e $arch ' + '-- ' '$cc /nologo /showIncludes /FC ' '@$out.rsp /c $in /Fo$out /Fd$pdbname_c ') cxx_command = ('ninja -t msvc -e $arch ' + '-- ' '$cxx /nologo /showIncludes /FC ' '@$out.rsp /c $in /Fo$out /Fd$pdbname_cc ') master_ninja.rule( 'cc', description='CC $out', command=cc_command, rspfile='$out.rsp', rspfile_content='$defines $includes $cflags $cflags_c', deps=deps) master_ninja.rule( 'cxx', description='CXX $out', command=cxx_command, rspfile='$out.rsp', rspfile_content='$defines $includes $cflags $cflags_cc', deps=deps) master_ninja.rule( 'idl', description='IDL $in', command=('%s gyp-win-tool midl-wrapper $arch $outdir ' '$tlb $h $dlldata $iid $proxy $in ' '$midl_includes $idlflags' % sys.executable)) master_ninja.rule( 'rc', description='RC $in', # Note: $in must be last otherwise rc.exe complains. command=('%s gyp-win-tool rc-wrapper ' '$arch $rc $defines $resource_includes $rcflags /fo$out $in' % sys.executable)) master_ninja.rule( 'asm', description='ASM $out', command=('%s gyp-win-tool asm-wrapper ' '$arch $asm $defines $includes $asmflags /c /Fo $out $in' % sys.executable)) if flavor != 'mac' and flavor != 'win': master_ninja.rule( 'alink', description='AR $out', command='rm -f $out && $ar rcs $arflags $out $in') master_ninja.rule( 'alink_thin', description='AR $out', command='rm -f $out && $ar rcsT $arflags $out $in') # This allows targets that only need to depend on $lib's API to declare an # order-only dependency on $lib.TOC and avoid relinking such downstream # dependencies when $lib changes only in non-public ways. # The resulting string leaves an uninterpolated %{suffix} which # is used in the final substitution below. mtime_preserving_solink_base = ( 'if [ ! -e $lib -o ! -e $lib.TOC ]; then ' '%(solink)s && %(extract_toc)s > $lib.TOC; else ' '%(solink)s && %(extract_toc)s > $lib.tmp && ' 'if ! cmp -s $lib.tmp $lib.TOC; then mv $lib.tmp $lib.TOC ; ' 'fi; fi' % { 'solink': '$ld -shared $ldflags -o $lib -Wl,-soname=$soname %(suffix)s', 'extract_toc': ('{ $readelf -d $lib | grep SONAME ; ' '$nm -gD -f p $lib | cut -f1-2 -d\' \'; }')}) master_ninja.rule( 'solink', description='SOLINK $lib', restat=True, command=mtime_preserving_solink_base % {'suffix': '@$link_file_list'}, rspfile='$link_file_list', rspfile_content= '-Wl,--whole-archive $in $solibs -Wl,--no-whole-archive $libs', pool='link_pool') master_ninja.rule( 'solink_module', description='SOLINK(module) $lib', restat=True, command=mtime_preserving_solink_base % {'suffix': '@$link_file_list'}, rspfile='$link_file_list', rspfile_content='-Wl,--start-group $in $solibs $libs -Wl,--end-group', pool='link_pool') master_ninja.rule( 'link', description='LINK $out', command=('$ld $ldflags -o $out ' '-Wl,--start-group $in $solibs $libs -Wl,--end-group'), pool='link_pool') elif flavor == 'win': master_ninja.rule( 'alink', description='LIB $out', command=('%s gyp-win-tool link-wrapper $arch False ' '$ar /nologo /ignore:4221 /OUT:$out @$out.rsp' % sys.executable), rspfile='$out.rsp', rspfile_content='$in_newline $libflags') _AddWinLinkRules(master_ninja, embed_manifest=True) _AddWinLinkRules(master_ninja, embed_manifest=False) else: master_ninja.rule( 'objc', description='OBJC $out', command=('$cc -MMD -MF $out.d $defines $includes $cflags $cflags_objc ' '$cflags_pch_objc -c $in -o $out'), depfile='$out.d', deps=deps) master_ninja.rule( 'objcxx', description='OBJCXX $out', command=('$cxx -MMD -MF $out.d $defines $includes $cflags $cflags_objcc ' '$cflags_pch_objcc -c $in -o $out'), depfile='$out.d', deps=deps) master_ninja.rule( 'alink', description='LIBTOOL-STATIC $out, POSTBUILDS', command='rm -f $out && ' './gyp-mac-tool filter-libtool libtool $libtool_flags ' '-static -o $out $in' '$postbuilds') master_ninja.rule( 'lipo', description='LIPO $out, POSTBUILDS', command='rm -f $out && lipo -create $in -output $out$postbuilds') master_ninja.rule( 'solipo', description='SOLIPO $out, POSTBUILDS', command=( 'rm -f $lib $lib.TOC && lipo -create $in -output $lib$postbuilds &&' '%(extract_toc)s > $lib.TOC' % { 'extract_toc': '{ otool -l $lib | grep LC_ID_DYLIB -A 5; ' 'nm -gP $lib | cut -f1-2 -d\' \' | grep -v U$$; true; }'})) # Record the public interface of $lib in $lib.TOC. See the corresponding # comment in the posix section above for details. solink_base = '$ld %(type)s $ldflags -o $lib %(suffix)s' mtime_preserving_solink_base = ( 'if [ ! -e $lib -o ! -e $lib.TOC ] || ' # Always force dependent targets to relink if this library # reexports something. Handling this correctly would require # recursive TOC dumping but this is rare in practice, so punt. 'otool -l $lib | grep -q LC_REEXPORT_DYLIB ; then ' '%(solink)s && %(extract_toc)s > $lib.TOC; ' 'else ' '%(solink)s && %(extract_toc)s > $lib.tmp && ' 'if ! cmp -s $lib.tmp $lib.TOC; then ' 'mv $lib.tmp $lib.TOC ; ' 'fi; ' 'fi' % { 'solink': solink_base, 'extract_toc': '{ otool -l $lib | grep LC_ID_DYLIB -A 5; ' 'nm -gP $lib | cut -f1-2 -d\' \' | grep -v U$$; true; }'}) solink_suffix = '@$link_file_list$postbuilds' master_ninja.rule( 'solink', description='SOLINK $lib, POSTBUILDS', restat=True, command=mtime_preserving_solink_base % {'suffix': solink_suffix, 'type': '-shared'}, rspfile='$link_file_list', rspfile_content='$in $solibs $libs', pool='link_pool') master_ninja.rule( 'solink_notoc', description='SOLINK $lib, POSTBUILDS', restat=True, command=solink_base % {'suffix':solink_suffix, 'type': '-shared'}, rspfile='$link_file_list', rspfile_content='$in $solibs $libs', pool='link_pool') master_ninja.rule( 'solink_module', description='SOLINK(module) $lib, POSTBUILDS', restat=True, command=mtime_preserving_solink_base % {'suffix': solink_suffix, 'type': '-bundle'}, rspfile='$link_file_list', rspfile_content='$in $solibs $libs', pool='link_pool') master_ninja.rule( 'solink_module_notoc', description='SOLINK(module) $lib, POSTBUILDS', restat=True, command=solink_base % {'suffix': solink_suffix, 'type': '-bundle'}, rspfile='$link_file_list', rspfile_content='$in $solibs $libs', pool='link_pool') master_ninja.rule( 'link', description='LINK $out, POSTBUILDS', command=('$ld $ldflags -o $out ' '$in $solibs $libs$postbuilds'), pool='link_pool') master_ninja.rule( 'preprocess_infoplist', description='PREPROCESS INFOPLIST $out', command=('$cc -E -P -Wno-trigraphs -x c $defines $in -o $out && ' 'plutil -convert xml1 $out $out')) master_ninja.rule( 'copy_infoplist', description='COPY INFOPLIST $in', command='$env ./gyp-mac-tool copy-info-plist $in $out $binary $keys') master_ninja.rule( 'merge_infoplist', description='MERGE INFOPLISTS $in', command='$env ./gyp-mac-tool merge-info-plist $out $in') master_ninja.rule( 'compile_xcassets', description='COMPILE XCASSETS $in', command='$env ./gyp-mac-tool compile-xcassets $keys $in') master_ninja.rule( 'mac_tool', description='MACTOOL $mactool_cmd $in', command='$env ./gyp-mac-tool $mactool_cmd $in $out $binary') master_ninja.rule( 'package_framework', description='PACKAGE FRAMEWORK $out, POSTBUILDS', command='./gyp-mac-tool package-framework $out $version$postbuilds ' '&& touch $out') if flavor == 'win': master_ninja.rule( 'stamp', description='STAMP $out', command='%s gyp-win-tool stamp $out' % sys.executable) else: master_ninja.rule( 'stamp', description='STAMP $out', command='${postbuilds}touch $out') if flavor == 'win': master_ninja.rule( 'copy', description='COPY $in $out', command='%s gyp-win-tool recursive-mirror $in $out' % sys.executable) elif flavor == 'zos': master_ninja.rule( 'copy', description='COPY $in $out', command='rm -rf $out && cp -fRP $in $out') else: master_ninja.rule( 'copy', description='COPY $in $out', command='rm -rf $out && cp -af $in $out') master_ninja.newline() all_targets = set() for build_file in params['build_files']: for target in gyp.common.AllTargets(target_list, target_dicts, os.path.normpath(build_file)): all_targets.add(target) all_outputs = set() # target_outputs is a map from qualified target name to a Target object. target_outputs = {} # target_short_names is a map from target short name to a list of Target # objects. target_short_names = {} # short name of targets that were skipped because they didn't contain anything # interesting. # NOTE: there may be overlap between this an non_empty_target_names. empty_target_names = set() # Set of non-empty short target names. # NOTE: there may be overlap between this an empty_target_names. non_empty_target_names = set() for qualified_target in target_list: # qualified_target is like: third_party/icu/icu.gyp:icui18n#target build_file, name, toolset = \ gyp.common.ParseQualifiedTarget(qualified_target) this_make_global_settings = data[build_file].get('make_global_settings', []) assert make_global_settings == this_make_global_settings, ( "make_global_settings needs to be the same for all targets. %s vs. %s" % (this_make_global_settings, make_global_settings)) spec = target_dicts[qualified_target] if flavor == 'mac': gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(data[build_file], spec) # If build_file is a symlink, we must not follow it because there's a chance # it could point to a path above toplevel_dir, and we cannot correctly deal # with that case at the moment. build_file = gyp.common.RelativePath(build_file, options.toplevel_dir, False) qualified_target_for_hash = gyp.common.QualifiedTarget(build_file, name, toolset) hash_for_rules = hashlib.md5(qualified_target_for_hash).hexdigest() base_path = os.path.dirname(build_file) obj = 'obj' if toolset != 'target': obj += '.' + toolset output_file = os.path.join(obj, base_path, name + '.ninja') ninja_output = StringIO() writer = NinjaWriter(hash_for_rules, target_outputs, base_path, build_dir, ninja_output, toplevel_build, output_file, flavor, toplevel_dir=options.toplevel_dir) target = writer.WriteSpec(spec, config_name, generator_flags) if ninja_output.tell() > 0: # Only create files for ninja files that actually have contents. with OpenOutput(os.path.join(toplevel_build, output_file)) as ninja_file: ninja_file.write(ninja_output.getvalue()) ninja_output.close() master_ninja.subninja(output_file) if target: if name != target.FinalOutput() and spec['toolset'] == 'target': target_short_names.setdefault(name, []).append(target) target_outputs[qualified_target] = target if qualified_target in all_targets: all_outputs.add(target.FinalOutput()) non_empty_target_names.add(name) else: empty_target_names.add(name) if target_short_names: # Write a short name to build this target. This benefits both the # "build chrome" case as well as the gyp tests, which expect to be # able to run actions and build libraries by their short name. master_ninja.newline() master_ninja.comment('Short names for targets.') for short_name in target_short_names: master_ninja.build(short_name, 'phony', [x.FinalOutput() for x in target_short_names[short_name]]) # Write phony targets for any empty targets that weren't written yet. As # short names are not necessarily unique only do this for short names that # haven't already been output for another target. empty_target_names = empty_target_names - non_empty_target_names if empty_target_names: master_ninja.newline() master_ninja.comment('Empty targets (output for completeness).') for name in sorted(empty_target_names): master_ninja.build(name, 'phony') if all_outputs: master_ninja.newline() master_ninja.build('all', 'phony', list(all_outputs)) master_ninja.default(generator_flags.get('default_target', 'all')) master_ninja_file.close() def PerformBuild(data, configurations, params): options = params['options'] for config in configurations: builddir = os.path.join(options.toplevel_dir, 'out', config) arguments = ['ninja', '-C', builddir] print('Building [%s]: %s' % (config, arguments)) subprocess.check_call(arguments) def CallGenerateOutputForConfig(arglist): # Ignore the interrupt signal so that the parent process catches it and # kills all multiprocessing children. signal.signal(signal.SIGINT, signal.SIG_IGN) (target_list, target_dicts, data, params, config_name) = arglist GenerateOutputForConfig(target_list, target_dicts, data, params, config_name) def GenerateOutput(target_list, target_dicts, data, params): # Update target_dicts for iOS device builds. target_dicts = gyp.xcode_emulation.CloneConfigurationForDeviceAndEmulator( target_dicts) user_config = params.get('generator_flags', {}).get('config', None) if gyp.common.GetFlavor(params) == 'win': target_list, target_dicts = MSVSUtil.ShardTargets(target_list, target_dicts) target_list, target_dicts = MSVSUtil.InsertLargePdbShims( target_list, target_dicts, generator_default_variables) if user_config: GenerateOutputForConfig(target_list, target_dicts, data, params, user_config) else: config_names = target_dicts[target_list[0]]['configurations'].keys() if params['parallel']: try: pool = multiprocessing.Pool(len(config_names)) arglists = [] for config_name in config_names: arglists.append( (target_list, target_dicts, data, params, config_name)) pool.map(CallGenerateOutputForConfig, arglists) except KeyboardInterrupt as e: pool.terminate() raise e else: for config_name in config_names: GenerateOutputForConfig(target_list, target_dicts, data, params, config_name) PK!i(՟ dump_dependency_json.pynu[from __future__ import print_function # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import os import gyp import gyp.common import gyp.msvs_emulation import json import sys generator_supports_multiple_toolsets = True generator_wants_static_library_dependencies_adjusted = False generator_filelist_paths = { } generator_default_variables = { } for dirname in ['INTERMEDIATE_DIR', 'SHARED_INTERMEDIATE_DIR', 'PRODUCT_DIR', 'LIB_DIR', 'SHARED_LIB_DIR']: # Some gyp steps fail if these are empty(!). generator_default_variables[dirname] = 'dir' for unused in ['RULE_INPUT_PATH', 'RULE_INPUT_ROOT', 'RULE_INPUT_NAME', 'RULE_INPUT_DIRNAME', 'RULE_INPUT_EXT', 'EXECUTABLE_PREFIX', 'EXECUTABLE_SUFFIX', 'STATIC_LIB_PREFIX', 'STATIC_LIB_SUFFIX', 'SHARED_LIB_PREFIX', 'SHARED_LIB_SUFFIX', 'CONFIGURATION_NAME']: generator_default_variables[unused] = '' def CalculateVariables(default_variables, params): generator_flags = params.get('generator_flags', {}) for key, val in generator_flags.items(): default_variables.setdefault(key, val) default_variables.setdefault('OS', gyp.common.GetFlavor(params)) flavor = gyp.common.GetFlavor(params) if flavor =='win': # Copy additional generator configuration data from VS, which is shared # by the Windows Ninja generator. import gyp.generator.msvs as msvs_generator generator_additional_non_configuration_keys = getattr(msvs_generator, 'generator_additional_non_configuration_keys', []) generator_additional_path_sections = getattr(msvs_generator, 'generator_additional_path_sections', []) gyp.msvs_emulation.CalculateCommonVariables(default_variables, params) def CalculateGeneratorInputInfo(params): """Calculate the generator specific info that gets fed to input (called by gyp).""" generator_flags = params.get('generator_flags', {}) if generator_flags.get('adjust_static_libraries', False): global generator_wants_static_library_dependencies_adjusted generator_wants_static_library_dependencies_adjusted = True toplevel = params['options'].toplevel_dir generator_dir = os.path.relpath(params['options'].generator_output or '.') # output_dir: relative path from generator_dir to the build directory. output_dir = generator_flags.get('output_dir', 'out') qualified_out_dir = os.path.normpath(os.path.join( toplevel, generator_dir, output_dir, 'gypfiles')) global generator_filelist_paths generator_filelist_paths = { 'toplevel': toplevel, 'qualified_out_dir': qualified_out_dir, } def GenerateOutput(target_list, target_dicts, data, params): # Map of target -> list of targets it depends on. edges = {} # Queue of targets to visit. targets_to_visit = target_list[:] while len(targets_to_visit) > 0: target = targets_to_visit.pop() if target in edges: continue edges[target] = [] for dep in target_dicts[target].get('dependencies', []): edges[target].append(dep) targets_to_visit.append(dep) try: filepath = params['generator_flags']['output_dir'] except KeyError: filepath = '.' filename = os.path.join(filepath, 'dump.json') f = open(filename, 'w') json.dump(edges, f) f.close() print('Wrote json to %s.' % filename) PK!433 msvs_test.pynu[#! /usr/bin/python2 # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Unit tests for the msvs.py file. """ import gyp.generator.msvs as msvs import unittest try: from cStringIO import StringIO except ImportError: from io import StringIO class TestSequenceFunctions(unittest.TestCase): def setUp(self): self.stderr = StringIO() def test_GetLibraries(self): self.assertEqual( msvs._GetLibraries({}), []) self.assertEqual( msvs._GetLibraries({'libraries': []}), []) self.assertEqual( msvs._GetLibraries({'other':'foo', 'libraries': ['a.lib']}), ['a.lib']) self.assertEqual( msvs._GetLibraries({'libraries': ['-la']}), ['a.lib']) self.assertEqual( msvs._GetLibraries({'libraries': ['a.lib', 'b.lib', 'c.lib', '-lb.lib', '-lb.lib', 'd.lib', 'a.lib']}), ['c.lib', 'b.lib', 'd.lib', 'a.lib']) if __name__ == '__main__': unittest.main() PK!sB#˱compile_commands_json.pynu[# Copyright (c) 2016 Ben Noordhuis . All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import gyp.common import gyp.xcode_emulation import json import os generator_additional_non_configuration_keys = [] generator_additional_path_sections = [] generator_extra_sources_for_rules = [] generator_filelist_paths = None generator_supports_multiple_toolsets = True generator_wants_sorted_dependencies = False # Lifted from make.py. The actual values don't matter much. generator_default_variables = { 'CONFIGURATION_NAME': '$(BUILDTYPE)', 'EXECUTABLE_PREFIX': '', 'EXECUTABLE_SUFFIX': '', 'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni', 'PRODUCT_DIR': '$(builddir)', 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', 'RULE_INPUT_EXT': '$(suffix $<)', 'RULE_INPUT_NAME': '$(notdir $<)', 'RULE_INPUT_PATH': '$(abspath $<)', 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', 'SHARED_INTERMEDIATE_DIR': '$(obj)/gen', 'SHARED_LIB_PREFIX': 'lib', 'STATIC_LIB_PREFIX': 'lib', 'STATIC_LIB_SUFFIX': '.a', } def IsMac(params): return 'mac' == gyp.common.GetFlavor(params) def CalculateVariables(default_variables, params): default_variables.setdefault('OS', gyp.common.GetFlavor(params)) def AddCommandsForTarget(cwd, target, params, per_config_commands): output_dir = params['generator_flags']['output_dir'] for configuration_name, configuration in target['configurations'].items(): builddir_name = os.path.join(output_dir, configuration_name) if IsMac(params): xcode_settings = gyp.xcode_emulation.XcodeSettings(target) cflags = xcode_settings.GetCflags(configuration_name) cflags_c = xcode_settings.GetCflagsC(configuration_name) cflags_cc = xcode_settings.GetCflagsCC(configuration_name) else: cflags = configuration.get('cflags', []) cflags_c = configuration.get('cflags_c', []) cflags_cc = configuration.get('cflags_cc', []) cflags_c = cflags + cflags_c cflags_cc = cflags + cflags_cc defines = configuration.get('defines', []) defines = ['-D' + s for s in defines] # TODO(bnoordhuis) Handle generated source files. sources = target.get('sources', []) sources = [s for s in sources if s.endswith('.c') or s.endswith('.cc')] def resolve(filename): return os.path.abspath(os.path.join(cwd, filename)) # TODO(bnoordhuis) Handle generated header files. include_dirs = configuration.get('include_dirs', []) include_dirs = [s for s in include_dirs if not s.startswith('$(obj)')] includes = ['-I' + resolve(s) for s in include_dirs] defines = gyp.common.EncodePOSIXShellList(defines) includes = gyp.common.EncodePOSIXShellList(includes) cflags_c = gyp.common.EncodePOSIXShellList(cflags_c) cflags_cc = gyp.common.EncodePOSIXShellList(cflags_cc) commands = per_config_commands.setdefault(configuration_name, []) for source in sources: file = resolve(source) isc = source.endswith('.c') cc = 'cc' if isc else 'c++' cflags = cflags_c if isc else cflags_cc command = ' '.join((cc, defines, includes, cflags, '-c', gyp.common.EncodePOSIXShellArgument(file))) commands.append(dict(command=command, directory=output_dir, file=file)) def GenerateOutput(target_list, target_dicts, data, params): per_config_commands = {} for qualified_target, target in target_dicts.items(): build_file, target_name, toolset = ( gyp.common.ParseQualifiedTarget(qualified_target)) if IsMac(params): settings = data[build_file] gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(settings, target) cwd = os.path.dirname(build_file) AddCommandsForTarget(cwd, target, params, per_config_commands) output_dir = params['generator_flags']['output_dir'] for configuration_name, commands in per_config_commands.items(): filename = os.path.join(output_dir, configuration_name, 'compile_commands.json') gyp.common.EnsureDirExists(filename) fp = open(filename, 'w') json.dump(commands, fp=fp, indent=0, check_circular=False) def PerformBuild(data, configurations, params): pass PK! xcode.pynu[from __future__ import print_function # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import filecmp import gyp.common import gyp.xcodeproj_file import gyp.xcode_ninja import errno import os import sys import posixpath import re import shutil import subprocess import tempfile # Project files generated by this module will use _intermediate_var as a # custom Xcode setting whose value is a DerivedSources-like directory that's # project-specific and configuration-specific. The normal choice, # DERIVED_FILE_DIR, is target-specific, which is thought to be too restrictive # as it is likely that multiple targets within a single project file will want # to access the same set of generated files. The other option, # PROJECT_DERIVED_FILE_DIR, is unsuitable because while it is project-specific, # it is not configuration-specific. INTERMEDIATE_DIR is defined as # $(PROJECT_DERIVED_FILE_DIR)/$(CONFIGURATION). _intermediate_var = 'INTERMEDIATE_DIR' # SHARED_INTERMEDIATE_DIR is the same, except that it is shared among all # targets that share the same BUILT_PRODUCTS_DIR. _shared_intermediate_var = 'SHARED_INTERMEDIATE_DIR' _library_search_paths_var = 'LIBRARY_SEARCH_PATHS' generator_default_variables = { 'EXECUTABLE_PREFIX': '', 'EXECUTABLE_SUFFIX': '', 'STATIC_LIB_PREFIX': 'lib', 'SHARED_LIB_PREFIX': 'lib', 'STATIC_LIB_SUFFIX': '.a', 'SHARED_LIB_SUFFIX': '.dylib', # INTERMEDIATE_DIR is a place for targets to build up intermediate products. # It is specific to each build environment. It is only guaranteed to exist # and be constant within the context of a project, corresponding to a single # input file. Some build environments may allow their intermediate directory # to be shared on a wider scale, but this is not guaranteed. 'INTERMEDIATE_DIR': '$(%s)' % _intermediate_var, 'OS': 'mac', 'PRODUCT_DIR': '$(BUILT_PRODUCTS_DIR)', 'LIB_DIR': '$(BUILT_PRODUCTS_DIR)', 'RULE_INPUT_ROOT': '$(INPUT_FILE_BASE)', 'RULE_INPUT_EXT': '$(INPUT_FILE_SUFFIX)', 'RULE_INPUT_NAME': '$(INPUT_FILE_NAME)', 'RULE_INPUT_PATH': '$(INPUT_FILE_PATH)', 'RULE_INPUT_DIRNAME': '$(INPUT_FILE_DIRNAME)', 'SHARED_INTERMEDIATE_DIR': '$(%s)' % _shared_intermediate_var, 'CONFIGURATION_NAME': '$(CONFIGURATION)', } # The Xcode-specific sections that hold paths. generator_additional_path_sections = [ 'mac_bundle_resources', 'mac_framework_headers', 'mac_framework_private_headers', # 'mac_framework_dirs', input already handles _dirs endings. ] # The Xcode-specific keys that exist on targets and aren't moved down to # configurations. generator_additional_non_configuration_keys = [ 'ios_app_extension', 'ios_watch_app', 'ios_watchkit_extension', 'mac_bundle', 'mac_bundle_resources', 'mac_framework_headers', 'mac_framework_private_headers', 'mac_xctest_bundle', 'xcode_create_dependents_test_runner', ] # We want to let any rules apply to files that are resources also. generator_extra_sources_for_rules = [ 'mac_bundle_resources', 'mac_framework_headers', 'mac_framework_private_headers', ] generator_filelist_paths = None # Xcode's standard set of library directories, which don't need to be duplicated # in LIBRARY_SEARCH_PATHS. This list is not exhaustive, but that's okay. xcode_standard_library_dirs = frozenset([ '$(SDKROOT)/usr/lib', '$(SDKROOT)/usr/local/lib', ]) def CreateXCConfigurationList(configuration_names): xccl = gyp.xcodeproj_file.XCConfigurationList({'buildConfigurations': []}) if len(configuration_names) == 0: configuration_names = ['Default'] for configuration_name in configuration_names: xcbc = gyp.xcodeproj_file.XCBuildConfiguration({ 'name': configuration_name}) xccl.AppendProperty('buildConfigurations', xcbc) xccl.SetProperty('defaultConfigurationName', configuration_names[0]) return xccl class XcodeProject(object): def __init__(self, gyp_path, path, build_file_dict): self.gyp_path = gyp_path self.path = path self.project = gyp.xcodeproj_file.PBXProject(path=path) projectDirPath = gyp.common.RelativePath( os.path.dirname(os.path.abspath(self.gyp_path)), os.path.dirname(path) or '.') self.project.SetProperty('projectDirPath', projectDirPath) self.project_file = \ gyp.xcodeproj_file.XCProjectFile({'rootObject': self.project}) self.build_file_dict = build_file_dict # TODO(mark): add destructor that cleans up self.path if created_dir is # True and things didn't complete successfully. Or do something even # better with "try"? self.created_dir = False try: os.makedirs(self.path) self.created_dir = True except OSError as e: if e.errno != errno.EEXIST: raise def Finalize1(self, xcode_targets, serialize_all_tests): # Collect a list of all of the build configuration names used by the # various targets in the file. It is very heavily advised to keep each # target in an entire project (even across multiple project files) using # the same set of configuration names. configurations = [] for xct in self.project.GetProperty('targets'): xccl = xct.GetProperty('buildConfigurationList') xcbcs = xccl.GetProperty('buildConfigurations') for xcbc in xcbcs: name = xcbc.GetProperty('name') if name not in configurations: configurations.append(name) # Replace the XCConfigurationList attached to the PBXProject object with # a new one specifying all of the configuration names used by the various # targets. try: xccl = CreateXCConfigurationList(configurations) self.project.SetProperty('buildConfigurationList', xccl) except: sys.stderr.write("Problem with gyp file %s\n" % self.gyp_path) raise # The need for this setting is explained above where _intermediate_var is # defined. The comments below about wanting to avoid project-wide build # settings apply here too, but this needs to be set on a project-wide basis # so that files relative to the _intermediate_var setting can be displayed # properly in the Xcode UI. # # Note that for configuration-relative files such as anything relative to # _intermediate_var, for the purposes of UI tree view display, Xcode will # only resolve the configuration name once, when the project file is # opened. If the active build configuration is changed, the project file # must be closed and reopened if it is desired for the tree view to update. # This is filed as Apple radar 6588391. xccl.SetBuildSetting(_intermediate_var, '$(PROJECT_DERIVED_FILE_DIR)/$(CONFIGURATION)') xccl.SetBuildSetting(_shared_intermediate_var, '$(SYMROOT)/DerivedSources/$(CONFIGURATION)') # Set user-specified project-wide build settings and config files. This # is intended to be used very sparingly. Really, almost everything should # go into target-specific build settings sections. The project-wide # settings are only intended to be used in cases where Xcode attempts to # resolve variable references in a project context as opposed to a target # context, such as when resolving sourceTree references while building up # the tree tree view for UI display. # Any values set globally are applied to all configurations, then any # per-configuration values are applied. for xck, xcv in self.build_file_dict.get('xcode_settings', {}).items(): xccl.SetBuildSetting(xck, xcv) if 'xcode_config_file' in self.build_file_dict: config_ref = self.project.AddOrGetFileInRootGroup( self.build_file_dict['xcode_config_file']) xccl.SetBaseConfiguration(config_ref) build_file_configurations = self.build_file_dict.get('configurations', {}) if build_file_configurations: for config_name in configurations: build_file_configuration_named = \ build_file_configurations.get(config_name, {}) if build_file_configuration_named: xcc = xccl.ConfigurationNamed(config_name) for xck, xcv in build_file_configuration_named.get('xcode_settings', {}).items(): xcc.SetBuildSetting(xck, xcv) if 'xcode_config_file' in build_file_configuration_named: config_ref = self.project.AddOrGetFileInRootGroup( build_file_configurations[config_name]['xcode_config_file']) xcc.SetBaseConfiguration(config_ref) # Sort the targets based on how they appeared in the input. # TODO(mark): Like a lot of other things here, this assumes internal # knowledge of PBXProject - in this case, of its "targets" property. # ordinary_targets are ordinary targets that are already in the project # file. run_test_targets are the targets that run unittests and should be # used for the Run All Tests target. support_targets are the action/rule # targets used by GYP file targets, just kept for the assert check. ordinary_targets = [] run_test_targets = [] support_targets = [] # targets is full list of targets in the project. targets = [] # does the it define it's own "all"? has_custom_all = False # targets_for_all is the list of ordinary_targets that should be listed # in this project's "All" target. It includes each non_runtest_target # that does not have suppress_wildcard set. targets_for_all = [] for target in self.build_file_dict['targets']: target_name = target['target_name'] toolset = target['toolset'] qualified_target = gyp.common.QualifiedTarget(self.gyp_path, target_name, toolset) xcode_target = xcode_targets[qualified_target] # Make sure that the target being added to the sorted list is already in # the unsorted list. assert xcode_target in self.project._properties['targets'] targets.append(xcode_target) ordinary_targets.append(xcode_target) if xcode_target.support_target: support_targets.append(xcode_target.support_target) targets.append(xcode_target.support_target) if not int(target.get('suppress_wildcard', False)): targets_for_all.append(xcode_target) if target_name.lower() == 'all': has_custom_all = True # If this target has a 'run_as' attribute, add its target to the # targets, and add it to the test targets. if target.get('run_as'): # Make a target to run something. It should have one # dependency, the parent xcode target. xccl = CreateXCConfigurationList(configurations) run_target = gyp.xcodeproj_file.PBXAggregateTarget({ 'name': 'Run ' + target_name, 'productName': xcode_target.GetProperty('productName'), 'buildConfigurationList': xccl, }, parent=self.project) run_target.AddDependency(xcode_target) command = target['run_as'] script = '' if command.get('working_directory'): script = script + 'cd "%s"\n' % \ gyp.xcodeproj_file.ConvertVariablesToShellSyntax( command.get('working_directory')) if command.get('environment'): script = script + "\n".join( ['export %s="%s"' % (key, gyp.xcodeproj_file.ConvertVariablesToShellSyntax(val)) for (key, val) in command.get('environment').items()]) + "\n" # Some test end up using sockets, files on disk, etc. and can get # confused if more then one test runs at a time. The generator # flag 'xcode_serialize_all_test_runs' controls the forcing of all # tests serially. It defaults to True. To get serial runs this # little bit of python does the same as the linux flock utility to # make sure only one runs at a time. command_prefix = '' if serialize_all_tests: command_prefix = \ """python2 -c "import fcntl, subprocess, sys file = open('$TMPDIR/GYP_serialize_test_runs', 'a') fcntl.flock(file.fileno(), fcntl.LOCK_EX) sys.exit(subprocess.call(sys.argv[1:]))" """ # If we were unable to exec for some reason, we want to exit # with an error, and fixup variable references to be shell # syntax instead of xcode syntax. script = script + 'exec ' + command_prefix + '%s\nexit 1\n' % \ gyp.xcodeproj_file.ConvertVariablesToShellSyntax( gyp.common.EncodePOSIXShellList(command.get('action'))) ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({ 'shellScript': script, 'showEnvVarsInLog': 0, }) run_target.AppendProperty('buildPhases', ssbp) # Add the run target to the project file. targets.append(run_target) run_test_targets.append(run_target) xcode_target.test_runner = run_target # Make sure that the list of targets being replaced is the same length as # the one replacing it, but allow for the added test runner targets. assert len(self.project._properties['targets']) == \ len(ordinary_targets) + len(support_targets) self.project._properties['targets'] = targets # Get rid of unnecessary levels of depth in groups like the Source group. self.project.RootGroupsTakeOverOnlyChildren(True) # Sort the groups nicely. Do this after sorting the targets, because the # Products group is sorted based on the order of the targets. self.project.SortGroups() # Create an "All" target if there's more than one target in this project # file and the project didn't define its own "All" target. Put a generated # "All" target first so that people opening up the project for the first # time will build everything by default. if len(targets_for_all) > 1 and not has_custom_all: xccl = CreateXCConfigurationList(configurations) all_target = gyp.xcodeproj_file.PBXAggregateTarget( { 'buildConfigurationList': xccl, 'name': 'All', }, parent=self.project) for target in targets_for_all: all_target.AddDependency(target) # TODO(mark): This is evil because it relies on internal knowledge of # PBXProject._properties. It's important to get the "All" target first, # though. self.project._properties['targets'].insert(0, all_target) # The same, but for run_test_targets. if len(run_test_targets) > 1: xccl = CreateXCConfigurationList(configurations) run_all_tests_target = gyp.xcodeproj_file.PBXAggregateTarget( { 'buildConfigurationList': xccl, 'name': 'Run All Tests', }, parent=self.project) for run_test_target in run_test_targets: run_all_tests_target.AddDependency(run_test_target) # Insert after the "All" target, which must exist if there is more than # one run_test_target. self.project._properties['targets'].insert(1, run_all_tests_target) def Finalize2(self, xcode_targets, xcode_target_to_target_dict): # Finalize2 needs to happen in a separate step because the process of # updating references to other projects depends on the ordering of targets # within remote project files. Finalize1 is responsible for sorting duty, # and once all project files are sorted, Finalize2 can come in and update # these references. # To support making a "test runner" target that will run all the tests # that are direct dependents of any given target, we look for # xcode_create_dependents_test_runner being set on an Aggregate target, # and generate a second target that will run the tests runners found under # the marked target. for bf_tgt in self.build_file_dict['targets']: if int(bf_tgt.get('xcode_create_dependents_test_runner', 0)): tgt_name = bf_tgt['target_name'] toolset = bf_tgt['toolset'] qualified_target = gyp.common.QualifiedTarget(self.gyp_path, tgt_name, toolset) xcode_target = xcode_targets[qualified_target] if isinstance(xcode_target, gyp.xcodeproj_file.PBXAggregateTarget): # Collect all the run test targets. all_run_tests = [] pbxtds = xcode_target.GetProperty('dependencies') for pbxtd in pbxtds: pbxcip = pbxtd.GetProperty('targetProxy') dependency_xct = pbxcip.GetProperty('remoteGlobalIDString') if hasattr(dependency_xct, 'test_runner'): all_run_tests.append(dependency_xct.test_runner) # Directly depend on all the runners as they depend on the target # that builds them. if len(all_run_tests) > 0: run_all_target = gyp.xcodeproj_file.PBXAggregateTarget({ 'name': 'Run %s Tests' % tgt_name, 'productName': tgt_name, }, parent=self.project) for run_test_target in all_run_tests: run_all_target.AddDependency(run_test_target) # Insert the test runner after the related target. idx = self.project._properties['targets'].index(xcode_target) self.project._properties['targets'].insert(idx + 1, run_all_target) # Update all references to other projects, to make sure that the lists of # remote products are complete. Otherwise, Xcode will fill them in when # it opens the project file, which will result in unnecessary diffs. # TODO(mark): This is evil because it relies on internal knowledge of # PBXProject._other_pbxprojects. for other_pbxproject in self.project._other_pbxprojects.keys(): self.project.AddOrGetProjectReference(other_pbxproject) self.project.SortRemoteProductReferences() # Give everything an ID. self.project_file.ComputeIDs() # Make sure that no two objects in the project file have the same ID. If # multiple objects wind up with the same ID, upon loading the file, Xcode # will only recognize one object (the last one in the file?) and the # results are unpredictable. self.project_file.EnsureNoIDCollisions() def Write(self): # Write the project file to a temporary location first. Xcode watches for # changes to the project file and presents a UI sheet offering to reload # the project when it does change. However, in some cases, especially when # multiple projects are open or when Xcode is busy, things don't work so # seamlessly. Sometimes, Xcode is able to detect that a project file has # changed but can't unload it because something else is referencing it. # To mitigate this problem, and to avoid even having Xcode present the UI # sheet when an open project is rewritten for inconsequential changes, the # project file is written to a temporary file in the xcodeproj directory # first. The new temporary file is then compared to the existing project # file, if any. If they differ, the new file replaces the old; otherwise, # the new project file is simply deleted. Xcode properly detects a file # being renamed over an open project file as a change and so it remains # able to present the "project file changed" sheet under this system. # Writing to a temporary file first also avoids the possible problem of # Xcode rereading an incomplete project file. (output_fd, new_pbxproj_path) = \ tempfile.mkstemp(suffix='.tmp', prefix='project.pbxproj.gyp.', dir=self.path) try: output_file = os.fdopen(output_fd, 'wb') self.project_file.Print(output_file) output_file.close() pbxproj_path = os.path.join(self.path, 'project.pbxproj') same = False try: same = filecmp.cmp(pbxproj_path, new_pbxproj_path, False) except OSError as e: if e.errno != errno.ENOENT: raise if same: # The new file is identical to the old one, just get rid of the new # one. os.unlink(new_pbxproj_path) else: # The new file is different from the old one, or there is no old one. # Rename the new file to the permanent name. # # tempfile.mkstemp uses an overly restrictive mode, resulting in a # file that can only be read by the owner, regardless of the umask. # There's no reason to not respect the umask here, which means that # an extra hoop is required to fetch it and reset the new file's mode. # # No way to get the umask without setting a new one? Set a safe one # and then set it back to the old value. umask = os.umask(0o77) os.umask(umask) os.chmod(new_pbxproj_path, 0o666 & ~umask) os.rename(new_pbxproj_path, pbxproj_path) except Exception: # Don't leave turds behind. In fact, if this code was responsible for # creating the xcodeproj directory, get rid of that too. os.unlink(new_pbxproj_path) if self.created_dir: shutil.rmtree(self.path, True) raise def AddSourceToTarget(source, type, pbxp, xct): # TODO(mark): Perhaps source_extensions and library_extensions can be made a # little bit fancier. source_extensions = ['c', 'cc', 'cpp', 'cxx', 'm', 'mm', 's', 'swift'] # .o is conceptually more of a "source" than a "library," but Xcode thinks # of "sources" as things to compile and "libraries" (or "frameworks") as # things to link with. Adding an object file to an Xcode target's frameworks # phase works properly. library_extensions = ['a', 'dylib', 'framework', 'o'] basename = posixpath.basename(source) (root, ext) = posixpath.splitext(basename) if ext: ext = ext[1:].lower() if ext in source_extensions and type != 'none': xct.SourcesPhase().AddFile(source) elif ext in library_extensions and type != 'none': xct.FrameworksPhase().AddFile(source) else: # Files that aren't added to a sources or frameworks build phase can still # go into the project file, just not as part of a build phase. pbxp.AddOrGetFileInRootGroup(source) def AddResourceToTarget(resource, pbxp, xct): # TODO(mark): Combine with AddSourceToTarget above? Or just inline this call # where it's used. xct.ResourcesPhase().AddFile(resource) def AddHeaderToTarget(header, pbxp, xct, is_public): # TODO(mark): Combine with AddSourceToTarget above? Or just inline this call # where it's used. settings = '{ATTRIBUTES = (%s, ); }' % ('Private', 'Public')[is_public] xct.HeadersPhase().AddFile(header, settings) _xcode_variable_re = re.compile(r'(\$\((.*?)\))') def ExpandXcodeVariables(string, expansions): """Expands Xcode-style $(VARIABLES) in string per the expansions dict. In some rare cases, it is appropriate to expand Xcode variables when a project file is generated. For any substring $(VAR) in string, if VAR is a key in the expansions dict, $(VAR) will be replaced with expansions[VAR]. Any $(VAR) substring in string for which VAR is not a key in the expansions dict will remain in the returned string. """ matches = _xcode_variable_re.findall(string) if matches is None: return string matches.reverse() for match in matches: (to_replace, variable) = match if not variable in expansions: continue replacement = expansions[variable] string = re.sub(re.escape(to_replace), replacement, string) return string _xcode_define_re = re.compile(r'([\\\"\' ])') def EscapeXcodeDefine(s): """We must escape the defines that we give to XCode so that it knows not to split on spaces and to respect backslash and quote literals. However, we must not quote the define, or Xcode will incorrectly intepret variables especially $(inherited).""" return re.sub(_xcode_define_re, r'\\\1', s) def PerformBuild(data, configurations, params): options = params['options'] for build_file, build_file_dict in data.items(): (build_file_root, build_file_ext) = os.path.splitext(build_file) if build_file_ext != '.gyp': continue xcodeproj_path = build_file_root + options.suffix + '.xcodeproj' if options.generator_output: xcodeproj_path = os.path.join(options.generator_output, xcodeproj_path) for config in configurations: arguments = ['xcodebuild', '-project', xcodeproj_path] arguments += ['-configuration', config] print("Building [%s]: %s" % (config, arguments)) subprocess.check_call(arguments) def CalculateGeneratorInputInfo(params): toplevel = params['options'].toplevel_dir if params.get('flavor') == 'ninja': generator_dir = os.path.relpath(params['options'].generator_output or '.') output_dir = params.get('generator_flags', {}).get('output_dir', 'out') output_dir = os.path.normpath(os.path.join(generator_dir, output_dir)) qualified_out_dir = os.path.normpath(os.path.join( toplevel, output_dir, 'gypfiles-xcode-ninja')) else: output_dir = os.path.normpath(os.path.join(toplevel, 'xcodebuild')) qualified_out_dir = os.path.normpath(os.path.join( toplevel, output_dir, 'gypfiles')) global generator_filelist_paths generator_filelist_paths = { 'toplevel': toplevel, 'qualified_out_dir': qualified_out_dir, } def GenerateOutput(target_list, target_dicts, data, params): # Optionally configure each spec to use ninja as the external builder. ninja_wrapper = params.get('flavor') == 'ninja' if ninja_wrapper: (target_list, target_dicts, data) = \ gyp.xcode_ninja.CreateWrapper(target_list, target_dicts, data, params) options = params['options'] generator_flags = params.get('generator_flags', {}) parallel_builds = generator_flags.get('xcode_parallel_builds', True) serialize_all_tests = \ generator_flags.get('xcode_serialize_all_test_runs', True) upgrade_check_project_version = \ generator_flags.get('xcode_upgrade_check_project_version', None) # Format upgrade_check_project_version with leading zeros as needed. if upgrade_check_project_version: upgrade_check_project_version = str(upgrade_check_project_version) while len(upgrade_check_project_version) < 4: upgrade_check_project_version = '0' + upgrade_check_project_version skip_excluded_files = \ not generator_flags.get('xcode_list_excluded_files', True) xcode_projects = {} for build_file, build_file_dict in data.items(): (build_file_root, build_file_ext) = os.path.splitext(build_file) if build_file_ext != '.gyp': continue xcodeproj_path = build_file_root + options.suffix + '.xcodeproj' if options.generator_output: xcodeproj_path = os.path.join(options.generator_output, xcodeproj_path) xcp = XcodeProject(build_file, xcodeproj_path, build_file_dict) xcode_projects[build_file] = xcp pbxp = xcp.project # Set project-level attributes from multiple options project_attributes = {} if parallel_builds: project_attributes['BuildIndependentTargetsInParallel'] = 'YES' if upgrade_check_project_version: project_attributes['LastUpgradeCheck'] = upgrade_check_project_version project_attributes['LastTestingUpgradeCheck'] = \ upgrade_check_project_version project_attributes['LastSwiftUpdateCheck'] = \ upgrade_check_project_version pbxp.SetProperty('attributes', project_attributes) # Add gyp/gypi files to project if not generator_flags.get('standalone'): main_group = pbxp.GetProperty('mainGroup') build_group = gyp.xcodeproj_file.PBXGroup({'name': 'Build'}) main_group.AppendChild(build_group) for included_file in build_file_dict['included_files']: build_group.AddOrGetFileByPath(included_file, False) xcode_targets = {} xcode_target_to_target_dict = {} for qualified_target in target_list: [build_file, target_name, toolset] = \ gyp.common.ParseQualifiedTarget(qualified_target) spec = target_dicts[qualified_target] if spec['toolset'] != 'target': raise Exception( 'Multiple toolsets not supported in xcode build (target %s)' % qualified_target) configuration_names = [spec['default_configuration']] for configuration_name in sorted(spec['configurations'].keys()): if configuration_name not in configuration_names: configuration_names.append(configuration_name) xcp = xcode_projects[build_file] pbxp = xcp.project # Set up the configurations for the target according to the list of names # supplied. xccl = CreateXCConfigurationList(configuration_names) # Create an XCTarget subclass object for the target. The type with # "+bundle" appended will be used if the target has "mac_bundle" set. # loadable_modules not in a mac_bundle are mapped to # com.googlecode.gyp.xcode.bundle, a pseudo-type that xcode.py interprets # to create a single-file mh_bundle. _types = { 'executable': 'com.apple.product-type.tool', 'loadable_module': 'com.googlecode.gyp.xcode.bundle', 'shared_library': 'com.apple.product-type.library.dynamic', 'static_library': 'com.apple.product-type.library.static', 'mac_kernel_extension': 'com.apple.product-type.kernel-extension', 'executable+bundle': 'com.apple.product-type.application', 'loadable_module+bundle': 'com.apple.product-type.bundle', 'loadable_module+xctest': 'com.apple.product-type.bundle.unit-test', 'shared_library+bundle': 'com.apple.product-type.framework', 'executable+extension+bundle': 'com.apple.product-type.app-extension', 'executable+watch+extension+bundle': 'com.apple.product-type.watchkit-extension', 'executable+watch+bundle': 'com.apple.product-type.application.watchapp', 'mac_kernel_extension+bundle': 'com.apple.product-type.kernel-extension', } target_properties = { 'buildConfigurationList': xccl, 'name': target_name, } type = spec['type'] is_xctest = int(spec.get('mac_xctest_bundle', 0)) is_bundle = int(spec.get('mac_bundle', 0)) or is_xctest is_app_extension = int(spec.get('ios_app_extension', 0)) is_watchkit_extension = int(spec.get('ios_watchkit_extension', 0)) is_watch_app = int(spec.get('ios_watch_app', 0)) if type != 'none': type_bundle_key = type if is_xctest: type_bundle_key += '+xctest' assert type == 'loadable_module', ( 'mac_xctest_bundle targets must have type loadable_module ' '(target %s)' % target_name) elif is_app_extension: assert is_bundle, ('ios_app_extension flag requires mac_bundle ' '(target %s)' % target_name) type_bundle_key += '+extension+bundle' elif is_watchkit_extension: assert is_bundle, ('ios_watchkit_extension flag requires mac_bundle ' '(target %s)' % target_name) type_bundle_key += '+watch+extension+bundle' elif is_watch_app: assert is_bundle, ('ios_watch_app flag requires mac_bundle ' '(target %s)' % target_name) type_bundle_key += '+watch+bundle' elif is_bundle: type_bundle_key += '+bundle' xctarget_type = gyp.xcodeproj_file.PBXNativeTarget try: target_properties['productType'] = _types[type_bundle_key] except KeyError as e: gyp.common.ExceptionAppend(e, "-- unknown product type while " "writing target %s" % target_name) raise else: xctarget_type = gyp.xcodeproj_file.PBXAggregateTarget assert not is_bundle, ( 'mac_bundle targets cannot have type none (target "%s")' % target_name) assert not is_xctest, ( 'mac_xctest_bundle targets cannot have type none (target "%s")' % target_name) target_product_name = spec.get('product_name') if target_product_name is not None: target_properties['productName'] = target_product_name xct = xctarget_type(target_properties, parent=pbxp, force_outdir=spec.get('product_dir'), force_prefix=spec.get('product_prefix'), force_extension=spec.get('product_extension')) pbxp.AppendProperty('targets', xct) xcode_targets[qualified_target] = xct xcode_target_to_target_dict[xct] = spec spec_actions = spec.get('actions', []) spec_rules = spec.get('rules', []) # Xcode has some "issues" with checking dependencies for the "Compile # sources" step with any source files/headers generated by actions/rules. # To work around this, if a target is building anything directly (not # type "none"), then a second target is used to run the GYP actions/rules # and is made a dependency of this target. This way the work is done # before the dependency checks for what should be recompiled. support_xct = None # The Xcode "issues" don't affect xcode-ninja builds, since the dependency # logic all happens in ninja. Don't bother creating the extra targets in # that case. if type != 'none' and (spec_actions or spec_rules) and not ninja_wrapper: support_xccl = CreateXCConfigurationList(configuration_names) support_target_suffix = generator_flags.get( 'support_target_suffix', ' Support') support_target_properties = { 'buildConfigurationList': support_xccl, 'name': target_name + support_target_suffix, } if target_product_name: support_target_properties['productName'] = \ target_product_name + ' Support' support_xct = \ gyp.xcodeproj_file.PBXAggregateTarget(support_target_properties, parent=pbxp) pbxp.AppendProperty('targets', support_xct) xct.AddDependency(support_xct) # Hang the support target off the main target so it can be tested/found # by the generator during Finalize. xct.support_target = support_xct prebuild_index = 0 # Add custom shell script phases for "actions" sections. for action in spec_actions: # There's no need to write anything into the script to ensure that the # output directories already exist, because Xcode will look at the # declared outputs and automatically ensure that they exist for us. # Do we have a message to print when this action runs? message = action.get('message') if message: message = 'echo note: ' + gyp.common.EncodePOSIXShellArgument(message) else: message = '' # Turn the list into a string that can be passed to a shell. action_string = gyp.common.EncodePOSIXShellList(action['action']) # Convert Xcode-type variable references to sh-compatible environment # variable references. message_sh = gyp.xcodeproj_file.ConvertVariablesToShellSyntax(message) action_string_sh = gyp.xcodeproj_file.ConvertVariablesToShellSyntax( action_string) script = '' # Include the optional message if message_sh: script += message_sh + '\n' # Be sure the script runs in exec, and that if exec fails, the script # exits signalling an error. script += 'exec ' + action_string_sh + '\nexit 1\n' ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({ 'inputPaths': action['inputs'], 'name': 'Action "' + action['action_name'] + '"', 'outputPaths': action['outputs'], 'shellScript': script, 'showEnvVarsInLog': 0, }) if support_xct: support_xct.AppendProperty('buildPhases', ssbp) else: # TODO(mark): this assumes too much knowledge of the internals of # xcodeproj_file; some of these smarts should move into xcodeproj_file # itself. xct._properties['buildPhases'].insert(prebuild_index, ssbp) prebuild_index = prebuild_index + 1 # TODO(mark): Should verify that at most one of these is specified. if int(action.get('process_outputs_as_sources', False)): for output in action['outputs']: AddSourceToTarget(output, type, pbxp, xct) if int(action.get('process_outputs_as_mac_bundle_resources', False)): for output in action['outputs']: AddResourceToTarget(output, pbxp, xct) # tgt_mac_bundle_resources holds the list of bundle resources so # the rule processing can check against it. if is_bundle: tgt_mac_bundle_resources = spec.get('mac_bundle_resources', []) else: tgt_mac_bundle_resources = [] # Add custom shell script phases driving "make" for "rules" sections. # # Xcode's built-in rule support is almost powerful enough to use directly, # but there are a few significant deficiencies that render them unusable. # There are workarounds for some of its inadequacies, but in aggregate, # the workarounds added complexity to the generator, and some workarounds # actually require input files to be crafted more carefully than I'd like. # Consequently, until Xcode rules are made more capable, "rules" input # sections will be handled in Xcode output by shell script build phases # performed prior to the compilation phase. # # The following problems with Xcode rules were found. The numbers are # Apple radar IDs. I hope that these shortcomings are addressed, I really # liked having the rules handled directly in Xcode during the period that # I was prototyping this. # # 6588600 Xcode compiles custom script rule outputs too soon, compilation # fails. This occurs when rule outputs from distinct inputs are # interdependent. The only workaround is to put rules and their # inputs in a separate target from the one that compiles the rule # outputs. This requires input file cooperation and it means that # process_outputs_as_sources is unusable. # 6584932 Need to declare that custom rule outputs should be excluded from # compilation. A possible workaround is to lie to Xcode about a # rule's output, giving it a dummy file it doesn't know how to # compile. The rule action script would need to touch the dummy. # 6584839 I need a way to declare additional inputs to a custom rule. # A possible workaround is a shell script phase prior to # compilation that touches a rule's primary input files if any # would-be additional inputs are newer than the output. Modifying # the source tree - even just modification times - feels dirty. # 6564240 Xcode "custom script" build rules always dump all environment # variables. This is a low-prioroty problem and is not a # show-stopper. rules_by_ext = {} for rule in spec_rules: rules_by_ext[rule['extension']] = rule # First, some definitions: # # A "rule source" is a file that was listed in a target's "sources" # list and will have a rule applied to it on the basis of matching the # rule's "extensions" attribute. Rule sources are direct inputs to # rules. # # Rule definitions may specify additional inputs in their "inputs" # attribute. These additional inputs are used for dependency tracking # purposes. # # A "concrete output" is a rule output with input-dependent variables # resolved. For example, given a rule with: # 'extension': 'ext', 'outputs': ['$(INPUT_FILE_BASE).cc'], # if the target's "sources" list contained "one.ext" and "two.ext", # the "concrete output" for rule input "two.ext" would be "two.cc". If # a rule specifies multiple outputs, each input file that the rule is # applied to will have the same number of concrete outputs. # # If any concrete outputs are outdated or missing relative to their # corresponding rule_source or to any specified additional input, the # rule action must be performed to generate the concrete outputs. # concrete_outputs_by_rule_source will have an item at the same index # as the rule['rule_sources'] that it corresponds to. Each item is a # list of all of the concrete outputs for the rule_source. concrete_outputs_by_rule_source = [] # concrete_outputs_all is a flat list of all concrete outputs that this # rule is able to produce, given the known set of input files # (rule_sources) that apply to it. concrete_outputs_all = [] # messages & actions are keyed by the same indices as rule['rule_sources'] # and concrete_outputs_by_rule_source. They contain the message and # action to perform after resolving input-dependent variables. The # message is optional, in which case None is stored for each rule source. messages = [] actions = [] for rule_source in rule.get('rule_sources', []): rule_source_dirname, rule_source_basename = \ posixpath.split(rule_source) (rule_source_root, rule_source_ext) = \ posixpath.splitext(rule_source_basename) # These are the same variable names that Xcode uses for its own native # rule support. Because Xcode's rule engine is not being used, they # need to be expanded as they are written to the makefile. rule_input_dict = { 'INPUT_FILE_BASE': rule_source_root, 'INPUT_FILE_SUFFIX': rule_source_ext, 'INPUT_FILE_NAME': rule_source_basename, 'INPUT_FILE_PATH': rule_source, 'INPUT_FILE_DIRNAME': rule_source_dirname, } concrete_outputs_for_this_rule_source = [] for output in rule.get('outputs', []): # Fortunately, Xcode and make both use $(VAR) format for their # variables, so the expansion is the only transformation necessary. # Any remaning $(VAR)-type variables in the string can be given # directly to make, which will pick up the correct settings from # what Xcode puts into the environment. concrete_output = ExpandXcodeVariables(output, rule_input_dict) concrete_outputs_for_this_rule_source.append(concrete_output) # Add all concrete outputs to the project. pbxp.AddOrGetFileInRootGroup(concrete_output) concrete_outputs_by_rule_source.append( \ concrete_outputs_for_this_rule_source) concrete_outputs_all.extend(concrete_outputs_for_this_rule_source) # TODO(mark): Should verify that at most one of these is specified. if int(rule.get('process_outputs_as_sources', False)): for output in concrete_outputs_for_this_rule_source: AddSourceToTarget(output, type, pbxp, xct) # If the file came from the mac_bundle_resources list or if the rule # is marked to process outputs as bundle resource, do so. was_mac_bundle_resource = rule_source in tgt_mac_bundle_resources if was_mac_bundle_resource or \ int(rule.get('process_outputs_as_mac_bundle_resources', False)): for output in concrete_outputs_for_this_rule_source: AddResourceToTarget(output, pbxp, xct) # Do we have a message to print when this rule runs? message = rule.get('message') if message: message = gyp.common.EncodePOSIXShellArgument(message) message = ExpandXcodeVariables(message, rule_input_dict) messages.append(message) # Turn the list into a string that can be passed to a shell. action_string = gyp.common.EncodePOSIXShellList(rule['action']) action = ExpandXcodeVariables(action_string, rule_input_dict) actions.append(action) if len(concrete_outputs_all) > 0: # TODO(mark): There's a possibility for collision here. Consider # target "t" rule "A_r" and target "t_A" rule "r". makefile_name = '%s.make' % re.sub( '[^a-zA-Z0-9_]', '_' , '%s_%s' % (target_name, rule['rule_name'])) makefile_path = os.path.join(xcode_projects[build_file].path, makefile_name) # TODO(mark): try/close? Write to a temporary file and swap it only # if it's got changes? makefile = open(makefile_path, 'wb') # make will build the first target in the makefile by default. By # convention, it's called "all". List all (or at least one) # concrete output for each rule source as a prerequisite of the "all" # target. makefile.write('all: \\\n') for concrete_output_index in \ range(0, len(concrete_outputs_by_rule_source)): # Only list the first (index [0]) concrete output of each input # in the "all" target. Otherwise, a parallel make (-j > 1) would # attempt to process each input multiple times simultaneously. # Otherwise, "all" could just contain the entire list of # concrete_outputs_all. concrete_output = \ concrete_outputs_by_rule_source[concrete_output_index][0] if concrete_output_index == len(concrete_outputs_by_rule_source) - 1: eol = '' else: eol = ' \\' makefile.write(' %s%s\n' % (concrete_output, eol)) for (rule_source, concrete_outputs, message, action) in \ zip(rule['rule_sources'], concrete_outputs_by_rule_source, messages, actions): makefile.write('\n') # Add a rule that declares it can build each concrete output of a # rule source. Collect the names of the directories that are # required. concrete_output_dirs = [] for concrete_output_index in range(0, len(concrete_outputs)): concrete_output = concrete_outputs[concrete_output_index] if concrete_output_index == 0: bol = '' else: bol = ' ' makefile.write('%s%s \\\n' % (bol, concrete_output)) concrete_output_dir = posixpath.dirname(concrete_output) if (concrete_output_dir and concrete_output_dir not in concrete_output_dirs): concrete_output_dirs.append(concrete_output_dir) makefile.write(' : \\\n') # The prerequisites for this rule are the rule source itself and # the set of additional rule inputs, if any. prerequisites = [rule_source] prerequisites.extend(rule.get('inputs', [])) for prerequisite_index in range(0, len(prerequisites)): prerequisite = prerequisites[prerequisite_index] if prerequisite_index == len(prerequisites) - 1: eol = '' else: eol = ' \\' makefile.write(' %s%s\n' % (prerequisite, eol)) # Make sure that output directories exist before executing the rule # action. if len(concrete_output_dirs) > 0: makefile.write('\t@mkdir -p "%s"\n' % '" "'.join(concrete_output_dirs)) # The rule message and action have already had the necessary variable # substitutions performed. if message: # Mark it with note: so Xcode picks it up in build output. makefile.write('\t@echo note: %s\n' % message) makefile.write('\t%s\n' % action) makefile.close() # It might be nice to ensure that needed output directories exist # here rather than in each target in the Makefile, but that wouldn't # work if there ever was a concrete output that had an input-dependent # variable anywhere other than in the leaf position. # Don't declare any inputPaths or outputPaths. If they're present, # Xcode will provide a slight optimization by only running the script # phase if any output is missing or outdated relative to any input. # Unfortunately, it will also assume that all outputs are touched by # the script, and if the outputs serve as files in a compilation # phase, they will be unconditionally rebuilt. Since make might not # rebuild everything that could be declared here as an output, this # extra compilation activity is unnecessary. With inputPaths and # outputPaths not supplied, make will always be called, but it knows # enough to not do anything when everything is up-to-date. # To help speed things up, pass -j COUNT to make so it does some work # in parallel. Don't use ncpus because Xcode will build ncpus targets # in parallel and if each target happens to have a rules step, there # would be ncpus^2 things going. With a machine that has 2 quad-core # Xeons, a build can quickly run out of processes based on # scheduling/other tasks, and randomly failing builds are no good. script = \ """JOB_COUNT="$(/usr/sbin/sysctl -n hw.ncpu)" if [ "${JOB_COUNT}" -gt 4 ]; then JOB_COUNT=4 fi exec xcrun make -f "${PROJECT_FILE_PATH}/%s" -j "${JOB_COUNT}" exit 1 """ % makefile_name ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({ 'name': 'Rule "' + rule['rule_name'] + '"', 'shellScript': script, 'showEnvVarsInLog': 0, }) if support_xct: support_xct.AppendProperty('buildPhases', ssbp) else: # TODO(mark): this assumes too much knowledge of the internals of # xcodeproj_file; some of these smarts should move into xcodeproj_file # itself. xct._properties['buildPhases'].insert(prebuild_index, ssbp) prebuild_index = prebuild_index + 1 # Extra rule inputs also go into the project file. Concrete outputs were # already added when they were computed. groups = ['inputs', 'inputs_excluded'] if skip_excluded_files: groups = [x for x in groups if not x.endswith('_excluded')] for group in groups: for item in rule.get(group, []): pbxp.AddOrGetFileInRootGroup(item) # Add "sources". for source in spec.get('sources', []): (source_root, source_extension) = posixpath.splitext(source) if source_extension[1:] not in rules_by_ext: # AddSourceToTarget will add the file to a root group if it's not # already there. AddSourceToTarget(source, type, pbxp, xct) else: pbxp.AddOrGetFileInRootGroup(source) # Add "mac_bundle_resources" and "mac_framework_private_headers" if # it's a bundle of any type. if is_bundle: for resource in tgt_mac_bundle_resources: (resource_root, resource_extension) = posixpath.splitext(resource) if resource_extension[1:] not in rules_by_ext: AddResourceToTarget(resource, pbxp, xct) else: pbxp.AddOrGetFileInRootGroup(resource) for header in spec.get('mac_framework_private_headers', []): AddHeaderToTarget(header, pbxp, xct, False) # Add "mac_framework_headers". These can be valid for both frameworks # and static libraries. if is_bundle or type == 'static_library': for header in spec.get('mac_framework_headers', []): AddHeaderToTarget(header, pbxp, xct, True) # Add "copies". pbxcp_dict = {} for copy_group in spec.get('copies', []): dest = copy_group['destination'] if dest[0] not in ('/', '$'): # Relative paths are relative to $(SRCROOT). dest = '$(SRCROOT)/' + dest code_sign = int(copy_group.get('xcode_code_sign', 0)) settings = (None, '{ATTRIBUTES = (CodeSignOnCopy, ); }')[code_sign] # Coalesce multiple "copies" sections in the same target with the same # "destination" property into the same PBXCopyFilesBuildPhase, otherwise # they'll wind up with ID collisions. pbxcp = pbxcp_dict.get(dest, None) if pbxcp is None: pbxcp = gyp.xcodeproj_file.PBXCopyFilesBuildPhase({ 'name': 'Copy to ' + copy_group['destination'] }, parent=xct) pbxcp.SetDestination(dest) # TODO(mark): The usual comment about this knowing too much about # gyp.xcodeproj_file internals applies. xct._properties['buildPhases'].insert(prebuild_index, pbxcp) pbxcp_dict[dest] = pbxcp for file in copy_group['files']: pbxcp.AddFile(file, settings) # Excluded files can also go into the project file. if not skip_excluded_files: for key in ['sources', 'mac_bundle_resources', 'mac_framework_headers', 'mac_framework_private_headers']: excluded_key = key + '_excluded' for item in spec.get(excluded_key, []): pbxp.AddOrGetFileInRootGroup(item) # So can "inputs" and "outputs" sections of "actions" groups. groups = ['inputs', 'inputs_excluded', 'outputs', 'outputs_excluded'] if skip_excluded_files: groups = [x for x in groups if not x.endswith('_excluded')] for action in spec.get('actions', []): for group in groups: for item in action.get(group, []): # Exclude anything in BUILT_PRODUCTS_DIR. They're products, not # sources. if not item.startswith('$(BUILT_PRODUCTS_DIR)/'): pbxp.AddOrGetFileInRootGroup(item) for postbuild in spec.get('postbuilds', []): action_string_sh = gyp.common.EncodePOSIXShellList(postbuild['action']) script = 'exec ' + action_string_sh + '\nexit 1\n' # Make the postbuild step depend on the output of ld or ar from this # target. Apparently putting the script step after the link step isn't # sufficient to ensure proper ordering in all cases. With an input # declared but no outputs, the script step should run every time, as # desired. ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({ 'inputPaths': ['$(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_PATH)'], 'name': 'Postbuild "' + postbuild['postbuild_name'] + '"', 'shellScript': script, 'showEnvVarsInLog': 0, }) xct.AppendProperty('buildPhases', ssbp) # Add dependencies before libraries, because adding a dependency may imply # adding a library. It's preferable to keep dependencies listed first # during a link phase so that they can override symbols that would # otherwise be provided by libraries, which will usually include system # libraries. On some systems, ld is finicky and even requires the # libraries to be ordered in such a way that unresolved symbols in # earlier-listed libraries may only be resolved by later-listed libraries. # The Mac linker doesn't work that way, but other platforms do, and so # their linker invocations need to be constructed in this way. There's # no compelling reason for Xcode's linker invocations to differ. if 'dependencies' in spec: for dependency in spec['dependencies']: xct.AddDependency(xcode_targets[dependency]) # The support project also gets the dependencies (in case they are # needed for the actions/rules to work). if support_xct: support_xct.AddDependency(xcode_targets[dependency]) if 'libraries' in spec: for library in spec['libraries']: xct.FrameworksPhase().AddFile(library) # Add the library's directory to LIBRARY_SEARCH_PATHS if necessary. # I wish Xcode handled this automatically. library_dir = posixpath.dirname(library) if library_dir not in xcode_standard_library_dirs and ( not xct.HasBuildSetting(_library_search_paths_var) or library_dir not in xct.GetBuildSetting(_library_search_paths_var)): xct.AppendBuildSetting(_library_search_paths_var, library_dir) for configuration_name in configuration_names: configuration = spec['configurations'][configuration_name] xcbc = xct.ConfigurationNamed(configuration_name) for include_dir in configuration.get('mac_framework_dirs', []): xcbc.AppendBuildSetting('FRAMEWORK_SEARCH_PATHS', include_dir) for include_dir in configuration.get('include_dirs', []): xcbc.AppendBuildSetting('HEADER_SEARCH_PATHS', include_dir) for library_dir in configuration.get('library_dirs', []): if library_dir not in xcode_standard_library_dirs and ( not xcbc.HasBuildSetting(_library_search_paths_var) or library_dir not in xcbc.GetBuildSetting(_library_search_paths_var)): xcbc.AppendBuildSetting(_library_search_paths_var, library_dir) if 'defines' in configuration: for define in configuration['defines']: set_define = EscapeXcodeDefine(define) xcbc.AppendBuildSetting('GCC_PREPROCESSOR_DEFINITIONS', set_define) if 'xcode_settings' in configuration: for xck, xcv in configuration['xcode_settings'].items(): xcbc.SetBuildSetting(xck, xcv) if 'xcode_config_file' in configuration: config_ref = pbxp.AddOrGetFileInRootGroup( configuration['xcode_config_file']) xcbc.SetBaseConfiguration(config_ref) build_files = [] for build_file, build_file_dict in data.items(): if build_file.endswith('.gyp'): build_files.append(build_file) for build_file in build_files: xcode_projects[build_file].Finalize1(xcode_targets, serialize_all_tests) for build_file in build_files: xcode_projects[build_file].Finalize2(xcode_targets, xcode_target_to_target_dict) for build_file in build_files: xcode_projects[build_file].Write() PK!y>ww analyzer.pynu[# Copyright (c) 2014 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ This script is intended for use as a GYP_GENERATOR. It takes as input (by way of the generator flag config_path) the path of a json file that dictates the files and targets to search for. The following keys are supported: files: list of paths (relative) of the files to search for. test_targets: unqualified target names to search for. Any target in this list that depends upon a file in |files| is output regardless of the type of target or chain of dependencies. additional_compile_targets: Unqualified targets to search for in addition to test_targets. Targets in the combined list that depend upon a file in |files| are not necessarily output. For example, if the target is of type none then the target is not output (but one of the descendants of the target will be). The following is output: error: only supplied if there is an error. compile_targets: minimal set of targets that directly or indirectly (for targets of type none) depend on the files in |files| and is one of the supplied targets or a target that one of the supplied targets depends on. The expectation is this set of targets is passed into a build step. This list always contains the output of test_targets as well. test_targets: set of targets from the supplied |test_targets| that either directly or indirectly depend upon a file in |files|. This list if useful if additional processing needs to be done for certain targets after the build, such as running tests. status: outputs one of three values: none of the supplied files were found, one of the include files changed so that it should be assumed everything changed (in this case test_targets and compile_targets are not output) or at least one file was found. invalid_targets: list of supplied targets that were not found. Example: Consider a graph like the following: A D / \ B C A depends upon both B and C, A is of type none and B and C are executables. D is an executable, has no dependencies and nothing depends on it. If |additional_compile_targets| = ["A"], |test_targets| = ["B", "C"] and files = ["b.cc", "d.cc"] (B depends upon b.cc and D depends upon d.cc), then the following is output: |compile_targets| = ["B"] B must built as it depends upon the changed file b.cc and the supplied target A depends upon it. A is not output as a build_target as it is of type none with no rules and actions. |test_targets| = ["B"] B directly depends upon the change file b.cc. Even though the file d.cc, which D depends upon, has changed D is not output as it was not supplied by way of |additional_compile_targets| or |test_targets|. If the generator flag analyzer_output_path is specified, output is written there. Otherwise output is written to stdout. In Gyp the "all" target is shorthand for the root targets in the files passed to gyp. For example, if file "a.gyp" contains targets "a1" and "a2", and file "b.gyp" contains targets "b1" and "b2" and "a2" has a dependency on "b2" and gyp is supplied "a.gyp" then "all" consists of "a1" and "a2". Notice that "b1" and "b2" are not in the "all" target as "b.gyp" was not directly supplied to gyp. OTOH if both "a.gyp" and "b.gyp" are supplied to gyp then the "all" target includes "b1" and "b2". """ from __future__ import print_function import gyp.common import gyp.ninja_syntax as ninja_syntax import json import os import posixpath import sys debug = False found_dependency_string = 'Found dependency' no_dependency_string = 'No dependencies' # Status when it should be assumed that everything has changed. all_changed_string = 'Found dependency (all)' # MatchStatus is used indicate if and how a target depends upon the supplied # sources. # The target's sources contain one of the supplied paths. MATCH_STATUS_MATCHES = 1 # The target has a dependency on another target that contains one of the # supplied paths. MATCH_STATUS_MATCHES_BY_DEPENDENCY = 2 # The target's sources weren't in the supplied paths and none of the target's # dependencies depend upon a target that matched. MATCH_STATUS_DOESNT_MATCH = 3 # The target doesn't contain the source, but the dependent targets have not yet # been visited to determine a more specific status yet. MATCH_STATUS_TBD = 4 generator_supports_multiple_toolsets = gyp.common.CrossCompileRequested() generator_wants_static_library_dependencies_adjusted = False generator_default_variables = { } for dirname in ['INTERMEDIATE_DIR', 'SHARED_INTERMEDIATE_DIR', 'PRODUCT_DIR', 'LIB_DIR', 'SHARED_LIB_DIR']: generator_default_variables[dirname] = '!!!' for unused in ['RULE_INPUT_PATH', 'RULE_INPUT_ROOT', 'RULE_INPUT_NAME', 'RULE_INPUT_DIRNAME', 'RULE_INPUT_EXT', 'EXECUTABLE_PREFIX', 'EXECUTABLE_SUFFIX', 'STATIC_LIB_PREFIX', 'STATIC_LIB_SUFFIX', 'SHARED_LIB_PREFIX', 'SHARED_LIB_SUFFIX', 'CONFIGURATION_NAME']: generator_default_variables[unused] = '' def _ToGypPath(path): """Converts a path to the format used by gyp.""" if os.sep == '\\' and os.altsep == '/': return path.replace('\\', '/') return path def _ResolveParent(path, base_path_components): """Resolves |path|, which starts with at least one '../'. Returns an empty string if the path shouldn't be considered. See _AddSources() for a description of |base_path_components|.""" depth = 0 while path.startswith('../'): depth += 1 path = path[3:] # Relative includes may go outside the source tree. For example, an action may # have inputs in /usr/include, which are not in the source tree. if depth > len(base_path_components): return '' if depth == len(base_path_components): return path return '/'.join(base_path_components[0:len(base_path_components) - depth]) + \ '/' + path def _AddSources(sources, base_path, base_path_components, result): """Extracts valid sources from |sources| and adds them to |result|. Each source file is relative to |base_path|, but may contain '..'. To make resolving '..' easier |base_path_components| contains each of the directories in |base_path|. Additionally each source may contain variables. Such sources are ignored as it is assumed dependencies on them are expressed and tracked in some other means.""" # NOTE: gyp paths are always posix style. for source in sources: if not len(source) or source.startswith('!!!') or source.startswith('$'): continue # variable expansion may lead to //. org_source = source source = source[0] + source[1:].replace('//', '/') if source.startswith('../'): source = _ResolveParent(source, base_path_components) if len(source): result.append(source) continue result.append(base_path + source) if debug: print('AddSource', org_source, result[len(result) - 1]) def _ExtractSourcesFromAction(action, base_path, base_path_components, results): if 'inputs' in action: _AddSources(action['inputs'], base_path, base_path_components, results) def _ToLocalPath(toplevel_dir, path): """Converts |path| to a path relative to |toplevel_dir|.""" if path == toplevel_dir: return '' if path.startswith(toplevel_dir + '/'): return path[len(toplevel_dir) + len('/'):] return path def _ExtractSources(target, target_dict, toplevel_dir): # |target| is either absolute or relative and in the format of the OS. Gyp # source paths are always posix. Convert |target| to a posix path relative to # |toplevel_dir_|. This is done to make it easy to build source paths. base_path = posixpath.dirname(_ToLocalPath(toplevel_dir, _ToGypPath(target))) base_path_components = base_path.split('/') # Add a trailing '/' so that _AddSources() can easily build paths. if len(base_path): base_path += '/' if debug: print('ExtractSources', target, base_path) results = [] if 'sources' in target_dict: _AddSources(target_dict['sources'], base_path, base_path_components, results) # Include the inputs from any actions. Any changes to these affect the # resulting output. if 'actions' in target_dict: for action in target_dict['actions']: _ExtractSourcesFromAction(action, base_path, base_path_components, results) if 'rules' in target_dict: for rule in target_dict['rules']: _ExtractSourcesFromAction(rule, base_path, base_path_components, results) return results class Target(object): """Holds information about a particular target: deps: set of Targets this Target depends upon. This is not recursive, only the direct dependent Targets. match_status: one of the MatchStatus values. back_deps: set of Targets that have a dependency on this Target. visited: used during iteration to indicate whether we've visited this target. This is used for two iterations, once in building the set of Targets and again in _GetBuildTargets(). name: fully qualified name of the target. requires_build: True if the target type is such that it needs to be built. See _DoesTargetTypeRequireBuild for details. added_to_compile_targets: used when determining if the target was added to the set of targets that needs to be built. in_roots: true if this target is a descendant of one of the root nodes. is_executable: true if the type of target is executable. is_static_library: true if the type of target is static_library. is_or_has_linked_ancestor: true if the target does a link (eg executable), or if there is a target in back_deps that does a link.""" def __init__(self, name): self.deps = set() self.match_status = MATCH_STATUS_TBD self.back_deps = set() self.name = name # TODO(sky): I don't like hanging this off Target. This state is specific # to certain functions and should be isolated there. self.visited = False self.requires_build = False self.added_to_compile_targets = False self.in_roots = False self.is_executable = False self.is_static_library = False self.is_or_has_linked_ancestor = False class Config(object): """Details what we're looking for files: set of files to search for targets: see file description for details.""" def __init__(self): self.files = [] self.targets = set() self.additional_compile_target_names = set() self.test_target_names = set() def Init(self, params): """Initializes Config. This is a separate method as it raises an exception if there is a parse error.""" generator_flags = params.get('generator_flags', {}) config_path = generator_flags.get('config_path', None) if not config_path: return try: f = open(config_path, 'r') config = json.load(f) f.close() except IOError: raise Exception('Unable to open file ' + config_path) except ValueError as e: raise Exception('Unable to parse config file ' + config_path + str(e)) if not isinstance(config, dict): raise Exception('config_path must be a JSON file containing a dictionary') self.files = config.get('files', []) self.additional_compile_target_names = set( config.get('additional_compile_targets', [])) self.test_target_names = set(config.get('test_targets', [])) def _WasBuildFileModified(build_file, data, files, toplevel_dir): """Returns true if the build file |build_file| is either in |files| or one of the files included by |build_file| is in |files|. |toplevel_dir| is the root of the source tree.""" if _ToLocalPath(toplevel_dir, _ToGypPath(build_file)) in files: if debug: print('gyp file modified', build_file) return True # First element of included_files is the file itself. if len(data[build_file]['included_files']) <= 1: return False for include_file in data[build_file]['included_files'][1:]: # |included_files| are relative to the directory of the |build_file|. rel_include_file = \ _ToGypPath(gyp.common.UnrelativePath(include_file, build_file)) if _ToLocalPath(toplevel_dir, rel_include_file) in files: if debug: print('included gyp file modified, gyp_file=', build_file, 'included file=', rel_include_file) return True return False def _GetOrCreateTargetByName(targets, target_name): """Creates or returns the Target at targets[target_name]. If there is no Target for |target_name| one is created. Returns a tuple of whether a new Target was created and the Target.""" if target_name in targets: return False, targets[target_name] target = Target(target_name) targets[target_name] = target return True, target def _DoesTargetTypeRequireBuild(target_dict): """Returns true if the target type is such that it needs to be built.""" # If a 'none' target has rules or actions we assume it requires a build. return bool(target_dict['type'] != 'none' or target_dict.get('actions') or target_dict.get('rules')) def _GenerateTargets(data, target_list, target_dicts, toplevel_dir, files, build_files): """Returns a tuple of the following: . A dictionary mapping from fully qualified name to Target. . A list of the targets that have a source file in |files|. . Targets that constitute the 'all' target. See description at top of file for details on the 'all' target. This sets the |match_status| of the targets that contain any of the source files in |files| to MATCH_STATUS_MATCHES. |toplevel_dir| is the root of the source tree.""" # Maps from target name to Target. name_to_target = {} # Targets that matched. matching_targets = [] # Queue of targets to visit. targets_to_visit = target_list[:] # Maps from build file to a boolean indicating whether the build file is in # |files|. build_file_in_files = {} # Root targets across all files. roots = set() # Set of Targets in |build_files|. build_file_targets = set() while len(targets_to_visit) > 0: target_name = targets_to_visit.pop() created_target, target = _GetOrCreateTargetByName(name_to_target, target_name) if created_target: roots.add(target) elif target.visited: continue target.visited = True target.requires_build = _DoesTargetTypeRequireBuild( target_dicts[target_name]) target_type = target_dicts[target_name]['type'] target.is_executable = target_type == 'executable' target.is_static_library = target_type == 'static_library' target.is_or_has_linked_ancestor = (target_type == 'executable' or target_type == 'shared_library') build_file = gyp.common.ParseQualifiedTarget(target_name)[0] if not build_file in build_file_in_files: build_file_in_files[build_file] = \ _WasBuildFileModified(build_file, data, files, toplevel_dir) if build_file in build_files: build_file_targets.add(target) # If a build file (or any of its included files) is modified we assume all # targets in the file are modified. if build_file_in_files[build_file]: print('matching target from modified build file', target_name) target.match_status = MATCH_STATUS_MATCHES matching_targets.append(target) else: sources = _ExtractSources(target_name, target_dicts[target_name], toplevel_dir) for source in sources: if _ToGypPath(os.path.normpath(source)) in files: print('target', target_name, 'matches', source) target.match_status = MATCH_STATUS_MATCHES matching_targets.append(target) break # Add dependencies to visit as well as updating back pointers for deps. for dep in target_dicts[target_name].get('dependencies', []): targets_to_visit.append(dep) created_dep_target, dep_target = _GetOrCreateTargetByName(name_to_target, dep) if not created_dep_target: roots.discard(dep_target) target.deps.add(dep_target) dep_target.back_deps.add(target) return name_to_target, matching_targets, roots & build_file_targets def _GetUnqualifiedToTargetMapping(all_targets, to_find): """Returns a tuple of the following: . mapping (dictionary) from unqualified name to Target for all the Targets in |to_find|. . any target names not found. If this is empty all targets were found.""" result = {} if not to_find: return {}, [] to_find = set(to_find) for target_name in all_targets.keys(): extracted = gyp.common.ParseQualifiedTarget(target_name) if len(extracted) > 1 and extracted[1] in to_find: to_find.remove(extracted[1]) result[extracted[1]] = all_targets[target_name] if not to_find: return result, [] return result, [x for x in to_find] def _DoesTargetDependOnMatchingTargets(target): """Returns true if |target| or any of its dependencies is one of the targets containing the files supplied as input to analyzer. This updates |matches| of the Targets as it recurses. target: the Target to look for.""" if target.match_status == MATCH_STATUS_DOESNT_MATCH: return False if target.match_status == MATCH_STATUS_MATCHES or \ target.match_status == MATCH_STATUS_MATCHES_BY_DEPENDENCY: return True for dep in target.deps: if _DoesTargetDependOnMatchingTargets(dep): target.match_status = MATCH_STATUS_MATCHES_BY_DEPENDENCY print('\t', target.name, 'matches by dep', dep.name) return True target.match_status = MATCH_STATUS_DOESNT_MATCH return False def _GetTargetsDependingOnMatchingTargets(possible_targets): """Returns the list of Targets in |possible_targets| that depend (either directly on indirectly) on at least one of the targets containing the files supplied as input to analyzer. possible_targets: targets to search from.""" found = [] print('Targets that matched by dependency:') for target in possible_targets: if _DoesTargetDependOnMatchingTargets(target): found.append(target) return found def _AddCompileTargets(target, roots, add_if_no_ancestor, result): """Recurses through all targets that depend on |target|, adding all targets that need to be built (and are in |roots|) to |result|. roots: set of root targets. add_if_no_ancestor: If true and there are no ancestors of |target| then add |target| to |result|. |target| must still be in |roots|. result: targets that need to be built are added here.""" if target.visited: return target.visited = True target.in_roots = target in roots for back_dep_target in target.back_deps: _AddCompileTargets(back_dep_target, roots, False, result) target.added_to_compile_targets |= back_dep_target.added_to_compile_targets target.in_roots |= back_dep_target.in_roots target.is_or_has_linked_ancestor |= ( back_dep_target.is_or_has_linked_ancestor) # Always add 'executable' targets. Even though they may be built by other # targets that depend upon them it makes detection of what is going to be # built easier. # And always add static_libraries that have no dependencies on them from # linkables. This is necessary as the other dependencies on them may be # static libraries themselves, which are not compile time dependencies. if target.in_roots and \ (target.is_executable or (not target.added_to_compile_targets and (add_if_no_ancestor or target.requires_build)) or (target.is_static_library and add_if_no_ancestor and not target.is_or_has_linked_ancestor)): print('\t\tadding to compile targets', target.name, 'executable', target.is_executable, 'added_to_compile_targets', target.added_to_compile_targets, 'add_if_no_ancestor', add_if_no_ancestor, 'requires_build', target.requires_build, 'is_static_library', target.is_static_library, 'is_or_has_linked_ancestor', target.is_or_has_linked_ancestor) result.add(target) target.added_to_compile_targets = True def _GetCompileTargets(matching_targets, supplied_targets): """Returns the set of Targets that require a build. matching_targets: targets that changed and need to be built. supplied_targets: set of targets supplied to analyzer to search from.""" result = set() for target in matching_targets: print('finding compile targets for match', target.name) _AddCompileTargets(target, supplied_targets, True, result) return result def _WriteOutput(params, **values): """Writes the output, either to stdout or a file is specified.""" if 'error' in values: print('Error:', values['error']) if 'status' in values: print(values['status']) if 'targets' in values: values['targets'].sort() print('Supplied targets that depend on changed files:') for target in values['targets']: print('\t', target) if 'invalid_targets' in values: values['invalid_targets'].sort() print('The following targets were not found:') for target in values['invalid_targets']: print('\t', target) if 'build_targets' in values: values['build_targets'].sort() print('Targets that require a build:') for target in values['build_targets']: print('\t', target) if 'compile_targets' in values: values['compile_targets'].sort() print('Targets that need to be built:') for target in values['compile_targets']: print('\t', target) if 'test_targets' in values: values['test_targets'].sort() print('Test targets:') for target in values['test_targets']: print('\t', target) output_path = params.get('generator_flags', {}).get( 'analyzer_output_path', None) if not output_path: print(json.dumps(values)) return try: f = open(output_path, 'w') f.write(json.dumps(values) + '\n') f.close() except IOError as e: print('Error writing to output file', output_path, str(e)) def _WasGypIncludeFileModified(params, files): """Returns true if one of the files in |files| is in the set of included files.""" if params['options'].includes: for include in params['options'].includes: if _ToGypPath(os.path.normpath(include)) in files: print('Include file modified, assuming all changed', include) return True return False def _NamesNotIn(names, mapping): """Returns a list of the values in |names| that are not in |mapping|.""" return [name for name in names if name not in mapping] def _LookupTargets(names, mapping): """Returns a list of the mapping[name] for each value in |names| that is in |mapping|.""" return [mapping[name] for name in names if name in mapping] def CalculateVariables(default_variables, params): """Calculate additional variables for use in the build (called by gyp).""" flavor = gyp.common.GetFlavor(params) if flavor == 'mac': default_variables.setdefault('OS', 'mac') elif flavor == 'win': default_variables.setdefault('OS', 'win') # Copy additional generator configuration data from VS, which is shared # by the Windows Ninja generator. import gyp.generator.msvs as msvs_generator generator_additional_non_configuration_keys = getattr(msvs_generator, 'generator_additional_non_configuration_keys', []) generator_additional_path_sections = getattr(msvs_generator, 'generator_additional_path_sections', []) gyp.msvs_emulation.CalculateCommonVariables(default_variables, params) else: operating_system = flavor if flavor == 'android': operating_system = 'linux' # Keep this legacy behavior for now. default_variables.setdefault('OS', operating_system) class TargetCalculator(object): """Calculates the matching test_targets and matching compile_targets.""" def __init__(self, files, additional_compile_target_names, test_target_names, data, target_list, target_dicts, toplevel_dir, build_files): self._additional_compile_target_names = set(additional_compile_target_names) self._test_target_names = set(test_target_names) self._name_to_target, self._changed_targets, self._root_targets = ( _GenerateTargets(data, target_list, target_dicts, toplevel_dir, frozenset(files), build_files)) self._unqualified_mapping, self.invalid_targets = ( _GetUnqualifiedToTargetMapping(self._name_to_target, self._supplied_target_names_no_all())) def _supplied_target_names(self): return self._additional_compile_target_names | self._test_target_names def _supplied_target_names_no_all(self): """Returns the supplied test targets without 'all'.""" result = self._supplied_target_names() result.discard('all') return result def is_build_impacted(self): """Returns true if the supplied files impact the build at all.""" return self._changed_targets def find_matching_test_target_names(self): """Returns the set of output test targets.""" assert self.is_build_impacted() # Find the test targets first. 'all' is special cased to mean all the # root targets. To deal with all the supplied |test_targets| are expanded # to include the root targets during lookup. If any of the root targets # match, we remove it and replace it with 'all'. test_target_names_no_all = set(self._test_target_names) test_target_names_no_all.discard('all') test_targets_no_all = _LookupTargets(test_target_names_no_all, self._unqualified_mapping) test_target_names_contains_all = 'all' in self._test_target_names if test_target_names_contains_all: test_targets = [x for x in (set(test_targets_no_all) | set(self._root_targets))] else: test_targets = [x for x in test_targets_no_all] print('supplied test_targets') for target_name in self._test_target_names: print('\t', target_name) print('found test_targets') for target in test_targets: print('\t', target.name) print('searching for matching test targets') matching_test_targets = _GetTargetsDependingOnMatchingTargets(test_targets) matching_test_targets_contains_all = (test_target_names_contains_all and set(matching_test_targets) & set(self._root_targets)) if matching_test_targets_contains_all: # Remove any of the targets for all that were not explicitly supplied, # 'all' is subsequentely added to the matching names below. matching_test_targets = [x for x in (set(matching_test_targets) & set(test_targets_no_all))] print('matched test_targets') for target in matching_test_targets: print('\t', target.name) matching_target_names = [gyp.common.ParseQualifiedTarget(target.name)[1] for target in matching_test_targets] if matching_test_targets_contains_all: matching_target_names.append('all') print('\tall') return matching_target_names def find_matching_compile_target_names(self): """Returns the set of output compile targets.""" assert self.is_build_impacted() # Compile targets are found by searching up from changed targets. # Reset the visited status for _GetBuildTargets. for target in self._name_to_target.values(): target.visited = False supplied_targets = _LookupTargets(self._supplied_target_names_no_all(), self._unqualified_mapping) if 'all' in self._supplied_target_names(): supplied_targets = [x for x in (set(supplied_targets) | set(self._root_targets))] print('Supplied test_targets & compile_targets') for target in supplied_targets: print('\t', target.name) print('Finding compile targets') compile_targets = _GetCompileTargets(self._changed_targets, supplied_targets) return [gyp.common.ParseQualifiedTarget(target.name)[1] for target in compile_targets] def GenerateOutput(target_list, target_dicts, data, params): """Called by gyp as the final stage. Outputs results.""" config = Config() try: config.Init(params) if not config.files: raise Exception('Must specify files to analyze via config_path generator ' 'flag') toplevel_dir = _ToGypPath(os.path.abspath(params['options'].toplevel_dir)) if debug: print('toplevel_dir', toplevel_dir) if _WasGypIncludeFileModified(params, config.files): result_dict = { 'status': all_changed_string, 'test_targets': list(config.test_target_names), 'compile_targets': list( config.additional_compile_target_names | config.test_target_names) } _WriteOutput(params, **result_dict) return calculator = TargetCalculator(config.files, config.additional_compile_target_names, config.test_target_names, data, target_list, target_dicts, toplevel_dir, params['build_files']) if not calculator.is_build_impacted(): result_dict = { 'status': no_dependency_string, 'test_targets': [], 'compile_targets': [] } if calculator.invalid_targets: result_dict['invalid_targets'] = calculator.invalid_targets _WriteOutput(params, **result_dict) return test_target_names = calculator.find_matching_test_target_names() compile_target_names = calculator.find_matching_compile_target_names() found_at_least_one_target = compile_target_names or test_target_names result_dict = { 'test_targets': test_target_names, 'status': found_dependency_string if found_at_least_one_target else no_dependency_string, 'compile_targets': list( set(compile_target_names) | set(test_target_names)) } if calculator.invalid_targets: result_dict['invalid_targets'] = calculator.invalid_targets _WriteOutput(params, **result_dict) except Exception as e: _WriteOutput(params, error=str(e)) PK!'ukukmake.pynu[# Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Notes: # # This is all roughly based on the Makefile system used by the Linux # kernel, but is a non-recursive make -- we put the entire dependency # graph in front of make and let it figure it out. # # The code below generates a separate .mk file for each target, but # all are sourced by the top-level Makefile. This means that all # variables in .mk-files clobber one another. Be careful to use := # where appropriate for immediate evaluation, and similarly to watch # that you're not relying on a variable value to last between different # .mk files. # # TODOs: # # Global settings and utility functions are currently stuffed in the # toplevel Makefile. It may make sense to generate some .mk files on # the side to keep the files readable. from __future__ import print_function import os import re import sys import subprocess import gyp import gyp.common import gyp.xcode_emulation from gyp.common import GetEnvironFallback from gyp.common import GypError import hashlib generator_default_variables = { 'EXECUTABLE_PREFIX': '', 'EXECUTABLE_SUFFIX': '', 'STATIC_LIB_PREFIX': 'lib', 'SHARED_LIB_PREFIX': 'lib', 'STATIC_LIB_SUFFIX': '.a', 'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni', 'SHARED_INTERMEDIATE_DIR': '$(obj)/gen', 'PRODUCT_DIR': '$(builddir)', 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python. 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python. 'RULE_INPUT_PATH': '$(abspath $<)', 'RULE_INPUT_EXT': '$(suffix $<)', 'RULE_INPUT_NAME': '$(notdir $<)', 'CONFIGURATION_NAME': '$(BUILDTYPE)', } # Make supports multiple toolsets generator_supports_multiple_toolsets = True # Request sorted dependencies in the order from dependents to dependencies. generator_wants_sorted_dependencies = False # Placates pylint. generator_additional_non_configuration_keys = [] generator_additional_path_sections = [] generator_extra_sources_for_rules = [] generator_filelist_paths = None def CalculateVariables(default_variables, params): """Calculate additional variables for use in the build (called by gyp).""" flavor = gyp.common.GetFlavor(params) if flavor == 'mac': default_variables.setdefault('OS', 'mac') default_variables.setdefault('SHARED_LIB_SUFFIX', '.dylib') default_variables.setdefault('SHARED_LIB_DIR', generator_default_variables['PRODUCT_DIR']) default_variables.setdefault('LIB_DIR', generator_default_variables['PRODUCT_DIR']) # Copy additional generator configuration data from Xcode, which is shared # by the Mac Make generator. import gyp.generator.xcode as xcode_generator global generator_additional_non_configuration_keys generator_additional_non_configuration_keys = getattr(xcode_generator, 'generator_additional_non_configuration_keys', []) global generator_additional_path_sections generator_additional_path_sections = getattr(xcode_generator, 'generator_additional_path_sections', []) global generator_extra_sources_for_rules generator_extra_sources_for_rules = getattr(xcode_generator, 'generator_extra_sources_for_rules', []) COMPILABLE_EXTENSIONS.update({'.m': 'objc', '.mm' : 'objcxx'}) else: operating_system = flavor if flavor == 'android': operating_system = 'linux' # Keep this legacy behavior for now. default_variables.setdefault('OS', operating_system) if flavor == 'aix': default_variables.setdefault('SHARED_LIB_SUFFIX', '.a') else: default_variables.setdefault('SHARED_LIB_SUFFIX', '.so') default_variables.setdefault('SHARED_LIB_DIR','$(builddir)/lib.$(TOOLSET)') default_variables.setdefault('LIB_DIR', '$(obj).$(TOOLSET)') def CalculateGeneratorInputInfo(params): """Calculate the generator specific info that gets fed to input (called by gyp).""" generator_flags = params.get('generator_flags', {}) android_ndk_version = generator_flags.get('android_ndk_version', None) # Android NDK requires a strict link order. if android_ndk_version: global generator_wants_sorted_dependencies generator_wants_sorted_dependencies = True output_dir = params['options'].generator_output or \ params['options'].toplevel_dir builddir_name = generator_flags.get('output_dir', 'out') qualified_out_dir = os.path.normpath(os.path.join( output_dir, builddir_name, 'gypfiles')) global generator_filelist_paths generator_filelist_paths = { 'toplevel': params['options'].toplevel_dir, 'qualified_out_dir': qualified_out_dir, } # The .d checking code below uses these functions: # wildcard, sort, foreach, shell, wordlist # wildcard can handle spaces, the rest can't. # Since I could find no way to make foreach work with spaces in filenames # correctly, the .d files have spaces replaced with another character. The .d # file for # Chromium\ Framework.framework/foo # is for example # out/Release/.deps/out/Release/Chromium?Framework.framework/foo # This is the replacement character. SPACE_REPLACEMENT = '?' LINK_COMMANDS_LINUX = """\ quiet_cmd_alink = AR($(TOOLSET)) $@ cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^) quiet_cmd_alink_thin = AR($(TOOLSET)) $@ cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^) # Due to circular dependencies between libraries :(, we wrap the # special "figure out circular dependencies" flags around the entire # input list during linking. quiet_cmd_link = LINK($(TOOLSET)) $@ cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group # We support two kinds of shared objects (.so): # 1) shared_library, which is just bundling together many dependent libraries # into a link line. # 2) loadable_module, which is generating a module intended for dlopen(). # # They differ only slightly: # In the former case, we want to package all dependent code into the .so. # In the latter case, we want to package just the API exposed by the # outermost module. # This means shared_library uses --whole-archive, while loadable_module doesn't. # (Note that --whole-archive is incompatible with the --start-group used in # normal linking.) # Other shared-object link notes: # - Set SONAME to the library filename so our binaries don't reference # the local, absolute paths used on the link command-line. quiet_cmd_solink = SOLINK($(TOOLSET)) $@ cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS) quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@ cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS) """ LINK_COMMANDS_MAC = """\ quiet_cmd_alink = LIBTOOL-STATIC $@ cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^) quiet_cmd_link = LINK($(TOOLSET)) $@ cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS) quiet_cmd_solink = SOLINK($(TOOLSET)) $@ cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS) quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@ cmd_solink_module = $(LINK.$(TOOLSET)) -bundle $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS) """ LINK_COMMANDS_ANDROID = """\ quiet_cmd_alink = AR($(TOOLSET)) $@ cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^) quiet_cmd_alink_thin = AR($(TOOLSET)) $@ cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^) # Due to circular dependencies between libraries :(, we wrap the # special "figure out circular dependencies" flags around the entire # input list during linking. quiet_cmd_link = LINK($(TOOLSET)) $@ quiet_cmd_link_host = LINK($(TOOLSET)) $@ cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS) cmd_link_host = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS) # Other shared-object link notes: # - Set SONAME to the library filename so our binaries don't reference # the local, absolute paths used on the link command-line. quiet_cmd_solink = SOLINK($(TOOLSET)) $@ cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS) quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@ cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS) quiet_cmd_solink_module_host = SOLINK_MODULE($(TOOLSET)) $@ cmd_solink_module_host = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS) """ LINK_COMMANDS_AIX = """\ quiet_cmd_alink = AR($(TOOLSET)) $@ cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) -X32_64 crs $@ $(filter %.o,$^) quiet_cmd_alink_thin = AR($(TOOLSET)) $@ cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) -X32_64 crs $@ $(filter %.o,$^) quiet_cmd_link = LINK($(TOOLSET)) $@ cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS) quiet_cmd_solink = SOLINK($(TOOLSET)) $@ cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS) quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@ cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS) """ LINK_COMMANDS_OS390 = """\ quiet_cmd_alink = AR($(TOOLSET)) $@ cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^) quiet_cmd_alink_thin = AR($(TOOLSET)) $@ cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^) quiet_cmd_link = LINK($(TOOLSET)) $@ cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS) quiet_cmd_solink = SOLINK($(TOOLSET)) $@ cmd_solink = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS) -Wl,DLL quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@ cmd_solink_module = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS) -Wl,DLL """ # Header of toplevel Makefile. # This should go into the build tree, but it's easier to keep it here for now. SHARED_HEADER = ("""\ # We borrow heavily from the kernel build setup, though we are simpler since # we don't have Kconfig tweaking settings on us. # The implicit make rules have it looking for RCS files, among other things. # We instead explicitly write all the rules we care about. # It's even quicker (saves ~200ms) to pass -r on the command line. MAKEFLAGS=-r # The source directory tree. srcdir := %(srcdir)s abs_srcdir := $(abspath $(srcdir)) # The name of the builddir. builddir_name ?= %(builddir)s # The V=1 flag on command line makes us verbosely print command lines. ifdef V quiet= else quiet=quiet_ endif # Specify BUILDTYPE=Release on the command line for a release build. BUILDTYPE ?= %(default_configuration)s # Directory all our build output goes into. # Note that this must be two directories beneath src/ for unit tests to pass, # as they reach into the src/ directory for data with relative paths. builddir ?= $(builddir_name)/$(BUILDTYPE) abs_builddir := $(abspath $(builddir)) depsdir := $(builddir)/.deps # Object output directory. obj := $(builddir)/obj abs_obj := $(abspath $(obj)) # We build up a list of every single one of the targets so we can slurp in the # generated dependency rule Makefiles in one pass. all_deps := %(make_global_settings)s CC.target ?= %(CC.target)s CFLAGS.target ?= $(CPPFLAGS) $(CFLAGS) CXX.target ?= %(CXX.target)s CXXFLAGS.target ?= $(CPPFLAGS) $(CXXFLAGS) LINK.target ?= %(LINK.target)s LDFLAGS.target ?= $(LDFLAGS) AR.target ?= $(AR) # C++ apps need to be linked with g++. LINK ?= $(CXX.target) # TODO(evan): move all cross-compilation logic to gyp-time so we don't need # to replicate this environment fallback in make as well. CC.host ?= %(CC.host)s CFLAGS.host ?= $(CPPFLAGS_host) $(CFLAGS_host) CXX.host ?= %(CXX.host)s CXXFLAGS.host ?= $(CPPFLAGS_host) $(CXXFLAGS_host) LINK.host ?= %(LINK.host)s LDFLAGS.host ?= AR.host ?= %(AR.host)s # Define a dir function that can handle spaces. # http://www.gnu.org/software/make/manual/make.html#Syntax-of-Functions # "leading spaces cannot appear in the text of the first argument as written. # These characters can be put into the argument value by variable substitution." empty := space := $(empty) $(empty) # http://stackoverflow.com/questions/1189781/using-make-dir-or-notdir-on-a-path-with-spaces replace_spaces = $(subst $(space),""" + SPACE_REPLACEMENT + """,$1) unreplace_spaces = $(subst """ + SPACE_REPLACEMENT + """,$(space),$1) dirx = $(call unreplace_spaces,$(dir $(call replace_spaces,$1))) # Flags to make gcc output dependency info. Note that you need to be # careful here to use the flags that ccache and distcc can understand. # We write to a dep file on the side first and then rename at the end # so we can't end up with a broken dep file. depfile = $(depsdir)/$(call replace_spaces,$@).d DEPFLAGS = %(makedep_args)s -MF $(depfile).raw # We have to fixup the deps output in a few ways. # (1) the file output should mention the proper .o file. # ccache or distcc lose the path to the target, so we convert a rule of # the form: # foobar.o: DEP1 DEP2 # into # path/to/foobar.o: DEP1 DEP2 # (2) we want missing files not to cause us to fail to build. # We want to rewrite # foobar.o: DEP1 DEP2 \\ # DEP3 # to # DEP1: # DEP2: # DEP3: # so if the files are missing, they're just considered phony rules. # We have to do some pretty insane escaping to get those backslashes # and dollar signs past make, the shell, and sed at the same time. # Doesn't work with spaces, but that's fine: .d files have spaces in # their names replaced with other characters.""" r""" define fixup_dep # The depfile may not exist if the input file didn't have any #includes. touch $(depfile).raw # Fixup path as in (1). sed -e "s|^$(notdir $@)|$@|" $(depfile).raw >> $(depfile) # Add extra rules as in (2). # We remove slashes and replace spaces with new lines; # remove blank lines; # delete the first line and append a colon to the remaining lines. sed -e 's|\\||' -e 'y| |\n|' $(depfile).raw |\ grep -v '^$$' |\ sed -e 1d -e 's|$$|:|' \ >> $(depfile) rm $(depfile).raw endef """ """ # Command definitions: # - cmd_foo is the actual command to run; # - quiet_cmd_foo is the brief-output summary of the command. quiet_cmd_cc = CC($(TOOLSET)) $@ cmd_cc = $(CC.$(TOOLSET)) $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c -o $@ $< quiet_cmd_cxx = CXX($(TOOLSET)) $@ cmd_cxx = $(CXX.$(TOOLSET)) $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $< %(extra_commands)s quiet_cmd_touch = TOUCH $@ cmd_touch = touch $@ quiet_cmd_copy = COPY $@ # send stderr to /dev/null to ignore messages when linking directories. cmd_copy = rm -rf "$@" && cp %(copy_archive_args)s "$<" "$@" %(link_commands)s """ r""" # Define an escape_quotes function to escape single quotes. # This allows us to handle quotes properly as long as we always use # use single quotes and escape_quotes. escape_quotes = $(subst ','\'',$(1)) # This comment is here just to include a ' to unconfuse syntax highlighting. # Define an escape_vars function to escape '$' variable syntax. # This allows us to read/write command lines with shell variables (e.g. # $LD_LIBRARY_PATH), without triggering make substitution. escape_vars = $(subst $$,$$$$,$(1)) # Helper that expands to a shell command to echo a string exactly as it is in # make. This uses printf instead of echo because printf's behaviour with respect # to escape sequences is more portable than echo's across different shells # (e.g., dash, bash). exact_echo = printf '%%s\n' '$(call escape_quotes,$(1))' """ """ # Helper to compare the command we're about to run against the command # we logged the last time we ran the command. Produces an empty # string (false) when the commands match. # Tricky point: Make has no string-equality test function. # The kernel uses the following, but it seems like it would have false # positives, where one string reordered its arguments. # arg_check = $(strip $(filter-out $(cmd_$(1)), $(cmd_$@)) \\ # $(filter-out $(cmd_$@), $(cmd_$(1)))) # We instead substitute each for the empty string into the other, and # say they're equal if both substitutions produce the empty string. # .d files contain """ + SPACE_REPLACEMENT + \ """ instead of spaces, take that into account. command_changed = $(or $(subst $(cmd_$(1)),,$(cmd_$(call replace_spaces,$@))),\\ $(subst $(cmd_$(call replace_spaces,$@)),,$(cmd_$(1)))) # Helper that is non-empty when a prerequisite changes. # Normally make does this implicitly, but we force rules to always run # so we can check their command lines. # $? -- new prerequisites # $| -- order-only dependencies prereq_changed = $(filter-out FORCE_DO_CMD,$(filter-out $|,$?)) # Helper that executes all postbuilds until one fails. define do_postbuilds @E=0;\\ for p in $(POSTBUILDS); do\\ eval $$p;\\ E=$$?;\\ if [ $$E -ne 0 ]; then\\ break;\\ fi;\\ done;\\ if [ $$E -ne 0 ]; then\\ rm -rf "$@";\\ exit $$E;\\ fi endef # do_cmd: run a command via the above cmd_foo names, if necessary. # Should always run for a given target to handle command-line changes. # Second argument, if non-zero, makes it do asm/C/C++ dependency munging. # Third argument, if non-zero, makes it do POSTBUILDS processing. # Note: We intentionally do NOT call dirx for depfile, since it contains """ + \ SPACE_REPLACEMENT + """ for # spaces already and dirx strips the """ + SPACE_REPLACEMENT + \ """ characters. define do_cmd $(if $(or $(command_changed),$(prereq_changed)), @$(call exact_echo, $($(quiet)cmd_$(1))) @mkdir -p "$(call dirx,$@)" "$(dir $(depfile))" $(if $(findstring flock,$(word %(flock_index)d,$(cmd_$1))), @$(cmd_$(1)) @echo " $(quiet_cmd_$(1)): Finished", @$(cmd_$(1)) ) @$(call exact_echo,$(call escape_vars,cmd_$(call replace_spaces,$@) := $(cmd_$(1)))) > $(depfile) @$(if $(2),$(fixup_dep)) $(if $(and $(3), $(POSTBUILDS)), $(call do_postbuilds) ) ) endef # Declare the "%(default_target)s" target first so it is the default, # even though we don't have the deps yet. .PHONY: %(default_target)s %(default_target)s: # make looks for ways to re-generate included makefiles, but in our case, we # don't have a direct way. Explicitly telling make that it has nothing to do # for them makes it go faster. %%.d: ; # Use FORCE_DO_CMD to force a target to run. Should be coupled with # do_cmd. .PHONY: FORCE_DO_CMD FORCE_DO_CMD: """) SHARED_HEADER_MAC_COMMANDS = """ quiet_cmd_objc = CXX($(TOOLSET)) $@ cmd_objc = $(CC.$(TOOLSET)) $(GYP_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $< quiet_cmd_objcxx = CXX($(TOOLSET)) $@ cmd_objcxx = $(CXX.$(TOOLSET)) $(GYP_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $< # Commands for precompiled header files. quiet_cmd_pch_c = CXX($(TOOLSET)) $@ cmd_pch_c = $(CC.$(TOOLSET)) $(GYP_PCH_CFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $< quiet_cmd_pch_cc = CXX($(TOOLSET)) $@ cmd_pch_cc = $(CC.$(TOOLSET)) $(GYP_PCH_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $< quiet_cmd_pch_m = CXX($(TOOLSET)) $@ cmd_pch_m = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $< quiet_cmd_pch_mm = CXX($(TOOLSET)) $@ cmd_pch_mm = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $< # gyp-mac-tool is written next to the root Makefile by gyp. # Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd # already. quiet_cmd_mac_tool = MACTOOL $(4) $< cmd_mac_tool = ./gyp-mac-tool $(4) $< "$@" quiet_cmd_mac_package_framework = PACKAGE FRAMEWORK $@ cmd_mac_package_framework = ./gyp-mac-tool package-framework "$@" $(4) quiet_cmd_infoplist = INFOPLIST $@ cmd_infoplist = $(CC.$(TOOLSET)) -E -P -Wno-trigraphs -x c $(INFOPLIST_DEFINES) "$<" -o "$@" """ def WriteRootHeaderSuffixRules(writer): extensions = sorted(COMPILABLE_EXTENSIONS.keys(), key=str.lower) writer.write('# Suffix rules, putting all outputs into $(obj).\n') for ext in extensions: writer.write('$(obj).$(TOOLSET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD\n' % ext) writer.write('\t@$(call do_cmd,%s,1)\n' % COMPILABLE_EXTENSIONS[ext]) writer.write('\n# Try building from generated source, too.\n') for ext in extensions: writer.write( '$(obj).$(TOOLSET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD\n' % ext) writer.write('\t@$(call do_cmd,%s,1)\n' % COMPILABLE_EXTENSIONS[ext]) writer.write('\n') for ext in extensions: writer.write('$(obj).$(TOOLSET)/%%.o: $(obj)/%%%s FORCE_DO_CMD\n' % ext) writer.write('\t@$(call do_cmd,%s,1)\n' % COMPILABLE_EXTENSIONS[ext]) writer.write('\n') SHARED_HEADER_SUFFIX_RULES_COMMENT1 = ("""\ # Suffix rules, putting all outputs into $(obj). """) SHARED_HEADER_SUFFIX_RULES_COMMENT2 = ("""\ # Try building from generated source, too. """) SHARED_FOOTER = """\ # "all" is a concatenation of the "all" targets from all the included # sub-makefiles. This is just here to clarify. all: # Add in dependency-tracking rules. $(all_deps) is the list of every single # target in our tree. Only consider the ones with .d (dependency) info: d_files := $(wildcard $(foreach f,$(all_deps),$(depsdir)/$(f).d)) ifneq ($(d_files),) include $(d_files) endif """ header = """\ # This file is generated by gyp; do not edit. """ # Maps every compilable file extension to the do_cmd that compiles it. COMPILABLE_EXTENSIONS = { '.c': 'cc', '.cc': 'cxx', '.cpp': 'cxx', '.cxx': 'cxx', '.s': 'cc', '.S': 'cc', } def Compilable(filename): """Return true if the file is compilable (should be in OBJS).""" for res in (filename.endswith(e) for e in COMPILABLE_EXTENSIONS): if res: return True return False def Linkable(filename): """Return true if the file is linkable (should be on the link line).""" return filename.endswith('.o') def Target(filename): """Translate a compilable filename to its .o target.""" return os.path.splitext(filename)[0] + '.o' def EscapeShellArgument(s): """Quotes an argument so that it will be interpreted literally by a POSIX shell. Taken from http://stackoverflow.com/questions/35817/whats-the-best-way-to-escape-ossystem-calls-in-python """ return "'" + s.replace("'", "'\\''") + "'" def EscapeMakeVariableExpansion(s): """Make has its own variable expansion syntax using $. We must escape it for string to be interpreted literally.""" return s.replace('$', '$$') def EscapeCppDefine(s): """Escapes a CPP define so that it will reach the compiler unaltered.""" s = EscapeShellArgument(s) s = EscapeMakeVariableExpansion(s) # '#' characters must be escaped even embedded in a string, else Make will # treat it as the start of a comment. return s.replace('#', r'\#') def QuoteIfNecessary(string): """TODO: Should this ideally be replaced with one or more of the above functions?""" if '"' in string: string = '"' + string.replace('"', '\\"') + '"' return string def StringToMakefileVariable(string): """Convert a string to a value that is acceptable as a make variable name.""" return re.sub('[^a-zA-Z0-9_]', '_', string) srcdir_prefix = '' def Sourceify(path): """Convert a path to its source directory form.""" if '$(' in path: return path if os.path.isabs(path): return path return srcdir_prefix + path def QuoteSpaces(s, quote=r'\ '): return s.replace(' ', quote) def SourceifyAndQuoteSpaces(path): """Convert a path to its source directory form and quote spaces.""" return QuoteSpaces(Sourceify(path)) # TODO: Avoid code duplication with _ValidateSourcesForMSVSProject in msvs.py. def _ValidateSourcesForOSX(spec, all_sources): """Makes sure if duplicate basenames are not specified in the source list. Arguments: spec: The target dictionary containing the properties of the target. """ if spec.get('type', None) != 'static_library': return basenames = {} for source in all_sources: name, ext = os.path.splitext(source) is_compiled_file = ext in [ '.c', '.cc', '.cpp', '.cxx', '.m', '.mm', '.s', '.S'] if not is_compiled_file: continue basename = os.path.basename(name) # Don't include extension. basenames.setdefault(basename, []).append(source) error = '' for basename, files in basenames.items(): if len(files) > 1: error += ' %s: %s\n' % (basename, ' '.join(files)) if error: print(('static library %s has several files with the same basename:\n' % spec['target_name']) + error + 'libtool on OS X will generate' + ' warnings for them.') raise GypError('Duplicate basenames in sources section, see list above') # Map from qualified target to path to output. target_outputs = {} # Map from qualified target to any linkable output. A subset # of target_outputs. E.g. when mybinary depends on liba, we want to # include liba in the linker line; when otherbinary depends on # mybinary, we just want to build mybinary first. target_link_deps = {} class MakefileWriter(object): """MakefileWriter packages up the writing of one target-specific foobar.mk. Its only real entry point is Write(), and is mostly used for namespacing. """ def __init__(self, generator_flags, flavor): self.generator_flags = generator_flags self.flavor = flavor self.suffix_rules_srcdir = {} self.suffix_rules_objdir1 = {} self.suffix_rules_objdir2 = {} # Generate suffix rules for all compilable extensions. for ext in COMPILABLE_EXTENSIONS.keys(): # Suffix rules for source folder. self.suffix_rules_srcdir.update({ext: ("""\ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD @$(call do_cmd,%s,1) """ % (ext, COMPILABLE_EXTENSIONS[ext]))}) # Suffix rules for generated source files. self.suffix_rules_objdir1.update({ext: ("""\ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD @$(call do_cmd,%s,1) """ % (ext, COMPILABLE_EXTENSIONS[ext]))}) self.suffix_rules_objdir2.update({ext: ("""\ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD @$(call do_cmd,%s,1) """ % (ext, COMPILABLE_EXTENSIONS[ext]))}) def Write(self, qualified_target, base_path, output_filename, spec, configs, part_of_all): """The main entry point: writes a .mk file for a single target. Arguments: qualified_target: target we're generating base_path: path relative to source root we're building in, used to resolve target-relative paths output_filename: output .mk file name to write spec, configs: gyp info part_of_all: flag indicating this target is part of 'all' """ gyp.common.EnsureDirExists(output_filename) self.fp = open(output_filename, 'w') self.fp.write(header) self.qualified_target = qualified_target self.path = base_path self.target = spec['target_name'] self.type = spec['type'] self.toolset = spec['toolset'] self.is_mac_bundle = gyp.xcode_emulation.IsMacBundle(self.flavor, spec) if self.flavor == 'mac': self.xcode_settings = gyp.xcode_emulation.XcodeSettings(spec) else: self.xcode_settings = None deps, link_deps = self.ComputeDeps(spec) # Some of the generation below can add extra output, sources, or # link dependencies. All of the out params of the functions that # follow use names like extra_foo. extra_outputs = [] extra_sources = [] extra_link_deps = [] extra_mac_bundle_resources = [] mac_bundle_deps = [] if self.is_mac_bundle: self.output = self.ComputeMacBundleOutput(spec) self.output_binary = self.ComputeMacBundleBinaryOutput(spec) else: self.output = self.output_binary = self.ComputeOutput(spec) self.is_standalone_static_library = bool( spec.get('standalone_static_library', 0)) self._INSTALLABLE_TARGETS = ('executable', 'loadable_module', 'shared_library') if (self.is_standalone_static_library or self.type in self._INSTALLABLE_TARGETS): self.alias = os.path.basename(self.output) install_path = self._InstallableTargetInstallPath() else: self.alias = self.output install_path = self.output self.WriteLn("TOOLSET := " + self.toolset) self.WriteLn("TARGET := " + self.target) # Actions must come first, since they can generate more OBJs for use below. if 'actions' in spec: self.WriteActions(spec['actions'], extra_sources, extra_outputs, extra_mac_bundle_resources, part_of_all) # Rules must be early like actions. if 'rules' in spec: self.WriteRules(spec['rules'], extra_sources, extra_outputs, extra_mac_bundle_resources, part_of_all) if 'copies' in spec: self.WriteCopies(spec['copies'], extra_outputs, part_of_all) # Bundle resources. if self.is_mac_bundle: all_mac_bundle_resources = ( spec.get('mac_bundle_resources', []) + extra_mac_bundle_resources) self.WriteMacBundleResources(all_mac_bundle_resources, mac_bundle_deps) self.WriteMacInfoPlist(mac_bundle_deps) # Sources. all_sources = spec.get('sources', []) + extra_sources if all_sources: if self.flavor == 'mac': # libtool on OS X generates warnings for duplicate basenames in the same # target. _ValidateSourcesForOSX(spec, all_sources) self.WriteSources( configs, deps, all_sources, extra_outputs, extra_link_deps, part_of_all, gyp.xcode_emulation.MacPrefixHeader( self.xcode_settings, lambda p: Sourceify(self.Absolutify(p)), self.Pchify)) sources = list(filter(Compilable, all_sources)) if sources: self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT1) extensions = set([os.path.splitext(s)[1] for s in sources]) for ext in extensions: if ext in self.suffix_rules_srcdir: self.WriteLn(self.suffix_rules_srcdir[ext]) self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT2) for ext in extensions: if ext in self.suffix_rules_objdir1: self.WriteLn(self.suffix_rules_objdir1[ext]) for ext in extensions: if ext in self.suffix_rules_objdir2: self.WriteLn(self.suffix_rules_objdir2[ext]) self.WriteLn('# End of this set of suffix rules') # Add dependency from bundle to bundle binary. if self.is_mac_bundle: mac_bundle_deps.append(self.output_binary) self.WriteTarget(spec, configs, deps, extra_link_deps + link_deps, mac_bundle_deps, extra_outputs, part_of_all) # Update global list of target outputs, used in dependency tracking. target_outputs[qualified_target] = install_path # Update global list of link dependencies. if self.type in ('static_library', 'shared_library'): target_link_deps[qualified_target] = self.output_binary # Currently any versions have the same effect, but in future the behavior # could be different. if self.generator_flags.get('android_ndk_version', None): self.WriteAndroidNdkModuleRule(self.target, all_sources, link_deps) self.fp.close() def WriteSubMake(self, output_filename, makefile_path, targets, build_dir): """Write a "sub-project" Makefile. This is a small, wrapper Makefile that calls the top-level Makefile to build the targets from a single gyp file (i.e. a sub-project). Arguments: output_filename: sub-project Makefile name to write makefile_path: path to the top-level Makefile targets: list of "all" targets for this sub-project build_dir: build output directory, relative to the sub-project """ gyp.common.EnsureDirExists(output_filename) self.fp = open(output_filename, 'w') self.fp.write(header) # For consistency with other builders, put sub-project build output in the # sub-project dir (see test/subdirectory/gyptest-subdir-all.py). self.WriteLn('export builddir_name ?= %s' % os.path.join(os.path.dirname(output_filename), build_dir)) self.WriteLn('.PHONY: all') self.WriteLn('all:') if makefile_path: makefile_path = ' -C ' + makefile_path self.WriteLn('\t$(MAKE)%s %s' % (makefile_path, ' '.join(targets))) self.fp.close() def WriteActions(self, actions, extra_sources, extra_outputs, extra_mac_bundle_resources, part_of_all): """Write Makefile code for any 'actions' from the gyp input. extra_sources: a list that will be filled in with newly generated source files, if any extra_outputs: a list that will be filled in with any outputs of these actions (used to make other pieces dependent on these actions) part_of_all: flag indicating this target is part of 'all' """ env = self.GetSortedXcodeEnv() for action in actions: name = StringToMakefileVariable('%s_%s' % (self.qualified_target, action['action_name'])) self.WriteLn('### Rules for action "%s":' % action['action_name']) inputs = action['inputs'] outputs = action['outputs'] # Build up a list of outputs. # Collect the output dirs we'll need. dirs = set() for out in outputs: dir = os.path.split(out)[0] if dir: dirs.add(dir) if int(action.get('process_outputs_as_sources', False)): extra_sources += outputs if int(action.get('process_outputs_as_mac_bundle_resources', False)): extra_mac_bundle_resources += outputs # Write the actual command. action_commands = action['action'] if self.flavor == 'mac': action_commands = [gyp.xcode_emulation.ExpandEnvVars(command, env) for command in action_commands] command = gyp.common.EncodePOSIXShellList(action_commands) if 'message' in action: self.WriteLn('quiet_cmd_%s = ACTION %s $@' % (name, action['message'])) else: self.WriteLn('quiet_cmd_%s = ACTION %s $@' % (name, name)) if len(dirs) > 0: command = 'mkdir -p %s' % ' '.join(dirs) + '; ' + command cd_action = 'cd %s; ' % Sourceify(self.path or '.') # command and cd_action get written to a toplevel variable called # cmd_foo. Toplevel variables can't handle things that change per # makefile like $(TARGET), so hardcode the target. command = command.replace('$(TARGET)', self.target) cd_action = cd_action.replace('$(TARGET)', self.target) # Set LD_LIBRARY_PATH in case the action runs an executable from this # build which links to shared libs from this build. # actions run on the host, so they should in theory only use host # libraries, but until everything is made cross-compile safe, also use # target libraries. # TODO(piman): when everything is cross-compile safe, remove lib.target self.WriteLn('cmd_%s = LD_LIBRARY_PATH=$(builddir)/lib.host:' '$(builddir)/lib.target:$$LD_LIBRARY_PATH; ' 'export LD_LIBRARY_PATH; ' '%s%s' % (name, cd_action, command)) self.WriteLn() outputs = [self.Absolutify(output) for output in outputs] # The makefile rules are all relative to the top dir, but the gyp actions # are defined relative to their containing dir. This replaces the obj # variable for the action rule with an absolute version so that the output # goes in the right place. # Only write the 'obj' and 'builddir' rules for the "primary" output (:1); # it's superfluous for the "extra outputs", and this avoids accidentally # writing duplicate dummy rules for those outputs. # Same for environment. self.WriteLn("%s: obj := $(abs_obj)" % QuoteSpaces(outputs[0])) self.WriteLn("%s: builddir := $(abs_builddir)" % QuoteSpaces(outputs[0])) self.WriteSortedXcodeEnv(outputs[0], self.GetSortedXcodeEnv()) for input in inputs: assert ' ' not in input, ( "Spaces in action input filenames not supported (%s)" % input) for output in outputs: assert ' ' not in output, ( "Spaces in action output filenames not supported (%s)" % output) # See the comment in WriteCopies about expanding env vars. outputs = [gyp.xcode_emulation.ExpandEnvVars(o, env) for o in outputs] inputs = [gyp.xcode_emulation.ExpandEnvVars(i, env) for i in inputs] self.WriteDoCmd(outputs, [Sourceify(self.Absolutify(i)) for i in inputs], part_of_all=part_of_all, command=name) # Stuff the outputs in a variable so we can refer to them later. outputs_variable = 'action_%s_outputs' % name self.WriteLn('%s := %s' % (outputs_variable, ' '.join(outputs))) extra_outputs.append('$(%s)' % outputs_variable) self.WriteLn() self.WriteLn() def WriteRules(self, rules, extra_sources, extra_outputs, extra_mac_bundle_resources, part_of_all): """Write Makefile code for any 'rules' from the gyp input. extra_sources: a list that will be filled in with newly generated source files, if any extra_outputs: a list that will be filled in with any outputs of these rules (used to make other pieces dependent on these rules) part_of_all: flag indicating this target is part of 'all' """ env = self.GetSortedXcodeEnv() for rule in rules: name = StringToMakefileVariable('%s_%s' % (self.qualified_target, rule['rule_name'])) count = 0 self.WriteLn('### Generated for rule %s:' % name) all_outputs = [] for rule_source in rule.get('rule_sources', []): dirs = set() (rule_source_dirname, rule_source_basename) = os.path.split(rule_source) (rule_source_root, rule_source_ext) = \ os.path.splitext(rule_source_basename) outputs = [self.ExpandInputRoot(out, rule_source_root, rule_source_dirname) for out in rule['outputs']] for out in outputs: dir = os.path.dirname(out) if dir: dirs.add(dir) if int(rule.get('process_outputs_as_sources', False)): extra_sources += outputs if int(rule.get('process_outputs_as_mac_bundle_resources', False)): extra_mac_bundle_resources += outputs inputs = [Sourceify(self.Absolutify(i)) for i in [rule_source] + rule.get('inputs', [])] actions = ['$(call do_cmd,%s_%d)' % (name, count)] if name == 'resources_grit': # HACK: This is ugly. Grit intentionally doesn't touch the # timestamp of its output file when the file doesn't change, # which is fine in hash-based dependency systems like scons # and forge, but not kosher in the make world. After some # discussion, hacking around it here seems like the least # amount of pain. actions += ['@touch --no-create $@'] # See the comment in WriteCopies about expanding env vars. outputs = [gyp.xcode_emulation.ExpandEnvVars(o, env) for o in outputs] inputs = [gyp.xcode_emulation.ExpandEnvVars(i, env) for i in inputs] outputs = [self.Absolutify(output) for output in outputs] all_outputs += outputs # Only write the 'obj' and 'builddir' rules for the "primary" output # (:1); it's superfluous for the "extra outputs", and this avoids # accidentally writing duplicate dummy rules for those outputs. self.WriteLn('%s: obj := $(abs_obj)' % outputs[0]) self.WriteLn('%s: builddir := $(abs_builddir)' % outputs[0]) self.WriteMakeRule(outputs, inputs, actions, command="%s_%d" % (name, count)) # Spaces in rule filenames are not supported, but rule variables have # spaces in them (e.g. RULE_INPUT_PATH expands to '$(abspath $<)'). # The spaces within the variables are valid, so remove the variables # before checking. variables_with_spaces = re.compile(r'\$\([^ ]* \$<\)') for output in outputs: output = re.sub(variables_with_spaces, '', output) assert ' ' not in output, ( "Spaces in rule filenames not yet supported (%s)" % output) self.WriteLn('all_deps += %s' % ' '.join(outputs)) action = [self.ExpandInputRoot(ac, rule_source_root, rule_source_dirname) for ac in rule['action']] mkdirs = '' if len(dirs) > 0: mkdirs = 'mkdir -p %s; ' % ' '.join(dirs) cd_action = 'cd %s; ' % Sourceify(self.path or '.') # action, cd_action, and mkdirs get written to a toplevel variable # called cmd_foo. Toplevel variables can't handle things that change # per makefile like $(TARGET), so hardcode the target. if self.flavor == 'mac': action = [gyp.xcode_emulation.ExpandEnvVars(command, env) for command in action] action = gyp.common.EncodePOSIXShellList(action) action = action.replace('$(TARGET)', self.target) cd_action = cd_action.replace('$(TARGET)', self.target) mkdirs = mkdirs.replace('$(TARGET)', self.target) # Set LD_LIBRARY_PATH in case the rule runs an executable from this # build which links to shared libs from this build. # rules run on the host, so they should in theory only use host # libraries, but until everything is made cross-compile safe, also use # target libraries. # TODO(piman): when everything is cross-compile safe, remove lib.target self.WriteLn( "cmd_%(name)s_%(count)d = LD_LIBRARY_PATH=" "$(builddir)/lib.host:$(builddir)/lib.target:$$LD_LIBRARY_PATH; " "export LD_LIBRARY_PATH; " "%(cd_action)s%(mkdirs)s%(action)s" % { 'action': action, 'cd_action': cd_action, 'count': count, 'mkdirs': mkdirs, 'name': name, }) self.WriteLn( 'quiet_cmd_%(name)s_%(count)d = RULE %(name)s_%(count)d $@' % { 'count': count, 'name': name, }) self.WriteLn() count += 1 outputs_variable = 'rule_%s_outputs' % name self.WriteList(all_outputs, outputs_variable) extra_outputs.append('$(%s)' % outputs_variable) self.WriteLn('### Finished generating for rule: %s' % name) self.WriteLn() self.WriteLn('### Finished generating for all rules') self.WriteLn('') def WriteCopies(self, copies, extra_outputs, part_of_all): """Write Makefile code for any 'copies' from the gyp input. extra_outputs: a list that will be filled in with any outputs of this action (used to make other pieces dependent on this action) part_of_all: flag indicating this target is part of 'all' """ self.WriteLn('### Generated for copy rule.') variable = StringToMakefileVariable(self.qualified_target + '_copies') outputs = [] for copy in copies: for path in copy['files']: # Absolutify() may call normpath, and will strip trailing slashes. path = Sourceify(self.Absolutify(path)) filename = os.path.split(path)[1] output = Sourceify(self.Absolutify(os.path.join(copy['destination'], filename))) # If the output path has variables in it, which happens in practice for # 'copies', writing the environment as target-local doesn't work, # because the variables are already needed for the target name. # Copying the environment variables into global make variables doesn't # work either, because then the .d files will potentially contain spaces # after variable expansion, and .d file handling cannot handle spaces. # As a workaround, manually expand variables at gyp time. Since 'copies' # can't run scripts, there's no need to write the env then. # WriteDoCmd() will escape spaces for .d files. env = self.GetSortedXcodeEnv() output = gyp.xcode_emulation.ExpandEnvVars(output, env) path = gyp.xcode_emulation.ExpandEnvVars(path, env) self.WriteDoCmd([output], [path], 'copy', part_of_all) outputs.append(output) self.WriteLn('%s = %s' % (variable, ' '.join(QuoteSpaces(o) for o in outputs))) extra_outputs.append('$(%s)' % variable) self.WriteLn() def WriteMacBundleResources(self, resources, bundle_deps): """Writes Makefile code for 'mac_bundle_resources'.""" self.WriteLn('### Generated for mac_bundle_resources') for output, res in gyp.xcode_emulation.GetMacBundleResources( generator_default_variables['PRODUCT_DIR'], self.xcode_settings, [Sourceify(self.Absolutify(r)) for r in resources]): _, ext = os.path.splitext(output) if ext != '.xcassets': # Make does not supports '.xcassets' emulation. self.WriteDoCmd([output], [res], 'mac_tool,,,copy-bundle-resource', part_of_all=True) bundle_deps.append(output) def WriteMacInfoPlist(self, bundle_deps): """Write Makefile code for bundle Info.plist files.""" info_plist, out, defines, extra_env = gyp.xcode_emulation.GetMacInfoPlist( generator_default_variables['PRODUCT_DIR'], self.xcode_settings, lambda p: Sourceify(self.Absolutify(p))) if not info_plist: return if defines: # Create an intermediate file to store preprocessed results. intermediate_plist = ('$(obj).$(TOOLSET)/$(TARGET)/' + os.path.basename(info_plist)) self.WriteList(defines, intermediate_plist + ': INFOPLIST_DEFINES', '-D', quoter=EscapeCppDefine) self.WriteMakeRule([intermediate_plist], [info_plist], ['$(call do_cmd,infoplist)', # "Convert" the plist so that any weird whitespace changes from the # preprocessor do not affect the XML parser in mac_tool. '@plutil -convert xml1 $@ $@']) info_plist = intermediate_plist # plists can contain envvars and substitute them into the file. self.WriteSortedXcodeEnv( out, self.GetSortedXcodeEnv(additional_settings=extra_env)) self.WriteDoCmd([out], [info_plist], 'mac_tool,,,copy-info-plist', part_of_all=True) bundle_deps.append(out) def WriteSources(self, configs, deps, sources, extra_outputs, extra_link_deps, part_of_all, precompiled_header): """Write Makefile code for any 'sources' from the gyp input. These are source files necessary to build the current target. configs, deps, sources: input from gyp. extra_outputs: a list of extra outputs this action should be dependent on; used to serialize action/rules before compilation extra_link_deps: a list that will be filled in with any outputs of compilation (to be used in link lines) part_of_all: flag indicating this target is part of 'all' """ # Write configuration-specific variables for CFLAGS, etc. for configname in sorted(configs.keys()): config = configs[configname] self.WriteList(config.get('defines'), 'DEFS_%s' % configname, prefix='-D', quoter=EscapeCppDefine) if self.flavor == 'mac': cflags = self.xcode_settings.GetCflags(configname) cflags_c = self.xcode_settings.GetCflagsC(configname) cflags_cc = self.xcode_settings.GetCflagsCC(configname) cflags_objc = self.xcode_settings.GetCflagsObjC(configname) cflags_objcc = self.xcode_settings.GetCflagsObjCC(configname) else: cflags = config.get('cflags') cflags_c = config.get('cflags_c') cflags_cc = config.get('cflags_cc') self.WriteLn("# Flags passed to all source files.") self.WriteList(cflags, 'CFLAGS_%s' % configname) self.WriteLn("# Flags passed to only C files.") self.WriteList(cflags_c, 'CFLAGS_C_%s' % configname) self.WriteLn("# Flags passed to only C++ files.") self.WriteList(cflags_cc, 'CFLAGS_CC_%s' % configname) if self.flavor == 'mac': self.WriteLn("# Flags passed to only ObjC files.") self.WriteList(cflags_objc, 'CFLAGS_OBJC_%s' % configname) self.WriteLn("# Flags passed to only ObjC++ files.") self.WriteList(cflags_objcc, 'CFLAGS_OBJCC_%s' % configname) includes = config.get('include_dirs') if includes: includes = [Sourceify(self.Absolutify(i)) for i in includes] self.WriteList(includes, 'INCS_%s' % configname, prefix='-I') compilable = list(filter(Compilable, sources)) objs = [self.Objectify(self.Absolutify(Target(c))) for c in compilable] self.WriteList(objs, 'OBJS') for obj in objs: assert ' ' not in obj, ( "Spaces in object filenames not supported (%s)" % obj) self.WriteLn('# Add to the list of files we specially track ' 'dependencies for.') self.WriteLn('all_deps += $(OBJS)') self.WriteLn() # Make sure our dependencies are built first. if deps: self.WriteMakeRule(['$(OBJS)'], deps, comment = 'Make sure our dependencies are built ' 'before any of us.', order_only = True) # Make sure the actions and rules run first. # If they generate any extra headers etc., the per-.o file dep tracking # will catch the proper rebuilds, so order only is still ok here. if extra_outputs: self.WriteMakeRule(['$(OBJS)'], extra_outputs, comment = 'Make sure our actions/rules run ' 'before any of us.', order_only = True) pchdeps = precompiled_header.GetObjDependencies(compilable, objs ) if pchdeps: self.WriteLn('# Dependencies from obj files to their precompiled headers') for source, obj, gch in pchdeps: self.WriteLn('%s: %s' % (obj, gch)) self.WriteLn('# End precompiled header dependencies') if objs: extra_link_deps.append('$(OBJS)') self.WriteLn("""\ # CFLAGS et al overrides must be target-local. # See "Target-specific Variable Values" in the GNU Make manual.""") self.WriteLn("$(OBJS): TOOLSET := $(TOOLSET)") self.WriteLn("$(OBJS): GYP_CFLAGS := " "$(DEFS_$(BUILDTYPE)) " "$(INCS_$(BUILDTYPE)) " "%s " % precompiled_header.GetInclude('c') + "$(CFLAGS_$(BUILDTYPE)) " "$(CFLAGS_C_$(BUILDTYPE))") self.WriteLn("$(OBJS): GYP_CXXFLAGS := " "$(DEFS_$(BUILDTYPE)) " "$(INCS_$(BUILDTYPE)) " "%s " % precompiled_header.GetInclude('cc') + "$(CFLAGS_$(BUILDTYPE)) " "$(CFLAGS_CC_$(BUILDTYPE))") if self.flavor == 'mac': self.WriteLn("$(OBJS): GYP_OBJCFLAGS := " "$(DEFS_$(BUILDTYPE)) " "$(INCS_$(BUILDTYPE)) " "%s " % precompiled_header.GetInclude('m') + "$(CFLAGS_$(BUILDTYPE)) " "$(CFLAGS_C_$(BUILDTYPE)) " "$(CFLAGS_OBJC_$(BUILDTYPE))") self.WriteLn("$(OBJS): GYP_OBJCXXFLAGS := " "$(DEFS_$(BUILDTYPE)) " "$(INCS_$(BUILDTYPE)) " "%s " % precompiled_header.GetInclude('mm') + "$(CFLAGS_$(BUILDTYPE)) " "$(CFLAGS_CC_$(BUILDTYPE)) " "$(CFLAGS_OBJCC_$(BUILDTYPE))") self.WritePchTargets(precompiled_header.GetPchBuildCommands()) # If there are any object files in our input file list, link them into our # output. extra_link_deps += list(filter(Linkable, sources)) self.WriteLn() def WritePchTargets(self, pch_commands): """Writes make rules to compile prefix headers.""" if not pch_commands: return for gch, lang_flag, lang, input in pch_commands: extra_flags = { 'c': '$(CFLAGS_C_$(BUILDTYPE))', 'cc': '$(CFLAGS_CC_$(BUILDTYPE))', 'm': '$(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))', 'mm': '$(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))', }[lang] var_name = { 'c': 'GYP_PCH_CFLAGS', 'cc': 'GYP_PCH_CXXFLAGS', 'm': 'GYP_PCH_OBJCFLAGS', 'mm': 'GYP_PCH_OBJCXXFLAGS', }[lang] self.WriteLn("%s: %s := %s " % (gch, var_name, lang_flag) + "$(DEFS_$(BUILDTYPE)) " "$(INCS_$(BUILDTYPE)) " "$(CFLAGS_$(BUILDTYPE)) " + extra_flags) self.WriteLn('%s: %s FORCE_DO_CMD' % (gch, input)) self.WriteLn('\t@$(call do_cmd,pch_%s,1)' % lang) self.WriteLn('') assert ' ' not in gch, ( "Spaces in gch filenames not supported (%s)" % gch) self.WriteLn('all_deps += %s' % gch) self.WriteLn('') def ComputeOutputBasename(self, spec): """Return the 'output basename' of a gyp spec. E.g., the loadable module 'foobar' in directory 'baz' will produce 'libfoobar.so' """ assert not self.is_mac_bundle if self.flavor == 'mac' and self.type in ( 'static_library', 'executable', 'shared_library', 'loadable_module'): return self.xcode_settings.GetExecutablePath() target = spec['target_name'] target_prefix = '' target_ext = '' if self.type == 'static_library': if target[:3] == 'lib': target = target[3:] target_prefix = 'lib' target_ext = '.a' elif self.type in ('loadable_module', 'shared_library'): if target[:3] == 'lib': target = target[3:] target_prefix = 'lib' if self.flavor == 'aix': target_ext = '.a' else: target_ext = '.so' elif self.type == 'none': target = '%s.stamp' % target elif self.type != 'executable': print("ERROR: What output file should be generated?", "type", self.type, "target", target) target_prefix = spec.get('product_prefix', target_prefix) target = spec.get('product_name', target) product_ext = spec.get('product_extension') if product_ext: target_ext = '.' + product_ext return target_prefix + target + target_ext def _InstallImmediately(self): return self.toolset == 'target' and self.flavor == 'mac' and self.type in ( 'static_library', 'executable', 'shared_library', 'loadable_module') def ComputeOutput(self, spec): """Return the 'output' (full output path) of a gyp spec. E.g., the loadable module 'foobar' in directory 'baz' will produce '$(obj)/baz/libfoobar.so' """ assert not self.is_mac_bundle path = os.path.join('$(obj).' + self.toolset, self.path) if self.type == 'executable' or self._InstallImmediately(): path = '$(builddir)' path = spec.get('product_dir', path) return os.path.join(path, self.ComputeOutputBasename(spec)) def ComputeMacBundleOutput(self, spec): """Return the 'output' (full output path) to a bundle output directory.""" assert self.is_mac_bundle path = generator_default_variables['PRODUCT_DIR'] return os.path.join(path, self.xcode_settings.GetWrapperName()) def ComputeMacBundleBinaryOutput(self, spec): """Return the 'output' (full output path) to the binary in a bundle.""" path = generator_default_variables['PRODUCT_DIR'] return os.path.join(path, self.xcode_settings.GetExecutablePath()) def ComputeDeps(self, spec): """Compute the dependencies of a gyp spec. Returns a tuple (deps, link_deps), where each is a list of filenames that will need to be put in front of make for either building (deps) or linking (link_deps). """ deps = [] link_deps = [] if 'dependencies' in spec: deps.extend([target_outputs[dep] for dep in spec['dependencies'] if target_outputs[dep]]) for dep in spec['dependencies']: if dep in target_link_deps: link_deps.append(target_link_deps[dep]) deps.extend(link_deps) # TODO: It seems we need to transitively link in libraries (e.g. -lfoo)? # This hack makes it work: # link_deps.extend(spec.get('libraries', [])) return (gyp.common.uniquer(deps), gyp.common.uniquer(link_deps)) def WriteDependencyOnExtraOutputs(self, target, extra_outputs): self.WriteMakeRule([self.output_binary], extra_outputs, comment = 'Build our special outputs first.', order_only = True) def WriteTarget(self, spec, configs, deps, link_deps, bundle_deps, extra_outputs, part_of_all): """Write Makefile code to produce the final target of the gyp spec. spec, configs: input from gyp. deps, link_deps: dependency lists; see ComputeDeps() extra_outputs: any extra outputs that our target should depend on part_of_all: flag indicating this target is part of 'all' """ self.WriteLn('### Rules for final target.') if extra_outputs: self.WriteDependencyOnExtraOutputs(self.output_binary, extra_outputs) self.WriteMakeRule(extra_outputs, deps, comment=('Preserve order dependency of ' 'special output on deps.'), order_only = True) target_postbuilds = {} if self.type != 'none': for configname in sorted(configs.keys()): config = configs[configname] if self.flavor == 'mac': ldflags = self.xcode_settings.GetLdflags(configname, generator_default_variables['PRODUCT_DIR'], lambda p: Sourceify(self.Absolutify(p))) # TARGET_POSTBUILDS_$(BUILDTYPE) is added to postbuilds later on. gyp_to_build = gyp.common.InvertRelativePath(self.path) target_postbuild = self.xcode_settings.AddImplicitPostbuilds( configname, QuoteSpaces(os.path.normpath(os.path.join(gyp_to_build, self.output))), QuoteSpaces(os.path.normpath(os.path.join(gyp_to_build, self.output_binary)))) if target_postbuild: target_postbuilds[configname] = target_postbuild else: ldflags = config.get('ldflags', []) # Compute an rpath for this output if needed. if any(dep.endswith('.so') or '.so.' in dep for dep in deps): # We want to get the literal string "$ORIGIN" into the link command, # so we need lots of escaping. ldflags.append(r'-Wl,-rpath=\$$ORIGIN/lib.%s/' % self.toolset) ldflags.append(r'-Wl,-rpath-link=\$(builddir)/lib.%s/' % self.toolset) library_dirs = config.get('library_dirs', []) ldflags += [('-L%s' % library_dir) for library_dir in library_dirs] self.WriteList(ldflags, 'LDFLAGS_%s' % configname) if self.flavor == 'mac': self.WriteList(self.xcode_settings.GetLibtoolflags(configname), 'LIBTOOLFLAGS_%s' % configname) libraries = spec.get('libraries') if libraries: # Remove duplicate entries libraries = gyp.common.uniquer(libraries) if self.flavor == 'mac': libraries = self.xcode_settings.AdjustLibraries(libraries) self.WriteList(libraries, 'LIBS') self.WriteLn('%s: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))' % QuoteSpaces(self.output_binary)) self.WriteLn('%s: LIBS := $(LIBS)' % QuoteSpaces(self.output_binary)) if self.flavor == 'mac': self.WriteLn('%s: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))' % QuoteSpaces(self.output_binary)) # Postbuild actions. Like actions, but implicitly depend on the target's # output. postbuilds = [] if self.flavor == 'mac': if target_postbuilds: postbuilds.append('$(TARGET_POSTBUILDS_$(BUILDTYPE))') postbuilds.extend( gyp.xcode_emulation.GetSpecPostbuildCommands(spec)) if postbuilds: # Envvars may be referenced by TARGET_POSTBUILDS_$(BUILDTYPE), # so we must output its definition first, since we declare variables # using ":=". self.WriteSortedXcodeEnv(self.output, self.GetSortedXcodePostbuildEnv()) for configname in target_postbuilds: self.WriteLn('%s: TARGET_POSTBUILDS_%s := %s' % (QuoteSpaces(self.output), configname, gyp.common.EncodePOSIXShellList(target_postbuilds[configname]))) # Postbuilds expect to be run in the gyp file's directory, so insert an # implicit postbuild to cd to there. postbuilds.insert(0, gyp.common.EncodePOSIXShellList(['cd', self.path])) for i in range(len(postbuilds)): if not postbuilds[i].startswith('$'): postbuilds[i] = EscapeShellArgument(postbuilds[i]) self.WriteLn('%s: builddir := $(abs_builddir)' % QuoteSpaces(self.output)) self.WriteLn('%s: POSTBUILDS := %s' % ( QuoteSpaces(self.output), ' '.join(postbuilds))) # A bundle directory depends on its dependencies such as bundle resources # and bundle binary. When all dependencies have been built, the bundle # needs to be packaged. if self.is_mac_bundle: # If the framework doesn't contain a binary, then nothing depends # on the actions -- make the framework depend on them directly too. self.WriteDependencyOnExtraOutputs(self.output, extra_outputs) # Bundle dependencies. Note that the code below adds actions to this # target, so if you move these two lines, move the lines below as well. self.WriteList([QuoteSpaces(dep) for dep in bundle_deps], 'BUNDLE_DEPS') self.WriteLn('%s: $(BUNDLE_DEPS)' % QuoteSpaces(self.output)) # After the framework is built, package it. Needs to happen before # postbuilds, since postbuilds depend on this. if self.type in ('shared_library', 'loadable_module'): self.WriteLn('\t@$(call do_cmd,mac_package_framework,,,%s)' % self.xcode_settings.GetFrameworkVersion()) # Bundle postbuilds can depend on the whole bundle, so run them after # the bundle is packaged, not already after the bundle binary is done. if postbuilds: self.WriteLn('\t@$(call do_postbuilds)') postbuilds = [] # Don't write postbuilds for target's output. # Needed by test/mac/gyptest-rebuild.py. self.WriteLn('\t@true # No-op, used by tests') # Since this target depends on binary and resources which are in # nested subfolders, the framework directory will be older than # its dependencies usually. To prevent this rule from executing # on every build (expensive, especially with postbuilds), expliclity # update the time on the framework directory. self.WriteLn('\t@touch -c %s' % QuoteSpaces(self.output)) if postbuilds: assert not self.is_mac_bundle, ('Postbuilds for bundles should be done ' 'on the bundle, not the binary (target \'%s\')' % self.target) assert 'product_dir' not in spec, ('Postbuilds do not work with ' 'custom product_dir') if self.type == 'executable': self.WriteLn('%s: LD_INPUTS := %s' % ( QuoteSpaces(self.output_binary), ' '.join(QuoteSpaces(dep) for dep in link_deps))) if self.toolset == 'host' and self.flavor == 'android': self.WriteDoCmd([self.output_binary], link_deps, 'link_host', part_of_all, postbuilds=postbuilds) else: self.WriteDoCmd([self.output_binary], link_deps, 'link', part_of_all, postbuilds=postbuilds) elif self.type == 'static_library': for link_dep in link_deps: assert ' ' not in link_dep, ( "Spaces in alink input filenames not supported (%s)" % link_dep) if (self.flavor not in ('mac', 'openbsd', 'netbsd', 'win') and not self.is_standalone_static_library): self.WriteDoCmd([self.output_binary], link_deps, 'alink_thin', part_of_all, postbuilds=postbuilds) else: self.WriteDoCmd([self.output_binary], link_deps, 'alink', part_of_all, postbuilds=postbuilds) elif self.type == 'shared_library': self.WriteLn('%s: LD_INPUTS := %s' % ( QuoteSpaces(self.output_binary), ' '.join(QuoteSpaces(dep) for dep in link_deps))) self.WriteDoCmd([self.output_binary], link_deps, 'solink', part_of_all, postbuilds=postbuilds) elif self.type == 'loadable_module': for link_dep in link_deps: assert ' ' not in link_dep, ( "Spaces in module input filenames not supported (%s)" % link_dep) if self.toolset == 'host' and self.flavor == 'android': self.WriteDoCmd([self.output_binary], link_deps, 'solink_module_host', part_of_all, postbuilds=postbuilds) else: self.WriteDoCmd( [self.output_binary], link_deps, 'solink_module', part_of_all, postbuilds=postbuilds) elif self.type == 'none': # Write a stamp line. self.WriteDoCmd([self.output_binary], deps, 'touch', part_of_all, postbuilds=postbuilds) else: print("WARNING: no output for", self.type, self.target) # Add an alias for each target (if there are any outputs). # Installable target aliases are created below. if ((self.output and self.output != self.target) and (self.type not in self._INSTALLABLE_TARGETS)): self.WriteMakeRule([self.target], [self.output], comment='Add target alias', phony = True) if part_of_all: self.WriteMakeRule(['all'], [self.target], comment = 'Add target alias to "all" target.', phony = True) # Add special-case rules for our installable targets. # 1) They need to install to the build dir or "product" dir. # 2) They get shortcuts for building (e.g. "make chrome"). # 3) They are part of "make all". if (self.type in self._INSTALLABLE_TARGETS or self.is_standalone_static_library): if self.type == 'shared_library': file_desc = 'shared library' elif self.type == 'static_library': file_desc = 'static library' else: file_desc = 'executable' install_path = self._InstallableTargetInstallPath() installable_deps = [self.output] if (self.flavor == 'mac' and not 'product_dir' in spec and self.toolset == 'target'): # On mac, products are created in install_path immediately. assert install_path == self.output, '%s != %s' % ( install_path, self.output) # Point the target alias to the final binary output. self.WriteMakeRule([self.target], [install_path], comment='Add target alias', phony = True) if install_path != self.output: assert not self.is_mac_bundle # See comment a few lines above. self.WriteDoCmd([install_path], [self.output], 'copy', comment = 'Copy this to the %s output path.' % file_desc, part_of_all=part_of_all) installable_deps.append(install_path) if self.output != self.alias and self.alias != self.target: self.WriteMakeRule([self.alias], installable_deps, comment = 'Short alias for building this %s.' % file_desc, phony = True) if part_of_all: self.WriteMakeRule(['all'], [install_path], comment = 'Add %s to "all" target.' % file_desc, phony = True) def WriteList(self, value_list, variable=None, prefix='', quoter=QuoteIfNecessary): """Write a variable definition that is a list of values. E.g. WriteList(['a','b'], 'foo', prefix='blah') writes out foo = blaha blahb but in a pretty-printed style. """ values = '' if value_list: value_list = [quoter(prefix + l) for l in value_list] values = ' \\\n\t' + ' \\\n\t'.join(value_list) self.fp.write('%s :=%s\n\n' % (variable, values)) def WriteDoCmd(self, outputs, inputs, command, part_of_all, comment=None, postbuilds=False): """Write a Makefile rule that uses do_cmd. This makes the outputs dependent on the command line that was run, as well as support the V= make command line flag. """ suffix = '' if postbuilds: assert ',' not in command suffix = ',,1' # Tell do_cmd to honor $POSTBUILDS self.WriteMakeRule(outputs, inputs, actions = ['$(call do_cmd,%s%s)' % (command, suffix)], comment = comment, command = command, force = True) # Add our outputs to the list of targets we read depfiles from. # all_deps is only used for deps file reading, and for deps files we replace # spaces with ? because escaping doesn't work with make's $(sort) and # other functions. outputs = [QuoteSpaces(o, SPACE_REPLACEMENT) for o in outputs] self.WriteLn('all_deps += %s' % ' '.join(outputs)) def WriteMakeRule(self, outputs, inputs, actions=None, comment=None, order_only=False, force=False, phony=False, command=None): """Write a Makefile rule, with some extra tricks. outputs: a list of outputs for the rule (note: this is not directly supported by make; see comments below) inputs: a list of inputs for the rule actions: a list of shell commands to run for the rule comment: a comment to put in the Makefile above the rule (also useful for making this Python script's code self-documenting) order_only: if true, makes the dependency order-only force: if true, include FORCE_DO_CMD as an order-only dep phony: if true, the rule does not actually generate the named output, the output is just a name to run the rule command: (optional) command name to generate unambiguous labels """ outputs = [QuoteSpaces(o) for o in outputs] inputs = [QuoteSpaces(i) for i in inputs] if comment: self.WriteLn('# ' + comment) if phony: self.WriteLn('.PHONY: ' + ' '.join(outputs)) if actions: self.WriteLn("%s: TOOLSET := $(TOOLSET)" % outputs[0]) force_append = ' FORCE_DO_CMD' if force else '' if order_only: # Order only rule: Just write a simple rule. # TODO(evanm): just make order_only a list of deps instead of this hack. self.WriteLn('%s: | %s%s' % (' '.join(outputs), ' '.join(inputs), force_append)) elif len(outputs) == 1: # Regular rule, one output: Just write a simple rule. self.WriteLn('%s: %s%s' % (outputs[0], ' '.join(inputs), force_append)) else: # Regular rule, more than one output: Multiple outputs are tricky in # make. We will write three rules: # - All outputs depend on an intermediate file. # - Make .INTERMEDIATE depend on the intermediate. # - The intermediate file depends on the inputs and executes the # actual command. # - The intermediate recipe will 'touch' the intermediate file. # - The multi-output rule will have an do-nothing recipe. # Hash the target name to avoid generating overlong filenames. cmddigest = hashlib.sha1((command or self.target).encode('utf-8')).hexdigest() intermediate = "%s.intermediate" % cmddigest self.WriteLn('%s: %s' % (' '.join(outputs), intermediate)) self.WriteLn('\t%s' % '@:') self.WriteLn('%s: %s' % ('.INTERMEDIATE', intermediate)) self.WriteLn('%s: %s%s' % (intermediate, ' '.join(inputs), force_append)) actions.insert(0, '$(call do_cmd,touch)') if actions: for action in actions: self.WriteLn('\t%s' % action) self.WriteLn() def WriteAndroidNdkModuleRule(self, module_name, all_sources, link_deps): """Write a set of LOCAL_XXX definitions for Android NDK. These variable definitions will be used by Android NDK but do nothing for non-Android applications. Arguments: module_name: Android NDK module name, which must be unique among all module names. all_sources: A list of source files (will be filtered by Compilable). link_deps: A list of link dependencies, which must be sorted in the order from dependencies to dependents. """ if self.type not in ('executable', 'shared_library', 'static_library'): return self.WriteLn('# Variable definitions for Android applications') self.WriteLn('include $(CLEAR_VARS)') self.WriteLn('LOCAL_MODULE := ' + module_name) self.WriteLn('LOCAL_CFLAGS := $(CFLAGS_$(BUILDTYPE)) ' '$(DEFS_$(BUILDTYPE)) ' # LOCAL_CFLAGS is applied to both of C and C++. There is # no way to specify $(CFLAGS_C_$(BUILDTYPE)) only for C # sources. '$(CFLAGS_C_$(BUILDTYPE)) ' # $(INCS_$(BUILDTYPE)) includes the prefix '-I' while # LOCAL_C_INCLUDES does not expect it. So put it in # LOCAL_CFLAGS. '$(INCS_$(BUILDTYPE))') # LOCAL_CXXFLAGS is obsolete and LOCAL_CPPFLAGS is preferred. self.WriteLn('LOCAL_CPPFLAGS := $(CFLAGS_CC_$(BUILDTYPE))') self.WriteLn('LOCAL_C_INCLUDES :=') self.WriteLn('LOCAL_LDLIBS := $(LDFLAGS_$(BUILDTYPE)) $(LIBS)') # Detect the C++ extension. cpp_ext = {'.cc': 0, '.cpp': 0, '.cxx': 0} default_cpp_ext = '.cpp' for filename in all_sources: ext = os.path.splitext(filename)[1] if ext in cpp_ext: cpp_ext[ext] += 1 if cpp_ext[ext] > cpp_ext[default_cpp_ext]: default_cpp_ext = ext self.WriteLn('LOCAL_CPP_EXTENSION := ' + default_cpp_ext) self.WriteList(list(map(self.Absolutify, filter(Compilable, all_sources))), 'LOCAL_SRC_FILES') # Filter out those which do not match prefix and suffix and produce # the resulting list without prefix and suffix. def DepsToModules(deps, prefix, suffix): modules = [] for filepath in deps: filename = os.path.basename(filepath) if filename.startswith(prefix) and filename.endswith(suffix): modules.append(filename[len(prefix):-len(suffix)]) return modules # Retrieve the default value of 'SHARED_LIB_SUFFIX' params = {'flavor': 'linux'} default_variables = {} CalculateVariables(default_variables, params) self.WriteList( DepsToModules(link_deps, generator_default_variables['SHARED_LIB_PREFIX'], default_variables['SHARED_LIB_SUFFIX']), 'LOCAL_SHARED_LIBRARIES') self.WriteList( DepsToModules(link_deps, generator_default_variables['STATIC_LIB_PREFIX'], generator_default_variables['STATIC_LIB_SUFFIX']), 'LOCAL_STATIC_LIBRARIES') if self.type == 'executable': self.WriteLn('include $(BUILD_EXECUTABLE)') elif self.type == 'shared_library': self.WriteLn('include $(BUILD_SHARED_LIBRARY)') elif self.type == 'static_library': self.WriteLn('include $(BUILD_STATIC_LIBRARY)') self.WriteLn() def WriteLn(self, text=''): self.fp.write(text + '\n') def GetSortedXcodeEnv(self, additional_settings=None): return gyp.xcode_emulation.GetSortedXcodeEnv( self.xcode_settings, "$(abs_builddir)", os.path.join("$(abs_srcdir)", self.path), "$(BUILDTYPE)", additional_settings) def GetSortedXcodePostbuildEnv(self): # CHROMIUM_STRIP_SAVE_FILE is a chromium-specific hack. # TODO(thakis): It would be nice to have some general mechanism instead. strip_save_file = self.xcode_settings.GetPerTargetSetting( 'CHROMIUM_STRIP_SAVE_FILE', '') # Even if strip_save_file is empty, explicitly write it. Else a postbuild # might pick up an export from an earlier target. return self.GetSortedXcodeEnv( additional_settings={'CHROMIUM_STRIP_SAVE_FILE': strip_save_file}) def WriteSortedXcodeEnv(self, target, env): for k, v in env: # For # foo := a\ b # the escaped space does the right thing. For # export foo := a\ b # it does not -- the backslash is written to the env as literal character. # So don't escape spaces in |env[k]|. self.WriteLn('%s: export %s := %s' % (QuoteSpaces(target), k, v)) def Objectify(self, path): """Convert a path to its output directory form.""" if '$(' in path: path = path.replace('$(obj)/', '$(obj).%s/$(TARGET)/' % self.toolset) if not '$(obj)' in path: path = '$(obj).%s/$(TARGET)/%s' % (self.toolset, path) return path def Pchify(self, path, lang): """Convert a prefix header path to its output directory form.""" path = self.Absolutify(path) if '$(' in path: path = path.replace('$(obj)/', '$(obj).%s/$(TARGET)/pch-%s' % (self.toolset, lang)) return path return '$(obj).%s/$(TARGET)/pch-%s/%s' % (self.toolset, lang, path) def Absolutify(self, path): """Convert a subdirectory-relative path into a base-relative path. Skips over paths that contain variables.""" if '$(' in path: # Don't call normpath in this case, as it might collapse the # path too aggressively if it features '..'. However it's still # important to strip trailing slashes. return path.rstrip('/') return os.path.normpath(os.path.join(self.path, path)) def ExpandInputRoot(self, template, expansion, dirname): if '%(INPUT_ROOT)s' not in template and '%(INPUT_DIRNAME)s' not in template: return template path = template % { 'INPUT_ROOT': expansion, 'INPUT_DIRNAME': dirname, } return path def _InstallableTargetInstallPath(self): """Returns the location of the final output for an installable target.""" # Xcode puts shared_library results into PRODUCT_DIR, and some gyp files # rely on this. Emulate this behavior for mac. # XXX(TooTallNate): disabling this code since we don't want this behavior... #if (self.type == 'shared_library' and # (self.flavor != 'mac' or self.toolset != 'target')): # # Install all shared libs into a common directory (per toolset) for # # convenient access with LD_LIBRARY_PATH. # return '$(builddir)/lib.%s/%s' % (self.toolset, self.alias) return '$(builddir)/' + self.alias def WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files): """Write the target to regenerate the Makefile.""" options = params['options'] build_files_args = [gyp.common.RelativePath(filename, options.toplevel_dir) for filename in params['build_files_arg']] gyp_binary = gyp.common.FixIfRelativePath(params['gyp_binary'], options.toplevel_dir) if not gyp_binary.startswith(os.sep): gyp_binary = os.path.join('.', gyp_binary) root_makefile.write( "quiet_cmd_regen_makefile = ACTION Regenerating $@\n" "cmd_regen_makefile = cd $(srcdir); %(cmd)s\n" "%(makefile_name)s: %(deps)s\n" "\t$(call do_cmd,regen_makefile)\n\n" % { 'makefile_name': makefile_name, 'deps': ' '.join(SourceifyAndQuoteSpaces(bf) for bf in build_files), 'cmd': gyp.common.EncodePOSIXShellList( [gyp_binary, '-fmake'] + gyp.RegenerateFlags(options) + build_files_args)}) def PerformBuild(data, configurations, params): options = params['options'] for config in configurations: arguments = ['make'] if options.toplevel_dir and options.toplevel_dir != '.': arguments += '-C', options.toplevel_dir arguments.append('BUILDTYPE=' + config) print('Building [%s]: %s' % (config, arguments)) subprocess.check_call(arguments) def GenerateOutput(target_list, target_dicts, data, params): options = params['options'] flavor = gyp.common.GetFlavor(params) generator_flags = params.get('generator_flags', {}) builddir_name = generator_flags.get('output_dir', 'out') android_ndk_version = generator_flags.get('android_ndk_version', None) default_target = generator_flags.get('default_target', 'all') def CalculateMakefilePath(build_file, base_name): """Determine where to write a Makefile for a given gyp file.""" # Paths in gyp files are relative to the .gyp file, but we want # paths relative to the source root for the master makefile. Grab # the path of the .gyp file as the base to relativize against. # E.g. "foo/bar" when we're constructing targets for "foo/bar/baz.gyp". base_path = gyp.common.RelativePath(os.path.dirname(build_file), options.depth) # We write the file in the base_path directory. output_file = os.path.join(options.depth, base_path, base_name) if options.generator_output: output_file = os.path.join( options.depth, options.generator_output, base_path, base_name) base_path = gyp.common.RelativePath(os.path.dirname(build_file), options.toplevel_dir) return base_path, output_file # TODO: search for the first non-'Default' target. This can go # away when we add verification that all targets have the # necessary configurations. default_configuration = None toolsets = set([target_dicts[target]['toolset'] for target in target_list]) for target in target_list: spec = target_dicts[target] if spec['default_configuration'] != 'Default': default_configuration = spec['default_configuration'] break if not default_configuration: default_configuration = 'Default' srcdir = '.' makefile_name = 'Makefile' + options.suffix makefile_path = os.path.join(options.toplevel_dir, makefile_name) if options.generator_output: global srcdir_prefix makefile_path = os.path.join( options.toplevel_dir, options.generator_output, makefile_name) srcdir = gyp.common.RelativePath(srcdir, options.generator_output) srcdir_prefix = '$(srcdir)/' flock_command= 'flock' copy_archive_arguments = '-af' makedep_arguments = '-MMD' header_params = { 'default_target': default_target, 'builddir': builddir_name, 'default_configuration': default_configuration, 'flock': flock_command, 'flock_index': 1, 'link_commands': LINK_COMMANDS_LINUX, 'extra_commands': '', 'srcdir': srcdir, 'copy_archive_args': copy_archive_arguments, 'makedep_args': makedep_arguments, 'CC.target': GetEnvironFallback(('CC_target', 'CC'), '$(CC)'), 'AR.target': GetEnvironFallback(('AR_target', 'AR'), '$(AR)'), 'CXX.target': GetEnvironFallback(('CXX_target', 'CXX'), '$(CXX)'), 'LINK.target': GetEnvironFallback(('LINK_target', 'LINK'), '$(LINK)'), 'CC.host': GetEnvironFallback(('CC_host', 'CC'), 'gcc'), 'AR.host': GetEnvironFallback(('AR_host', 'AR'), 'ar'), 'CXX.host': GetEnvironFallback(('CXX_host', 'CXX'), 'g++'), 'LINK.host': GetEnvironFallback(('LINK_host', 'LINK'), '$(CXX.host)'), } if flavor == 'mac': flock_command = './gyp-mac-tool flock' header_params.update({ 'flock': flock_command, 'flock_index': 2, 'link_commands': LINK_COMMANDS_MAC, 'extra_commands': SHARED_HEADER_MAC_COMMANDS, }) elif flavor == 'android': header_params.update({ 'link_commands': LINK_COMMANDS_ANDROID, }) elif flavor == 'zos': copy_archive_arguments = '-fPR' makedep_arguments = '-qmakedep=gcc' header_params.update({ 'copy_archive_args': copy_archive_arguments, 'makedep_args': makedep_arguments, 'link_commands': LINK_COMMANDS_OS390, 'CC.target': GetEnvironFallback(('CC_target', 'CC'), 'njsc'), 'CXX.target': GetEnvironFallback(('CXX_target', 'CXX'), 'njsc++'), 'CC.host': GetEnvironFallback(('CC_host', 'CC'), 'njsc'), 'CXX.host': GetEnvironFallback(('CXX_host', 'CXX'), 'njsc++'), }) elif flavor == 'solaris': header_params.update({ 'flock': './gyp-flock-tool flock', 'flock_index': 2, }) elif flavor == 'freebsd': # Note: OpenBSD has sysutils/flock. lockf seems to be FreeBSD specific. header_params.update({ 'flock': 'lockf', }) elif flavor == 'openbsd': copy_archive_arguments = '-pPRf' header_params.update({ 'copy_archive_args': copy_archive_arguments, }) elif flavor == 'aix': copy_archive_arguments = '-pPRf' header_params.update({ 'copy_archive_args': copy_archive_arguments, 'link_commands': LINK_COMMANDS_AIX, 'flock': './gyp-flock-tool flock', 'flock_index': 2, }) build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0]) make_global_settings_array = data[build_file].get('make_global_settings', []) wrappers = {} for key, value in make_global_settings_array: if key.endswith('_wrapper'): wrappers[key[:-len('_wrapper')]] = '$(abspath %s)' % value make_global_settings = '' for key, value in make_global_settings_array: if re.match('.*_wrapper', key): continue if value[0] != '$': value = '$(abspath %s)' % value wrapper = wrappers.get(key) if wrapper: value = '%s %s' % (wrapper, value) del wrappers[key] if key in ('CC', 'CC.host', 'CXX', 'CXX.host'): make_global_settings += ( 'ifneq (,$(filter $(origin %s), undefined default))\n' % key) # Let gyp-time envvars win over global settings. env_key = key.replace('.', '_') # CC.host -> CC_host if env_key in os.environ: value = os.environ[env_key] make_global_settings += ' %s = %s\n' % (key, value) make_global_settings += 'endif\n' else: make_global_settings += '%s ?= %s\n' % (key, value) # TODO(ukai): define cmd when only wrapper is specified in # make_global_settings. header_params['make_global_settings'] = make_global_settings gyp.common.EnsureDirExists(makefile_path) root_makefile = open(makefile_path, 'w') root_makefile.write(SHARED_HEADER % header_params) # Currently any versions have the same effect, but in future the behavior # could be different. if android_ndk_version: root_makefile.write( '# Define LOCAL_PATH for build of Android applications.\n' 'LOCAL_PATH := $(call my-dir)\n' '\n') for toolset in toolsets: root_makefile.write('TOOLSET := %s\n' % toolset) WriteRootHeaderSuffixRules(root_makefile) # Put build-time support tools next to the root Makefile. dest_path = os.path.dirname(makefile_path) gyp.common.CopyTool(flavor, dest_path) # Find the list of targets that derive from the gyp file(s) being built. needed_targets = set() for build_file in params['build_files']: for target in gyp.common.AllTargets(target_list, target_dicts, build_file): needed_targets.add(target) build_files = set() include_list = set() for qualified_target in target_list: build_file, target, toolset = gyp.common.ParseQualifiedTarget( qualified_target) this_make_global_settings = data[build_file].get('make_global_settings', []) assert make_global_settings_array == this_make_global_settings, ( "make_global_settings needs to be the same for all targets. %s vs. %s" % (this_make_global_settings, make_global_settings)) build_files.add(gyp.common.RelativePath(build_file, options.toplevel_dir)) included_files = data[build_file]['included_files'] for included_file in included_files: # The included_files entries are relative to the dir of the build file # that included them, so we have to undo that and then make them relative # to the root dir. relative_include_file = gyp.common.RelativePath( gyp.common.UnrelativePath(included_file, build_file), options.toplevel_dir) abs_include_file = os.path.abspath(relative_include_file) # If the include file is from the ~/.gyp dir, we should use absolute path # so that relocating the src dir doesn't break the path. if (params['home_dot_gyp'] and abs_include_file.startswith(params['home_dot_gyp'])): build_files.add(abs_include_file) else: build_files.add(relative_include_file) base_path, output_file = CalculateMakefilePath(build_file, target + '.' + toolset + options.suffix + '.mk') spec = target_dicts[qualified_target] configs = spec['configurations'] if flavor == 'mac': gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(data[build_file], spec) writer = MakefileWriter(generator_flags, flavor) writer.Write(qualified_target, base_path, output_file, spec, configs, part_of_all=qualified_target in needed_targets) # Our root_makefile lives at the source root. Compute the relative path # from there to the output_file for including. mkfile_rel_path = gyp.common.RelativePath(output_file, os.path.dirname(makefile_path)) include_list.add(mkfile_rel_path) # Write out per-gyp (sub-project) Makefiles. depth_rel_path = gyp.common.RelativePath(options.depth, os.getcwd()) for build_file in build_files: # The paths in build_files were relativized above, so undo that before # testing against the non-relativized items in target_list and before # calculating the Makefile path. build_file = os.path.join(depth_rel_path, build_file) gyp_targets = [target_dicts[target]['target_name'] for target in target_list if target.startswith(build_file) and target in needed_targets] # Only generate Makefiles for gyp files with targets. if not gyp_targets: continue base_path, output_file = CalculateMakefilePath(build_file, os.path.splitext(os.path.basename(build_file))[0] + '.Makefile') makefile_rel_path = gyp.common.RelativePath(os.path.dirname(makefile_path), os.path.dirname(output_file)) writer.WriteSubMake(output_file, makefile_rel_path, gyp_targets, builddir_name) # Write out the sorted list of includes. root_makefile.write('\n') for include_file in sorted(include_list): # We wrap each .mk include in an if statement so users can tell make to # not load a file by setting NO_LOAD. The below make code says, only # load the .mk file if the .mk filename doesn't start with a token in # NO_LOAD. root_makefile.write( "ifeq ($(strip $(foreach prefix,$(NO_LOAD),\\\n" " $(findstring $(join ^,$(prefix)),\\\n" " $(join ^," + include_file + ")))),)\n") root_makefile.write(" include " + include_file + "\n") root_makefile.write("endif\n") root_makefile.write('\n') if (not generator_flags.get('standalone') and generator_flags.get('auto_regeneration', True)): WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) root_makefile.write(SHARED_FOOTER) root_makefile.close() PK!ގ gypd.pynu[# Copyright (c) 2011 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """gypd output module This module produces gyp input as its output. Output files are given the .gypd extension to avoid overwriting the .gyp files that they are generated from. Internal references to .gyp files (such as those found in "dependencies" sections) are not adjusted to point to .gypd files instead; unlike other paths, which are relative to the .gyp or .gypd file, such paths are relative to the directory from which gyp was run to create the .gypd file. This generator module is intended to be a sample and a debugging aid, hence the "d" for "debug" in .gypd. It is useful to inspect the results of the various merges, expansions, and conditional evaluations performed by gyp and to see a representation of what would be fed to a generator module. It's not advisable to rename .gypd files produced by this module to .gyp, because they will have all merges, expansions, and evaluations already performed and the relevant constructs not present in the output; paths to dependencies may be wrong; and various sections that do not belong in .gyp files such as such as "included_files" and "*_excluded" will be present. Output will also be stripped of comments. This is not intended to be a general-purpose gyp pretty-printer; for that, you probably just want to run "pprint.pprint(eval(open('source.gyp').read()))", which will still strip comments but won't do all of the other things done to this module's output. The specific formatting of the output generated by this module is subject to change. """ import gyp.common import errno import os import pprint # These variables should just be spit back out as variable references. _generator_identity_variables = [ 'CONFIGURATION_NAME', 'EXECUTABLE_PREFIX', 'EXECUTABLE_SUFFIX', 'INTERMEDIATE_DIR', 'LIB_DIR', 'PRODUCT_DIR', 'RULE_INPUT_ROOT', 'RULE_INPUT_DIRNAME', 'RULE_INPUT_EXT', 'RULE_INPUT_NAME', 'RULE_INPUT_PATH', 'SHARED_INTERMEDIATE_DIR', 'SHARED_LIB_DIR', 'SHARED_LIB_PREFIX', 'SHARED_LIB_SUFFIX', 'STATIC_LIB_PREFIX', 'STATIC_LIB_SUFFIX', ] # gypd doesn't define a default value for OS like many other generator # modules. Specify "-D OS=whatever" on the command line to provide a value. generator_default_variables = { } # gypd supports multiple toolsets generator_supports_multiple_toolsets = True # TODO(mark): This always uses <, which isn't right. The input module should # notify the generator to tell it which phase it is operating in, and this # module should use < for the early phase and then switch to > for the late # phase. Bonus points for carrying @ back into the output too. for v in _generator_identity_variables: generator_default_variables[v] = '<(%s)' % v def GenerateOutput(target_list, target_dicts, data, params): output_files = {} for qualified_target in target_list: [input_file, target] = \ gyp.common.ParseQualifiedTarget(qualified_target)[0:2] if input_file[-4:] != '.gyp': continue input_file_stem = input_file[:-4] output_file = input_file_stem + params['options'].suffix + '.gypd' if not output_file in output_files: output_files[output_file] = input_file for output_file, input_file in output_files.items(): output = open(output_file, 'w') pprint.pprint(data[input_file], output) output.close() PK!1wo ninja_test.pynu[#! /usr/bin/python2 # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Unit tests for the ninja.py file. """ import gyp.generator.ninja as ninja import unittest import sys class TestPrefixesAndSuffixes(unittest.TestCase): def test_BinaryNamesWindows(self): # These cannot run on non-Windows as they require a VS installation to # correctly handle variable expansion. if sys.platform.startswith('win'): writer = ninja.NinjaWriter('foo', 'wee', '.', '.', 'build.ninja', '.', 'build.ninja', 'win') spec = { 'target_name': 'wee' } self.assertTrue(writer.ComputeOutputFileName(spec, 'executable'). endswith('.exe')) self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library'). endswith('.dll')) self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library'). endswith('.lib')) def test_BinaryNamesLinux(self): writer = ninja.NinjaWriter('foo', 'wee', '.', '.', 'build.ninja', '.', 'build.ninja', 'linux') spec = { 'target_name': 'wee' } self.assertTrue('.' not in writer.ComputeOutputFileName(spec, 'executable')) self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library'). startswith('lib')) self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library'). startswith('lib')) self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library'). endswith('.so')) self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library'). endswith('.a')) if __name__ == '__main__': unittest.main() PK!7欄ƮƮcmake.pynu[# Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """cmake output module This module is under development and should be considered experimental. This module produces cmake (2.8.8+) input as its output. One CMakeLists.txt is created for each configuration. This module's original purpose was to support editing in IDEs like KDevelop which use CMake for project management. It is also possible to use CMake to generate projects for other IDEs such as eclipse cdt and code::blocks. QtCreator will convert the CMakeLists.txt to a code::blocks cbp for the editor to read, but build using CMake. As a result QtCreator editor is unaware of compiler defines. The generated CMakeLists.txt can also be used to build on Linux. There is currently no support for building on platforms other than Linux. The generated CMakeLists.txt should properly compile all projects. However, there is a mismatch between gyp and cmake with regard to linking. All attempts are made to work around this, but CMake sometimes sees -Wl,--start-group as a library and incorrectly repeats it. As a result the output of this generator should not be relied on for building. When using with kdevelop, use version 4.4+. Previous versions of kdevelop will not be able to find the header file directories described in the generated CMakeLists.txt file. """ from __future__ import print_function import multiprocessing import os import signal import string import subprocess import gyp.common generator_default_variables = { 'EXECUTABLE_PREFIX': '', 'EXECUTABLE_SUFFIX': '', 'STATIC_LIB_PREFIX': 'lib', 'STATIC_LIB_SUFFIX': '.a', 'SHARED_LIB_PREFIX': 'lib', 'SHARED_LIB_SUFFIX': '.so', 'SHARED_LIB_DIR': '${builddir}/lib.${TOOLSET}', 'LIB_DIR': '${obj}.${TOOLSET}', 'INTERMEDIATE_DIR': '${obj}.${TOOLSET}/${TARGET}/geni', 'SHARED_INTERMEDIATE_DIR': '${obj}/gen', 'PRODUCT_DIR': '${builddir}', 'RULE_INPUT_PATH': '${RULE_INPUT_PATH}', 'RULE_INPUT_DIRNAME': '${RULE_INPUT_DIRNAME}', 'RULE_INPUT_NAME': '${RULE_INPUT_NAME}', 'RULE_INPUT_ROOT': '${RULE_INPUT_ROOT}', 'RULE_INPUT_EXT': '${RULE_INPUT_EXT}', 'CONFIGURATION_NAME': '${configuration}', } FULL_PATH_VARS = ('${CMAKE_CURRENT_LIST_DIR}', '${builddir}', '${obj}') generator_supports_multiple_toolsets = True generator_wants_static_library_dependencies_adjusted = True COMPILABLE_EXTENSIONS = { '.c': 'cc', '.cc': 'cxx', '.cpp': 'cxx', '.cxx': 'cxx', '.s': 's', # cc '.S': 's', # cc } def RemovePrefix(a, prefix): """Returns 'a' without 'prefix' if it starts with 'prefix'.""" return a[len(prefix):] if a.startswith(prefix) else a def CalculateVariables(default_variables, params): """Calculate additional variables for use in the build (called by gyp).""" default_variables.setdefault('OS', gyp.common.GetFlavor(params)) def Compilable(filename): """Return true if the file is compilable (should be in OBJS).""" return any(filename.endswith(e) for e in COMPILABLE_EXTENSIONS) def Linkable(filename): """Return true if the file is linkable (should be on the link line).""" return filename.endswith('.o') def NormjoinPathForceCMakeSource(base_path, rel_path): """Resolves rel_path against base_path and returns the result. If rel_path is an absolute path it is returned unchanged. Otherwise it is resolved against base_path and normalized. If the result is a relative path, it is forced to be relative to the CMakeLists.txt. """ if os.path.isabs(rel_path): return rel_path if any([rel_path.startswith(var) for var in FULL_PATH_VARS]): return rel_path # TODO: do we need to check base_path for absolute variables as well? return os.path.join('${CMAKE_CURRENT_LIST_DIR}', os.path.normpath(os.path.join(base_path, rel_path))) def NormjoinPath(base_path, rel_path): """Resolves rel_path against base_path and returns the result. TODO: what is this really used for? If rel_path begins with '$' it is returned unchanged. Otherwise it is resolved against base_path if relative, then normalized. """ if rel_path.startswith('$') and not rel_path.startswith('${configuration}'): return rel_path return os.path.normpath(os.path.join(base_path, rel_path)) def CMakeStringEscape(a): """Escapes the string 'a' for use inside a CMake string. This means escaping '\' otherwise it may be seen as modifying the next character '"' otherwise it will end the string ';' otherwise the string becomes a list The following do not need to be escaped '#' when the lexer is in string state, this does not start a comment The following are yet unknown '$' generator variables (like ${obj}) must not be escaped, but text $ should be escaped what is wanted is to know which $ come from generator variables """ return a.replace('\\', '\\\\').replace(';', '\\;').replace('"', '\\"') def SetFileProperty(output, source_name, property_name, values, sep): """Given a set of source file, sets the given property on them.""" output.write('set_source_files_properties(') output.write(source_name) output.write(' PROPERTIES ') output.write(property_name) output.write(' "') for value in values: output.write(CMakeStringEscape(value)) output.write(sep) output.write('")\n') def SetFilesProperty(output, variable, property_name, values, sep): """Given a set of source files, sets the given property on them.""" output.write('set_source_files_properties(') WriteVariable(output, variable) output.write(' PROPERTIES ') output.write(property_name) output.write(' "') for value in values: output.write(CMakeStringEscape(value)) output.write(sep) output.write('")\n') def SetTargetProperty(output, target_name, property_name, values, sep=''): """Given a target, sets the given property.""" output.write('set_target_properties(') output.write(target_name) output.write(' PROPERTIES ') output.write(property_name) output.write(' "') for value in values: output.write(CMakeStringEscape(value)) output.write(sep) output.write('")\n') def SetVariable(output, variable_name, value): """Sets a CMake variable.""" output.write('set(') output.write(variable_name) output.write(' "') output.write(CMakeStringEscape(value)) output.write('")\n') def SetVariableList(output, variable_name, values): """Sets a CMake variable to a list.""" if not values: return SetVariable(output, variable_name, "") if len(values) == 1: return SetVariable(output, variable_name, values[0]) output.write('list(APPEND ') output.write(variable_name) output.write('\n "') output.write('"\n "'.join([CMakeStringEscape(value) for value in values])) output.write('")\n') def UnsetVariable(output, variable_name): """Unsets a CMake variable.""" output.write('unset(') output.write(variable_name) output.write(')\n') def WriteVariable(output, variable_name, prepend=None): if prepend: output.write(prepend) output.write('${') output.write(variable_name) output.write('}') class CMakeTargetType(object): def __init__(self, command, modifier, property_modifier): self.command = command self.modifier = modifier self.property_modifier = property_modifier cmake_target_type_from_gyp_target_type = { 'executable': CMakeTargetType('add_executable', None, 'RUNTIME'), 'static_library': CMakeTargetType('add_library', 'STATIC', 'ARCHIVE'), 'shared_library': CMakeTargetType('add_library', 'SHARED', 'LIBRARY'), 'loadable_module': CMakeTargetType('add_library', 'MODULE', 'LIBRARY'), 'none': CMakeTargetType('add_custom_target', 'SOURCES', None), } def StringToCMakeTargetName(a): """Converts the given string 'a' to a valid CMake target name. All invalid characters are replaced by '_'. Invalid for cmake: ' ', '/', '(', ')', '"' Invalid for make: ':' Invalid for unknown reasons but cause failures: '.' """ try: return a.translate(str.maketrans(' /():."', '_______')) except AttributeError: return a.translate(string.maketrans(' /():."', '_______')) def WriteActions(target_name, actions, extra_sources, extra_deps, path_to_gyp, output): """Write CMake for the 'actions' in the target. Args: target_name: the name of the CMake target being generated. actions: the Gyp 'actions' dict for this target. extra_sources: [(, )] to append with generated source files. extra_deps: [] to append with generated targets. path_to_gyp: relative path from CMakeLists.txt being generated to the Gyp file in which the target being generated is defined. """ for action in actions: action_name = StringToCMakeTargetName(action['action_name']) action_target_name = '%s__%s' % (target_name, action_name) inputs = action['inputs'] inputs_name = action_target_name + '__input' SetVariableList(output, inputs_name, [NormjoinPathForceCMakeSource(path_to_gyp, dep) for dep in inputs]) outputs = action['outputs'] cmake_outputs = [NormjoinPathForceCMakeSource(path_to_gyp, out) for out in outputs] outputs_name = action_target_name + '__output' SetVariableList(output, outputs_name, cmake_outputs) # Build up a list of outputs. # Collect the output dirs we'll need. dirs = set(dir for dir in (os.path.dirname(o) for o in outputs) if dir) if int(action.get('process_outputs_as_sources', False)): extra_sources.extend(zip(cmake_outputs, outputs)) # add_custom_command output.write('add_custom_command(OUTPUT ') WriteVariable(output, outputs_name) output.write('\n') if len(dirs) > 0: for directory in dirs: output.write(' COMMAND ${CMAKE_COMMAND} -E make_directory ') output.write(directory) output.write('\n') output.write(' COMMAND ') output.write(gyp.common.EncodePOSIXShellList(action['action'])) output.write('\n') output.write(' DEPENDS ') WriteVariable(output, inputs_name) output.write('\n') output.write(' WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/') output.write(path_to_gyp) output.write('\n') output.write(' COMMENT ') if 'message' in action: output.write(action['message']) else: output.write(action_target_name) output.write('\n') output.write(' VERBATIM\n') output.write(')\n') # add_custom_target output.write('add_custom_target(') output.write(action_target_name) output.write('\n DEPENDS ') WriteVariable(output, outputs_name) output.write('\n SOURCES ') WriteVariable(output, inputs_name) output.write('\n)\n') extra_deps.append(action_target_name) def NormjoinRulePathForceCMakeSource(base_path, rel_path, rule_source): if rel_path.startswith(("${RULE_INPUT_PATH}","${RULE_INPUT_DIRNAME}")): if any([rule_source.startswith(var) for var in FULL_PATH_VARS]): return rel_path return NormjoinPathForceCMakeSource(base_path, rel_path) def WriteRules(target_name, rules, extra_sources, extra_deps, path_to_gyp, output): """Write CMake for the 'rules' in the target. Args: target_name: the name of the CMake target being generated. actions: the Gyp 'actions' dict for this target. extra_sources: [(, )] to append with generated source files. extra_deps: [] to append with generated targets. path_to_gyp: relative path from CMakeLists.txt being generated to the Gyp file in which the target being generated is defined. """ for rule in rules: rule_name = StringToCMakeTargetName(target_name + '__' + rule['rule_name']) inputs = rule.get('inputs', []) inputs_name = rule_name + '__input' SetVariableList(output, inputs_name, [NormjoinPathForceCMakeSource(path_to_gyp, dep) for dep in inputs]) outputs = rule['outputs'] var_outputs = [] for count, rule_source in enumerate(rule.get('rule_sources', [])): action_name = rule_name + '_' + str(count) rule_source_dirname, rule_source_basename = os.path.split(rule_source) rule_source_root, rule_source_ext = os.path.splitext(rule_source_basename) SetVariable(output, 'RULE_INPUT_PATH', rule_source) SetVariable(output, 'RULE_INPUT_DIRNAME', rule_source_dirname) SetVariable(output, 'RULE_INPUT_NAME', rule_source_basename) SetVariable(output, 'RULE_INPUT_ROOT', rule_source_root) SetVariable(output, 'RULE_INPUT_EXT', rule_source_ext) # Build up a list of outputs. # Collect the output dirs we'll need. dirs = set(dir for dir in (os.path.dirname(o) for o in outputs) if dir) # Create variables for the output, as 'local' variable will be unset. these_outputs = [] for output_index, out in enumerate(outputs): output_name = action_name + '_' + str(output_index) SetVariable(output, output_name, NormjoinRulePathForceCMakeSource(path_to_gyp, out, rule_source)) if int(rule.get('process_outputs_as_sources', False)): extra_sources.append(('${' + output_name + '}', out)) these_outputs.append('${' + output_name + '}') var_outputs.append('${' + output_name + '}') # add_custom_command output.write('add_custom_command(OUTPUT\n') for out in these_outputs: output.write(' ') output.write(out) output.write('\n') for directory in dirs: output.write(' COMMAND ${CMAKE_COMMAND} -E make_directory ') output.write(directory) output.write('\n') output.write(' COMMAND ') output.write(gyp.common.EncodePOSIXShellList(rule['action'])) output.write('\n') output.write(' DEPENDS ') WriteVariable(output, inputs_name) output.write(' ') output.write(NormjoinPath(path_to_gyp, rule_source)) output.write('\n') # CMAKE_CURRENT_LIST_DIR is where the CMakeLists.txt lives. # The cwd is the current build directory. output.write(' WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/') output.write(path_to_gyp) output.write('\n') output.write(' COMMENT ') if 'message' in rule: output.write(rule['message']) else: output.write(action_name) output.write('\n') output.write(' VERBATIM\n') output.write(')\n') UnsetVariable(output, 'RULE_INPUT_PATH') UnsetVariable(output, 'RULE_INPUT_DIRNAME') UnsetVariable(output, 'RULE_INPUT_NAME') UnsetVariable(output, 'RULE_INPUT_ROOT') UnsetVariable(output, 'RULE_INPUT_EXT') # add_custom_target output.write('add_custom_target(') output.write(rule_name) output.write(' DEPENDS\n') for out in var_outputs: output.write(' ') output.write(out) output.write('\n') output.write('SOURCES ') WriteVariable(output, inputs_name) output.write('\n') for rule_source in rule.get('rule_sources', []): output.write(' ') output.write(NormjoinPath(path_to_gyp, rule_source)) output.write('\n') output.write(')\n') extra_deps.append(rule_name) def WriteCopies(target_name, copies, extra_deps, path_to_gyp, output): """Write CMake for the 'copies' in the target. Args: target_name: the name of the CMake target being generated. actions: the Gyp 'actions' dict for this target. extra_deps: [] to append with generated targets. path_to_gyp: relative path from CMakeLists.txt being generated to the Gyp file in which the target being generated is defined. """ copy_name = target_name + '__copies' # CMake gets upset with custom targets with OUTPUT which specify no output. have_copies = any(copy['files'] for copy in copies) if not have_copies: output.write('add_custom_target(') output.write(copy_name) output.write(')\n') extra_deps.append(copy_name) return class Copy(object): def __init__(self, ext, command): self.cmake_inputs = [] self.cmake_outputs = [] self.gyp_inputs = [] self.gyp_outputs = [] self.ext = ext self.inputs_name = None self.outputs_name = None self.command = command file_copy = Copy('', 'copy') dir_copy = Copy('_dirs', 'copy_directory') for copy in copies: files = copy['files'] destination = copy['destination'] for src in files: path = os.path.normpath(src) basename = os.path.split(path)[1] dst = os.path.join(destination, basename) copy = file_copy if os.path.basename(src) else dir_copy copy.cmake_inputs.append(NormjoinPathForceCMakeSource(path_to_gyp, src)) copy.cmake_outputs.append(NormjoinPathForceCMakeSource(path_to_gyp, dst)) copy.gyp_inputs.append(src) copy.gyp_outputs.append(dst) for copy in (file_copy, dir_copy): if copy.cmake_inputs: copy.inputs_name = copy_name + '__input' + copy.ext SetVariableList(output, copy.inputs_name, copy.cmake_inputs) copy.outputs_name = copy_name + '__output' + copy.ext SetVariableList(output, copy.outputs_name, copy.cmake_outputs) # add_custom_command output.write('add_custom_command(\n') output.write('OUTPUT') for copy in (file_copy, dir_copy): if copy.outputs_name: WriteVariable(output, copy.outputs_name, ' ') output.write('\n') for copy in (file_copy, dir_copy): for src, dst in zip(copy.gyp_inputs, copy.gyp_outputs): # 'cmake -E copy src dst' will create the 'dst' directory if needed. output.write('COMMAND ${CMAKE_COMMAND} -E %s ' % copy.command) output.write(src) output.write(' ') output.write(dst) output.write("\n") output.write('DEPENDS') for copy in (file_copy, dir_copy): if copy.inputs_name: WriteVariable(output, copy.inputs_name, ' ') output.write('\n') output.write('WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/') output.write(path_to_gyp) output.write('\n') output.write('COMMENT Copying for ') output.write(target_name) output.write('\n') output.write('VERBATIM\n') output.write(')\n') # add_custom_target output.write('add_custom_target(') output.write(copy_name) output.write('\n DEPENDS') for copy in (file_copy, dir_copy): if copy.outputs_name: WriteVariable(output, copy.outputs_name, ' ') output.write('\n SOURCES') if file_copy.inputs_name: WriteVariable(output, file_copy.inputs_name, ' ') output.write('\n)\n') extra_deps.append(copy_name) def CreateCMakeTargetBaseName(qualified_target): """This is the name we would like the target to have.""" _, gyp_target_name, gyp_target_toolset = ( gyp.common.ParseQualifiedTarget(qualified_target)) cmake_target_base_name = gyp_target_name if gyp_target_toolset and gyp_target_toolset != 'target': cmake_target_base_name += '_' + gyp_target_toolset return StringToCMakeTargetName(cmake_target_base_name) def CreateCMakeTargetFullName(qualified_target): """An unambiguous name for the target.""" gyp_file, gyp_target_name, gyp_target_toolset = ( gyp.common.ParseQualifiedTarget(qualified_target)) cmake_target_full_name = gyp_file + ':' + gyp_target_name if gyp_target_toolset and gyp_target_toolset != 'target': cmake_target_full_name += '_' + gyp_target_toolset return StringToCMakeTargetName(cmake_target_full_name) class CMakeNamer(object): """Converts Gyp target names into CMake target names. CMake requires that target names be globally unique. One way to ensure this is to fully qualify the names of the targets. Unfortunately, this ends up with all targets looking like "chrome_chrome_gyp_chrome" instead of just "chrome". If this generator were only interested in building, it would be possible to fully qualify all target names, then create unqualified target names which depend on all qualified targets which should have had that name. This is more or less what the 'make' generator does with aliases. However, one goal of this generator is to create CMake files for use with IDEs, and fully qualified names are not as user friendly. Since target name collision is rare, we do the above only when required. Toolset variants are always qualified from the base, as this is required for building. However, it also makes sense for an IDE, as it is possible for defines to be different. """ def __init__(self, target_list): self.cmake_target_base_names_conficting = set() cmake_target_base_names_seen = set() for qualified_target in target_list: cmake_target_base_name = CreateCMakeTargetBaseName(qualified_target) if cmake_target_base_name not in cmake_target_base_names_seen: cmake_target_base_names_seen.add(cmake_target_base_name) else: self.cmake_target_base_names_conficting.add(cmake_target_base_name) def CreateCMakeTargetName(self, qualified_target): base_name = CreateCMakeTargetBaseName(qualified_target) if base_name in self.cmake_target_base_names_conficting: return CreateCMakeTargetFullName(qualified_target) return base_name def WriteTarget(namer, qualified_target, target_dicts, build_dir, config_to_use, options, generator_flags, all_qualified_targets, output): # The make generator does this always. # TODO: It would be nice to be able to tell CMake all dependencies. circular_libs = generator_flags.get('circular', True) if not generator_flags.get('standalone', False): output.write('\n#') output.write(qualified_target) output.write('\n') gyp_file, _, _ = gyp.common.ParseQualifiedTarget(qualified_target) rel_gyp_file = gyp.common.RelativePath(gyp_file, options.toplevel_dir) rel_gyp_dir = os.path.dirname(rel_gyp_file) # Relative path from build dir to top dir. build_to_top = gyp.common.InvertRelativePath(build_dir, options.toplevel_dir) # Relative path from build dir to gyp dir. build_to_gyp = os.path.join(build_to_top, rel_gyp_dir) path_from_cmakelists_to_gyp = build_to_gyp spec = target_dicts.get(qualified_target, {}) config = spec.get('configurations', {}).get(config_to_use, {}) target_name = spec.get('target_name', '') target_type = spec.get('type', '') target_toolset = spec.get('toolset') cmake_target_type = cmake_target_type_from_gyp_target_type.get(target_type) if cmake_target_type is None: print('Target %s has unknown target type %s, skipping.' % ( target_name, target_type )) return SetVariable(output, 'TARGET', target_name) SetVariable(output, 'TOOLSET', target_toolset) cmake_target_name = namer.CreateCMakeTargetName(qualified_target) extra_sources = [] extra_deps = [] # Actions must come first, since they can generate more OBJs for use below. if 'actions' in spec: WriteActions(cmake_target_name, spec['actions'], extra_sources, extra_deps, path_from_cmakelists_to_gyp, output) # Rules must be early like actions. if 'rules' in spec: WriteRules(cmake_target_name, spec['rules'], extra_sources, extra_deps, path_from_cmakelists_to_gyp, output) # Copies if 'copies' in spec: WriteCopies(cmake_target_name, spec['copies'], extra_deps, path_from_cmakelists_to_gyp, output) # Target and sources srcs = spec.get('sources', []) # Gyp separates the sheep from the goats based on file extensions. # A full separation is done here because of flag handing (see below). s_sources = [] c_sources = [] cxx_sources = [] linkable_sources = [] other_sources = [] for src in srcs: _, ext = os.path.splitext(src) src_type = COMPILABLE_EXTENSIONS.get(ext, None) src_norm_path = NormjoinPath(path_from_cmakelists_to_gyp, src) if src_type == 's': s_sources.append(src_norm_path) elif src_type == 'cc': c_sources.append(src_norm_path) elif src_type == 'cxx': cxx_sources.append(src_norm_path) elif Linkable(ext): linkable_sources.append(src_norm_path) else: other_sources.append(src_norm_path) for extra_source in extra_sources: src, real_source = extra_source _, ext = os.path.splitext(real_source) src_type = COMPILABLE_EXTENSIONS.get(ext, None) if src_type == 's': s_sources.append(src) elif src_type == 'cc': c_sources.append(src) elif src_type == 'cxx': cxx_sources.append(src) elif Linkable(ext): linkable_sources.append(src) else: other_sources.append(src) s_sources_name = None if s_sources: s_sources_name = cmake_target_name + '__asm_srcs' SetVariableList(output, s_sources_name, s_sources) c_sources_name = None if c_sources: c_sources_name = cmake_target_name + '__c_srcs' SetVariableList(output, c_sources_name, c_sources) cxx_sources_name = None if cxx_sources: cxx_sources_name = cmake_target_name + '__cxx_srcs' SetVariableList(output, cxx_sources_name, cxx_sources) linkable_sources_name = None if linkable_sources: linkable_sources_name = cmake_target_name + '__linkable_srcs' SetVariableList(output, linkable_sources_name, linkable_sources) other_sources_name = None if other_sources: other_sources_name = cmake_target_name + '__other_srcs' SetVariableList(output, other_sources_name, other_sources) # CMake gets upset when executable targets provide no sources. # http://www.cmake.org/pipermail/cmake/2010-July/038461.html dummy_sources_name = None has_sources = (s_sources_name or c_sources_name or cxx_sources_name or linkable_sources_name or other_sources_name) if target_type == 'executable' and not has_sources: dummy_sources_name = cmake_target_name + '__dummy_srcs' SetVariable(output, dummy_sources_name, "${obj}.${TOOLSET}/${TARGET}/genc/dummy.c") output.write('if(NOT EXISTS "') WriteVariable(output, dummy_sources_name) output.write('")\n') output.write(' file(WRITE "') WriteVariable(output, dummy_sources_name) output.write('" "")\n') output.write("endif()\n") # CMake is opposed to setting linker directories and considers the practice # of setting linker directories dangerous. Instead, it favors the use of # find_library and passing absolute paths to target_link_libraries. # However, CMake does provide the command link_directories, which adds # link directories to targets defined after it is called. # As a result, link_directories must come before the target definition. # CMake unfortunately has no means of removing entries from LINK_DIRECTORIES. library_dirs = config.get('library_dirs') if library_dirs is not None: output.write('link_directories(') for library_dir in library_dirs: output.write(' ') output.write(NormjoinPath(path_from_cmakelists_to_gyp, library_dir)) output.write('\n') output.write(')\n') output.write(cmake_target_type.command) output.write('(') output.write(cmake_target_name) if cmake_target_type.modifier is not None: output.write(' ') output.write(cmake_target_type.modifier) if s_sources_name: WriteVariable(output, s_sources_name, ' ') if c_sources_name: WriteVariable(output, c_sources_name, ' ') if cxx_sources_name: WriteVariable(output, cxx_sources_name, ' ') if linkable_sources_name: WriteVariable(output, linkable_sources_name, ' ') if other_sources_name: WriteVariable(output, other_sources_name, ' ') if dummy_sources_name: WriteVariable(output, dummy_sources_name, ' ') output.write(')\n') # Let CMake know if the 'all' target should depend on this target. exclude_from_all = ('TRUE' if qualified_target not in all_qualified_targets else 'FALSE') SetTargetProperty(output, cmake_target_name, 'EXCLUDE_FROM_ALL', exclude_from_all) for extra_target_name in extra_deps: SetTargetProperty(output, extra_target_name, 'EXCLUDE_FROM_ALL', exclude_from_all) # Output name and location. if target_type != 'none': # Link as 'C' if there are no other files if not c_sources and not cxx_sources: SetTargetProperty(output, cmake_target_name, 'LINKER_LANGUAGE', ['C']) # Mark uncompiled sources as uncompiled. if other_sources_name: output.write('set_source_files_properties(') WriteVariable(output, other_sources_name, '') output.write(' PROPERTIES HEADER_FILE_ONLY "TRUE")\n') # Mark object sources as linkable. if linkable_sources_name: output.write('set_source_files_properties(') WriteVariable(output, other_sources_name, '') output.write(' PROPERTIES EXTERNAL_OBJECT "TRUE")\n') # Output directory target_output_directory = spec.get('product_dir') if target_output_directory is None: if target_type in ('executable', 'loadable_module'): target_output_directory = generator_default_variables['PRODUCT_DIR'] elif target_type == 'shared_library': target_output_directory = '${builddir}/lib.${TOOLSET}' elif spec.get('standalone_static_library', False): target_output_directory = generator_default_variables['PRODUCT_DIR'] else: base_path = gyp.common.RelativePath(os.path.dirname(gyp_file), options.toplevel_dir) target_output_directory = '${obj}.${TOOLSET}' target_output_directory = ( os.path.join(target_output_directory, base_path)) cmake_target_output_directory = NormjoinPathForceCMakeSource( path_from_cmakelists_to_gyp, target_output_directory) SetTargetProperty(output, cmake_target_name, cmake_target_type.property_modifier + '_OUTPUT_DIRECTORY', cmake_target_output_directory) # Output name default_product_prefix = '' default_product_name = target_name default_product_ext = '' if target_type == 'static_library': static_library_prefix = generator_default_variables['STATIC_LIB_PREFIX'] default_product_name = RemovePrefix(default_product_name, static_library_prefix) default_product_prefix = static_library_prefix default_product_ext = generator_default_variables['STATIC_LIB_SUFFIX'] elif target_type in ('loadable_module', 'shared_library'): shared_library_prefix = generator_default_variables['SHARED_LIB_PREFIX'] default_product_name = RemovePrefix(default_product_name, shared_library_prefix) default_product_prefix = shared_library_prefix default_product_ext = generator_default_variables['SHARED_LIB_SUFFIX'] elif target_type != 'executable': print('ERROR: What output file should be generated?', 'type', target_type, 'target', target_name) product_prefix = spec.get('product_prefix', default_product_prefix) product_name = spec.get('product_name', default_product_name) product_ext = spec.get('product_extension') if product_ext: product_ext = '.' + product_ext else: product_ext = default_product_ext SetTargetProperty(output, cmake_target_name, 'PREFIX', product_prefix) SetTargetProperty(output, cmake_target_name, cmake_target_type.property_modifier + '_OUTPUT_NAME', product_name) SetTargetProperty(output, cmake_target_name, 'SUFFIX', product_ext) # Make the output of this target referenceable as a source. cmake_target_output_basename = product_prefix + product_name + product_ext cmake_target_output = os.path.join(cmake_target_output_directory, cmake_target_output_basename) SetFileProperty(output, cmake_target_output, 'GENERATED', ['TRUE'], '') # Includes includes = config.get('include_dirs') if includes: # This (target include directories) is what requires CMake 2.8.8 includes_name = cmake_target_name + '__include_dirs' SetVariableList(output, includes_name, [NormjoinPathForceCMakeSource(path_from_cmakelists_to_gyp, include) for include in includes]) output.write('set_property(TARGET ') output.write(cmake_target_name) output.write(' APPEND PROPERTY INCLUDE_DIRECTORIES ') WriteVariable(output, includes_name, '') output.write(')\n') # Defines defines = config.get('defines') if defines is not None: SetTargetProperty(output, cmake_target_name, 'COMPILE_DEFINITIONS', defines, ';') # Compile Flags - http://www.cmake.org/Bug/view.php?id=6493 # CMake currently does not have target C and CXX flags. # So, instead of doing... # cflags_c = config.get('cflags_c') # if cflags_c is not None: # SetTargetProperty(output, cmake_target_name, # 'C_COMPILE_FLAGS', cflags_c, ' ') # cflags_cc = config.get('cflags_cc') # if cflags_cc is not None: # SetTargetProperty(output, cmake_target_name, # 'CXX_COMPILE_FLAGS', cflags_cc, ' ') # Instead we must... cflags = config.get('cflags', []) cflags_c = config.get('cflags_c', []) cflags_cxx = config.get('cflags_cc', []) if (not cflags_c or not c_sources) and (not cflags_cxx or not cxx_sources): SetTargetProperty(output, cmake_target_name, 'COMPILE_FLAGS', cflags, ' ') elif c_sources and not (s_sources or cxx_sources): flags = [] flags.extend(cflags) flags.extend(cflags_c) SetTargetProperty(output, cmake_target_name, 'COMPILE_FLAGS', flags, ' ') elif cxx_sources and not (s_sources or c_sources): flags = [] flags.extend(cflags) flags.extend(cflags_cxx) SetTargetProperty(output, cmake_target_name, 'COMPILE_FLAGS', flags, ' ') else: # TODO: This is broken, one cannot generally set properties on files, # as other targets may require different properties on the same files. if s_sources and cflags: SetFilesProperty(output, s_sources_name, 'COMPILE_FLAGS', cflags, ' ') if c_sources and (cflags or cflags_c): flags = [] flags.extend(cflags) flags.extend(cflags_c) SetFilesProperty(output, c_sources_name, 'COMPILE_FLAGS', flags, ' ') if cxx_sources and (cflags or cflags_cxx): flags = [] flags.extend(cflags) flags.extend(cflags_cxx) SetFilesProperty(output, cxx_sources_name, 'COMPILE_FLAGS', flags, ' ') # Linker flags ldflags = config.get('ldflags') if ldflags is not None: SetTargetProperty(output, cmake_target_name, 'LINK_FLAGS', ldflags, ' ') # Note on Dependencies and Libraries: # CMake wants to handle link order, resolving the link line up front. # Gyp does not retain or enforce specifying enough information to do so. # So do as other gyp generators and use --start-group and --end-group. # Give CMake as little information as possible so that it doesn't mess it up. # Dependencies rawDeps = spec.get('dependencies', []) static_deps = [] shared_deps = [] other_deps = [] for rawDep in rawDeps: dep_cmake_name = namer.CreateCMakeTargetName(rawDep) dep_spec = target_dicts.get(rawDep, {}) dep_target_type = dep_spec.get('type', None) if dep_target_type == 'static_library': static_deps.append(dep_cmake_name) elif dep_target_type == 'shared_library': shared_deps.append(dep_cmake_name) else: other_deps.append(dep_cmake_name) # ensure all external dependencies are complete before internal dependencies # extra_deps currently only depend on their own deps, so otherwise run early if static_deps or shared_deps or other_deps: for extra_dep in extra_deps: output.write('add_dependencies(') output.write(extra_dep) output.write('\n') for deps in (static_deps, shared_deps, other_deps): for dep in gyp.common.uniquer(deps): output.write(' ') output.write(dep) output.write('\n') output.write(')\n') linkable = target_type in ('executable', 'loadable_module', 'shared_library') other_deps.extend(extra_deps) if other_deps or (not linkable and (static_deps or shared_deps)): output.write('add_dependencies(') output.write(cmake_target_name) output.write('\n') for dep in gyp.common.uniquer(other_deps): output.write(' ') output.write(dep) output.write('\n') if not linkable: for deps in (static_deps, shared_deps): for lib_dep in gyp.common.uniquer(deps): output.write(' ') output.write(lib_dep) output.write('\n') output.write(')\n') # Libraries if linkable: external_libs = [lib for lib in spec.get('libraries', []) if len(lib) > 0] if external_libs or static_deps or shared_deps: output.write('target_link_libraries(') output.write(cmake_target_name) output.write('\n') if static_deps: write_group = circular_libs and len(static_deps) > 1 if write_group: output.write('-Wl,--start-group\n') for dep in gyp.common.uniquer(static_deps): output.write(' ') output.write(dep) output.write('\n') if write_group: output.write('-Wl,--end-group\n') if shared_deps: for dep in gyp.common.uniquer(shared_deps): output.write(' ') output.write(dep) output.write('\n') if external_libs: for lib in gyp.common.uniquer(external_libs): output.write(' ') output.write(lib) output.write('\n') output.write(')\n') UnsetVariable(output, 'TOOLSET') UnsetVariable(output, 'TARGET') def GenerateOutputForConfig(target_list, target_dicts, data, params, config_to_use): options = params['options'] generator_flags = params['generator_flags'] # generator_dir: relative path from pwd to where make puts build files. # Makes migrating from make to cmake easier, cmake doesn't put anything here. # Each Gyp configuration creates a different CMakeLists.txt file # to avoid incompatibilities between Gyp and CMake configurations. generator_dir = os.path.relpath(options.generator_output or '.') # output_dir: relative path from generator_dir to the build directory. output_dir = generator_flags.get('output_dir', 'out') # build_dir: relative path from source root to our output files. # e.g. "out/Debug" build_dir = os.path.normpath(os.path.join(generator_dir, output_dir, config_to_use)) toplevel_build = os.path.join(options.toplevel_dir, build_dir) output_file = os.path.join(toplevel_build, 'CMakeLists.txt') gyp.common.EnsureDirExists(output_file) output = open(output_file, 'w') output.write('cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)\n') output.write('cmake_policy(VERSION 2.8.8)\n') gyp_file, project_target, _ = gyp.common.ParseQualifiedTarget(target_list[-1]) output.write('project(') output.write(project_target) output.write(')\n') SetVariable(output, 'configuration', config_to_use) ar = None cc = None cxx = None make_global_settings = data[gyp_file].get('make_global_settings', []) build_to_top = gyp.common.InvertRelativePath(build_dir, options.toplevel_dir) for key, value in make_global_settings: if key == 'AR': ar = os.path.join(build_to_top, value) if key == 'CC': cc = os.path.join(build_to_top, value) if key == 'CXX': cxx = os.path.join(build_to_top, value) ar = gyp.common.GetEnvironFallback(['AR_target', 'AR'], ar) cc = gyp.common.GetEnvironFallback(['CC_target', 'CC'], cc) cxx = gyp.common.GetEnvironFallback(['CXX_target', 'CXX'], cxx) if ar: SetVariable(output, 'CMAKE_AR', ar) if cc: SetVariable(output, 'CMAKE_C_COMPILER', cc) if cxx: SetVariable(output, 'CMAKE_CXX_COMPILER', cxx) # The following appears to be as-yet undocumented. # http://public.kitware.com/Bug/view.php?id=8392 output.write('enable_language(ASM)\n') # ASM-ATT does not support .S files. # output.write('enable_language(ASM-ATT)\n') if cc: SetVariable(output, 'CMAKE_ASM_COMPILER', cc) SetVariable(output, 'builddir', '${CMAKE_CURRENT_BINARY_DIR}') SetVariable(output, 'obj', '${builddir}/obj') output.write('\n') # TODO: Undocumented/unsupported (the CMake Java generator depends on it). # CMake by default names the object resulting from foo.c to be foo.c.o. # Gyp traditionally names the object resulting from foo.c foo.o. # This should be irrelevant, but some targets extract .o files from .a # and depend on the name of the extracted .o files. output.write('set(CMAKE_C_OUTPUT_EXTENSION_REPLACE 1)\n') output.write('set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1)\n') output.write('\n') # Force ninja to use rsp files. Otherwise link and ar lines can get too long, # resulting in 'Argument list too long' errors. output.write('set(CMAKE_NINJA_FORCE_RESPONSE_FILE 1)\n') output.write('\n') namer = CMakeNamer(target_list) # The list of targets upon which the 'all' target should depend. # CMake has it's own implicit 'all' target, one is not created explicitly. all_qualified_targets = set() for build_file in params['build_files']: for qualified_target in gyp.common.AllTargets(target_list, target_dicts, os.path.normpath(build_file)): all_qualified_targets.add(qualified_target) for qualified_target in target_list: WriteTarget(namer, qualified_target, target_dicts, build_dir, config_to_use, options, generator_flags, all_qualified_targets, output) output.close() def PerformBuild(data, configurations, params): options = params['options'] generator_flags = params['generator_flags'] # generator_dir: relative path from pwd to where make puts build files. # Makes migrating from make to cmake easier, cmake doesn't put anything here. generator_dir = os.path.relpath(options.generator_output or '.') # output_dir: relative path from generator_dir to the build directory. output_dir = generator_flags.get('output_dir', 'out') for config_name in configurations: # build_dir: relative path from source root to our output files. # e.g. "out/Debug" build_dir = os.path.normpath(os.path.join(generator_dir, output_dir, config_name)) arguments = ['cmake', '-G', 'Ninja'] print('Generating [%s]: %s' % (config_name, arguments)) subprocess.check_call(arguments, cwd=build_dir) arguments = ['ninja', '-C', build_dir] print('Building [%s]: %s' % (config_name, arguments)) subprocess.check_call(arguments) def CallGenerateOutputForConfig(arglist): # Ignore the interrupt signal so that the parent process catches it and # kills all multiprocessing children. signal.signal(signal.SIGINT, signal.SIG_IGN) target_list, target_dicts, data, params, config_name = arglist GenerateOutputForConfig(target_list, target_dicts, data, params, config_name) def GenerateOutput(target_list, target_dicts, data, params): user_config = params.get('generator_flags', {}).get('config', None) if user_config: GenerateOutputForConfig(target_list, target_dicts, data, params, user_config) else: config_names = target_dicts[target_list[0]]['configurations'].keys() if params['parallel']: try: pool = multiprocessing.Pool(len(config_names)) arglists = [] for config_name in config_names: arglists.append((target_list, target_dicts, data, params, config_name)) pool.map(CallGenerateOutputForConfig, arglists) except KeyboardInterrupt as e: pool.terminate() raise e else: for config_name in config_names: GenerateOutputForConfig(target_list, target_dicts, data, params, config_name) PK!:>ӓBB eclipse.pynu[# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """GYP backend that generates Eclipse CDT settings files. This backend DOES NOT generate Eclipse CDT projects. Instead, it generates XML files that can be imported into an Eclipse CDT project. The XML file contains a list of include paths and symbols (i.e. defines). Because a full .cproject definition is not created by this generator, it's not possible to properly define the include dirs and symbols for each file individually. Instead, one set of includes/symbols is generated for the entire project. This works fairly well (and is a vast improvement in general), but may still result in a few indexer issues here and there. This generator has no automated tests, so expect it to be broken. """ from xml.sax.saxutils import escape import os.path import subprocess import gyp import gyp.common import gyp.msvs_emulation import shlex import xml.etree.cElementTree as ET PY3 = bytes != str generator_wants_static_library_dependencies_adjusted = False generator_default_variables = { } for dirname in ['INTERMEDIATE_DIR', 'PRODUCT_DIR', 'LIB_DIR', 'SHARED_LIB_DIR']: # Some gyp steps fail if these are empty(!), so we convert them to variables generator_default_variables[dirname] = '$' + dirname for unused in ['RULE_INPUT_PATH', 'RULE_INPUT_ROOT', 'RULE_INPUT_NAME', 'RULE_INPUT_DIRNAME', 'RULE_INPUT_EXT', 'EXECUTABLE_PREFIX', 'EXECUTABLE_SUFFIX', 'STATIC_LIB_PREFIX', 'STATIC_LIB_SUFFIX', 'SHARED_LIB_PREFIX', 'SHARED_LIB_SUFFIX', 'CONFIGURATION_NAME']: generator_default_variables[unused] = '' # Include dirs will occasionally use the SHARED_INTERMEDIATE_DIR variable as # part of the path when dealing with generated headers. This value will be # replaced dynamically for each configuration. generator_default_variables['SHARED_INTERMEDIATE_DIR'] = \ '$SHARED_INTERMEDIATE_DIR' def CalculateVariables(default_variables, params): generator_flags = params.get('generator_flags', {}) for key, val in generator_flags.items(): default_variables.setdefault(key, val) flavor = gyp.common.GetFlavor(params) default_variables.setdefault('OS', flavor) if flavor == 'win': # Copy additional generator configuration data from VS, which is shared # by the Eclipse generator. import gyp.generator.msvs as msvs_generator generator_additional_non_configuration_keys = getattr(msvs_generator, 'generator_additional_non_configuration_keys', []) generator_additional_path_sections = getattr(msvs_generator, 'generator_additional_path_sections', []) gyp.msvs_emulation.CalculateCommonVariables(default_variables, params) def CalculateGeneratorInputInfo(params): """Calculate the generator specific info that gets fed to input (called by gyp).""" generator_flags = params.get('generator_flags', {}) if generator_flags.get('adjust_static_libraries', False): global generator_wants_static_library_dependencies_adjusted generator_wants_static_library_dependencies_adjusted = True def GetAllIncludeDirectories(target_list, target_dicts, shared_intermediate_dirs, config_name, params, compiler_path): """Calculate the set of include directories to be used. Returns: A list including all the include_dir's specified for every target followed by any include directories that were added as cflag compiler options. """ gyp_includes_set = set() compiler_includes_list = [] # Find compiler's default include dirs. if compiler_path: command = shlex.split(compiler_path) command.extend(['-E', '-xc++', '-v', '-']) proc = subprocess.Popen(args=command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output = proc.communicate()[1] if PY3: output = output.decode('utf-8') # Extract the list of include dirs from the output, which has this format: # ... # #include "..." search starts here: # #include <...> search starts here: # /usr/include/c++/4.6 # /usr/local/include # End of search list. # ... in_include_list = False for line in output.splitlines(): if line.startswith('#include'): in_include_list = True continue if line.startswith('End of search list.'): break if in_include_list: include_dir = line.strip() if include_dir not in compiler_includes_list: compiler_includes_list.append(include_dir) flavor = gyp.common.GetFlavor(params) if flavor == 'win': generator_flags = params.get('generator_flags', {}) for target_name in target_list: target = target_dicts[target_name] if config_name in target['configurations']: config = target['configurations'][config_name] # Look for any include dirs that were explicitly added via cflags. This # may be done in gyp files to force certain includes to come at the end. # TODO(jgreenwald): Change the gyp files to not abuse cflags for this, and # remove this. if flavor == 'win': msvs_settings = gyp.msvs_emulation.MsvsSettings(target, generator_flags) cflags = msvs_settings.GetCflags(config_name) else: cflags = config['cflags'] for cflag in cflags: if cflag.startswith('-I'): include_dir = cflag[2:] if include_dir not in compiler_includes_list: compiler_includes_list.append(include_dir) # Find standard gyp include dirs. if 'include_dirs' in config: include_dirs = config['include_dirs'] for shared_intermediate_dir in shared_intermediate_dirs: for include_dir in include_dirs: include_dir = include_dir.replace('$SHARED_INTERMEDIATE_DIR', shared_intermediate_dir) if not os.path.isabs(include_dir): base_dir = os.path.dirname(target_name) include_dir = base_dir + '/' + include_dir include_dir = os.path.abspath(include_dir) gyp_includes_set.add(include_dir) # Generate a list that has all the include dirs. all_includes_list = list(gyp_includes_set) all_includes_list.sort() for compiler_include in compiler_includes_list: if not compiler_include in gyp_includes_set: all_includes_list.append(compiler_include) # All done. return all_includes_list def GetCompilerPath(target_list, data, options): """Determine a command that can be used to invoke the compiler. Returns: If this is a gyp project that has explicit make settings, try to determine the compiler from that. Otherwise, see if a compiler was specified via the CC_target environment variable. """ # First, see if the compiler is configured in make's settings. build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0]) make_global_settings_dict = data[build_file].get('make_global_settings', {}) for key, value in make_global_settings_dict: if key in ['CC', 'CXX']: return os.path.join(options.toplevel_dir, value) # Check to see if the compiler was specified as an environment variable. for key in ['CC_target', 'CC', 'CXX']: compiler = os.environ.get(key) if compiler: return compiler return 'gcc' def GetAllDefines(target_list, target_dicts, data, config_name, params, compiler_path): """Calculate the defines for a project. Returns: A dict that includes explicit defines declared in gyp files along with all of the default defines that the compiler uses. """ # Get defines declared in the gyp files. all_defines = {} flavor = gyp.common.GetFlavor(params) if flavor == 'win': generator_flags = params.get('generator_flags', {}) for target_name in target_list: target = target_dicts[target_name] if flavor == 'win': msvs_settings = gyp.msvs_emulation.MsvsSettings(target, generator_flags) extra_defines = msvs_settings.GetComputedDefines(config_name) else: extra_defines = [] if config_name in target['configurations']: config = target['configurations'][config_name] target_defines = config['defines'] else: target_defines = [] for define in target_defines + extra_defines: split_define = define.split('=', 1) if len(split_define) == 1: split_define.append('1') if split_define[0].strip() in all_defines: # Already defined continue all_defines[split_define[0].strip()] = split_define[1].strip() # Get default compiler defines (if possible). if flavor == 'win': return all_defines # Default defines already processed in the loop above. if compiler_path: command = shlex.split(compiler_path) command.extend(['-E', '-dM', '-']) cpp_proc = subprocess.Popen(args=command, cwd='.', stdin=subprocess.PIPE, stdout=subprocess.PIPE) cpp_output = cpp_proc.communicate()[0] if PY3: cpp_output = cpp_output.decode('utf-8') cpp_lines = cpp_output.split('\n') for cpp_line in cpp_lines: if not cpp_line.strip(): continue cpp_line_parts = cpp_line.split(' ', 2) key = cpp_line_parts[1] if len(cpp_line_parts) >= 3: val = cpp_line_parts[2] else: val = '1' all_defines[key] = val return all_defines def WriteIncludePaths(out, eclipse_langs, include_dirs): """Write the includes section of a CDT settings export file.""" out.write('
\n') out.write(' \n') for lang in eclipse_langs: out.write(' \n' % lang) for include_dir in include_dirs: out.write(' %s\n' % include_dir) out.write(' \n') out.write('
\n') def WriteMacros(out, eclipse_langs, defines): """Write the macros section of a CDT settings export file.""" out.write('
\n') out.write(' \n') for lang in eclipse_langs: out.write(' \n' % lang) for key in sorted(defines): out.write(' %s%s\n' % (escape(key), escape(defines[key]))) out.write(' \n') out.write('
\n') def GenerateOutputForConfig(target_list, target_dicts, data, params, config_name): options = params['options'] generator_flags = params.get('generator_flags', {}) # build_dir: relative path from source root to our output files. # e.g. "out/Debug" build_dir = os.path.join(generator_flags.get('output_dir', 'out'), config_name) toplevel_build = os.path.join(options.toplevel_dir, build_dir) # Ninja uses out/Debug/gen while make uses out/Debug/obj/gen as the # SHARED_INTERMEDIATE_DIR. Include both possible locations. shared_intermediate_dirs = [os.path.join(toplevel_build, 'obj', 'gen'), os.path.join(toplevel_build, 'gen')] GenerateCdtSettingsFile(target_list, target_dicts, data, params, config_name, os.path.join(toplevel_build, 'eclipse-cdt-settings.xml'), options, shared_intermediate_dirs) GenerateClasspathFile(target_list, target_dicts, options.toplevel_dir, toplevel_build, os.path.join(toplevel_build, 'eclipse-classpath.xml')) def GenerateCdtSettingsFile(target_list, target_dicts, data, params, config_name, out_name, options, shared_intermediate_dirs): gyp.common.EnsureDirExists(out_name) with open(out_name, 'w') as out: out.write('\n') out.write('\n') eclipse_langs = ['C++ Source File', 'C Source File', 'Assembly Source File', 'GNU C++', 'GNU C', 'Assembly'] compiler_path = GetCompilerPath(target_list, data, options) include_dirs = GetAllIncludeDirectories(target_list, target_dicts, shared_intermediate_dirs, config_name, params, compiler_path) WriteIncludePaths(out, eclipse_langs, include_dirs) defines = GetAllDefines(target_list, target_dicts, data, config_name, params, compiler_path) WriteMacros(out, eclipse_langs, defines) out.write('\n') def GenerateClasspathFile(target_list, target_dicts, toplevel_dir, toplevel_build, out_name): '''Generates a classpath file suitable for symbol navigation and code completion of Java code (such as in Android projects) by finding all .java and .jar files used as action inputs.''' gyp.common.EnsureDirExists(out_name) result = ET.Element('classpath') def AddElements(kind, paths): # First, we need to normalize the paths so they are all relative to the # toplevel dir. rel_paths = set() for path in paths: if os.path.isabs(path): rel_paths.add(os.path.relpath(path, toplevel_dir)) else: rel_paths.add(path) for path in sorted(rel_paths): entry_element = ET.SubElement(result, 'classpathentry') entry_element.set('kind', kind) entry_element.set('path', path) AddElements('lib', GetJavaJars(target_list, target_dicts, toplevel_dir)) AddElements('src', GetJavaSourceDirs(target_list, target_dicts, toplevel_dir)) # Include the standard JRE container and a dummy out folder AddElements('con', ['org.eclipse.jdt.launching.JRE_CONTAINER']) # Include a dummy out folder so that Eclipse doesn't use the default /bin # folder in the root of the project. AddElements('output', [os.path.join(toplevel_build, '.eclipse-java-build')]) ET.ElementTree(result).write(out_name) def GetJavaJars(target_list, target_dicts, toplevel_dir): '''Generates a sequence of all .jars used as inputs.''' for target_name in target_list: target = target_dicts[target_name] for action in target.get('actions', []): for input_ in action['inputs']: if os.path.splitext(input_)[1] == '.jar' and not input_.startswith('$'): if os.path.isabs(input_): yield input_ else: yield os.path.join(os.path.dirname(target_name), input_) def GetJavaSourceDirs(target_list, target_dicts, toplevel_dir): '''Generates a sequence of all likely java package root directories.''' for target_name in target_list: target = target_dicts[target_name] for action in target.get('actions', []): for input_ in action['inputs']: if (os.path.splitext(input_)[1] == '.java' and not input_.startswith('$')): dir_ = os.path.dirname(os.path.join(os.path.dirname(target_name), input_)) # If there is a parent 'src' or 'java' folder, navigate up to it - # these are canonical package root names in Chromium. This will # break if 'src' or 'java' exists in the package structure. This # could be further improved by inspecting the java file for the # package name if this proves to be too fragile in practice. parent_search = dir_ while os.path.basename(parent_search) not in ['src', 'java']: parent_search, _ = os.path.split(parent_search) if not parent_search or parent_search == toplevel_dir: # Didn't find a known root, just return the original path yield dir_ break else: yield parent_search def GenerateOutput(target_list, target_dicts, data, params): """Generate an XML settings file that can be imported into a CDT project.""" if params['options'].generator_output: raise NotImplementedError("--generator_output not implemented for eclipse") user_config = params.get('generator_flags', {}).get('config', None) if user_config: GenerateOutputForConfig(target_list, target_dicts, data, params, user_config) else: config_names = target_dicts[target_list[0]]['configurations'].keys() for config_name in config_names: GenerateOutputForConfig(target_list, target_dicts, data, params, config_name) PK!ʩ88 android.pynu[# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Notes: # # This generates makefiles suitable for inclusion into the Android build system # via an Android.mk file. It is based on make.py, the standard makefile # generator. # # The code below generates a separate .mk file for each target, but # all are sourced by the top-level GypAndroid.mk. This means that all # variables in .mk-files clobber one another, and furthermore that any # variables set potentially clash with other Android build system variables. # Try to avoid setting global variables where possible. from __future__ import print_function import gyp import gyp.common import gyp.generator.make as make # Reuse global functions from make backend. import os import re import subprocess generator_default_variables = { 'OS': 'android', 'EXECUTABLE_PREFIX': '', 'EXECUTABLE_SUFFIX': '', 'STATIC_LIB_PREFIX': 'lib', 'SHARED_LIB_PREFIX': 'lib', 'STATIC_LIB_SUFFIX': '.a', 'SHARED_LIB_SUFFIX': '.so', 'INTERMEDIATE_DIR': '$(gyp_intermediate_dir)', 'SHARED_INTERMEDIATE_DIR': '$(gyp_shared_intermediate_dir)', 'PRODUCT_DIR': '$(gyp_shared_intermediate_dir)', 'SHARED_LIB_DIR': '$(builddir)/lib.$(TOOLSET)', 'LIB_DIR': '$(obj).$(TOOLSET)', 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python. 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python. 'RULE_INPUT_PATH': '$(RULE_SOURCES)', 'RULE_INPUT_EXT': '$(suffix $<)', 'RULE_INPUT_NAME': '$(notdir $<)', 'CONFIGURATION_NAME': '$(GYP_CONFIGURATION)', } # Make supports multiple toolsets generator_supports_multiple_toolsets = True # Generator-specific gyp specs. generator_additional_non_configuration_keys = [ # Boolean to declare that this target does not want its name mangled. 'android_unmangled_name', # Map of android build system variables to set. 'aosp_build_settings', ] generator_additional_path_sections = [] generator_extra_sources_for_rules = [] ALL_MODULES_FOOTER = """\ # "gyp_all_modules" is a concatenation of the "gyp_all_modules" targets from # all the included sub-makefiles. This is just here to clarify. gyp_all_modules: """ header = """\ # This file is generated by gyp; do not edit. """ # Map gyp target types to Android module classes. MODULE_CLASSES = { 'static_library': 'STATIC_LIBRARIES', 'shared_library': 'SHARED_LIBRARIES', 'executable': 'EXECUTABLES', } def IsCPPExtension(ext): return make.COMPILABLE_EXTENSIONS.get(ext) == 'cxx' def Sourceify(path): """Convert a path to its source directory form. The Android backend does not support options.generator_output, so this function is a noop.""" return path # Map from qualified target to path to output. # For Android, the target of these maps is a tuple ('static', 'modulename'), # ('dynamic', 'modulename'), or ('path', 'some/path') instead of a string, # since we link by module. target_outputs = {} # Map from qualified target to any linkable output. A subset # of target_outputs. E.g. when mybinary depends on liba, we want to # include liba in the linker line; when otherbinary depends on # mybinary, we just want to build mybinary first. target_link_deps = {} class AndroidMkWriter(object): """AndroidMkWriter packages up the writing of one target-specific Android.mk. Its only real entry point is Write(), and is mostly used for namespacing. """ def __init__(self, android_top_dir): self.android_top_dir = android_top_dir def Write(self, qualified_target, relative_target, base_path, output_filename, spec, configs, part_of_all, write_alias_target, sdk_version): """The main entry point: writes a .mk file for a single target. Arguments: qualified_target: target we're generating relative_target: qualified target name relative to the root base_path: path relative to source root we're building in, used to resolve target-relative paths output_filename: output .mk file name to write spec, configs: gyp info part_of_all: flag indicating this target is part of 'all' write_alias_target: flag indicating whether to create short aliases for this target sdk_version: what to emit for LOCAL_SDK_VERSION in output """ gyp.common.EnsureDirExists(output_filename) self.fp = open(output_filename, 'w') self.fp.write(header) self.qualified_target = qualified_target self.relative_target = relative_target self.path = base_path self.target = spec['target_name'] self.type = spec['type'] self.toolset = spec['toolset'] deps, link_deps = self.ComputeDeps(spec) # Some of the generation below can add extra output, sources, or # link dependencies. All of the out params of the functions that # follow use names like extra_foo. extra_outputs = [] extra_sources = [] self.android_class = MODULE_CLASSES.get(self.type, 'GYP') self.android_module = self.ComputeAndroidModule(spec) (self.android_stem, self.android_suffix) = self.ComputeOutputParts(spec) self.output = self.output_binary = self.ComputeOutput(spec) # Standard header. self.WriteLn('include $(CLEAR_VARS)\n') # Module class and name. self.WriteLn('LOCAL_MODULE_CLASS := ' + self.android_class) self.WriteLn('LOCAL_MODULE := ' + self.android_module) # Only emit LOCAL_MODULE_STEM if it's different to LOCAL_MODULE. # The library module classes fail if the stem is set. ComputeOutputParts # makes sure that stem == modulename in these cases. if self.android_stem != self.android_module: self.WriteLn('LOCAL_MODULE_STEM := ' + self.android_stem) self.WriteLn('LOCAL_MODULE_SUFFIX := ' + self.android_suffix) if self.toolset == 'host': self.WriteLn('LOCAL_IS_HOST_MODULE := true') self.WriteLn('LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)') elif sdk_version > 0: self.WriteLn('LOCAL_MODULE_TARGET_ARCH := ' '$(TARGET_$(GYP_VAR_PREFIX)ARCH)') self.WriteLn('LOCAL_SDK_VERSION := %s' % sdk_version) # Grab output directories; needed for Actions and Rules. if self.toolset == 'host': self.WriteLn('gyp_intermediate_dir := ' '$(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX))') else: self.WriteLn('gyp_intermediate_dir := ' '$(call local-intermediates-dir,,$(GYP_VAR_PREFIX))') self.WriteLn('gyp_shared_intermediate_dir := ' '$(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))') self.WriteLn() # List files this target depends on so that actions/rules/copies/sources # can depend on the list. # TODO: doesn't pull in things through transitive link deps; needed? target_dependencies = [x[1] for x in deps if x[0] == 'path'] self.WriteLn('# Make sure our deps are built first.') self.WriteList(target_dependencies, 'GYP_TARGET_DEPENDENCIES', local_pathify=True) # Actions must come first, since they can generate more OBJs for use below. if 'actions' in spec: self.WriteActions(spec['actions'], extra_sources, extra_outputs) # Rules must be early like actions. if 'rules' in spec: self.WriteRules(spec['rules'], extra_sources, extra_outputs) if 'copies' in spec: self.WriteCopies(spec['copies'], extra_outputs) # GYP generated outputs. self.WriteList(extra_outputs, 'GYP_GENERATED_OUTPUTS', local_pathify=True) # Set LOCAL_ADDITIONAL_DEPENDENCIES so that Android's build rules depend # on both our dependency targets and our generated files. self.WriteLn('# Make sure our deps and generated files are built first.') self.WriteLn('LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) ' '$(GYP_GENERATED_OUTPUTS)') self.WriteLn() # Sources. if spec.get('sources', []) or extra_sources: self.WriteSources(spec, configs, extra_sources) self.WriteTarget(spec, configs, deps, link_deps, part_of_all, write_alias_target) # Update global list of target outputs, used in dependency tracking. target_outputs[qualified_target] = ('path', self.output_binary) # Update global list of link dependencies. if self.type == 'static_library': target_link_deps[qualified_target] = ('static', self.android_module) elif self.type == 'shared_library': target_link_deps[qualified_target] = ('shared', self.android_module) self.fp.close() return self.android_module def WriteActions(self, actions, extra_sources, extra_outputs): """Write Makefile code for any 'actions' from the gyp input. extra_sources: a list that will be filled in with newly generated source files, if any extra_outputs: a list that will be filled in with any outputs of these actions (used to make other pieces dependent on these actions) """ for action in actions: name = make.StringToMakefileVariable('%s_%s' % (self.relative_target, action['action_name'])) self.WriteLn('### Rules for action "%s":' % action['action_name']) inputs = action['inputs'] outputs = action['outputs'] # Build up a list of outputs. # Collect the output dirs we'll need. dirs = set() for out in outputs: if not out.startswith('$'): print('WARNING: Action for target "%s" writes output to local path ' '"%s".' % (self.target, out)) dir = os.path.split(out)[0] if dir: dirs.add(dir) if int(action.get('process_outputs_as_sources', False)): extra_sources += outputs # Prepare the actual command. command = gyp.common.EncodePOSIXShellList(action['action']) if 'message' in action: quiet_cmd = 'Gyp action: %s ($@)' % action['message'] else: quiet_cmd = 'Gyp action: %s ($@)' % name if len(dirs) > 0: command = 'mkdir -p %s' % ' '.join(dirs) + '; ' + command cd_action = 'cd $(gyp_local_path)/%s; ' % self.path command = cd_action + command # The makefile rules are all relative to the top dir, but the gyp actions # are defined relative to their containing dir. This replaces the gyp_* # variables for the action rule with an absolute version so that the # output goes in the right place. # Only write the gyp_* rules for the "primary" output (:1); # it's superfluous for the "extra outputs", and this avoids accidentally # writing duplicate dummy rules for those outputs. main_output = make.QuoteSpaces(self.LocalPathify(outputs[0])) self.WriteLn('%s: gyp_local_path := $(LOCAL_PATH)' % main_output) self.WriteLn('%s: gyp_var_prefix := $(GYP_VAR_PREFIX)' % main_output) self.WriteLn('%s: gyp_intermediate_dir := ' '$(abspath $(gyp_intermediate_dir))' % main_output) self.WriteLn('%s: gyp_shared_intermediate_dir := ' '$(abspath $(gyp_shared_intermediate_dir))' % main_output) # Android's envsetup.sh adds a number of directories to the path including # the built host binary directory. This causes actions/rules invoked by # gyp to sometimes use these instead of system versions, e.g. bison. # The built host binaries may not be suitable, and can cause errors. # So, we remove them from the PATH using the ANDROID_BUILD_PATHS variable # set by envsetup. self.WriteLn('%s: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))' % main_output) # Don't allow spaces in input/output filenames, but make an exception for # filenames which start with '$(' since it's okay for there to be spaces # inside of make function/macro invocations. for input in inputs: if not input.startswith('$(') and ' ' in input: raise gyp.common.GypError( 'Action input filename "%s" in target %s contains a space' % (input, self.target)) for output in outputs: if not output.startswith('$(') and ' ' in output: raise gyp.common.GypError( 'Action output filename "%s" in target %s contains a space' % (output, self.target)) self.WriteLn('%s: %s $(GYP_TARGET_DEPENDENCIES)' % (main_output, ' '.join(map(self.LocalPathify, inputs)))) self.WriteLn('\t@echo "%s"' % quiet_cmd) self.WriteLn('\t$(hide)%s\n' % command) for output in outputs[1:]: # Make each output depend on the main output, with an empty command # to force make to notice that the mtime has changed. self.WriteLn('%s: %s ;' % (self.LocalPathify(output), main_output)) extra_outputs += outputs self.WriteLn() self.WriteLn() def WriteRules(self, rules, extra_sources, extra_outputs): """Write Makefile code for any 'rules' from the gyp input. extra_sources: a list that will be filled in with newly generated source files, if any extra_outputs: a list that will be filled in with any outputs of these rules (used to make other pieces dependent on these rules) """ if len(rules) == 0: return for rule in rules: if len(rule.get('rule_sources', [])) == 0: continue name = make.StringToMakefileVariable('%s_%s' % (self.relative_target, rule['rule_name'])) self.WriteLn('\n### Generated for rule "%s":' % name) self.WriteLn('# "%s":' % rule) inputs = rule.get('inputs') for rule_source in rule.get('rule_sources', []): (rule_source_dirname, rule_source_basename) = os.path.split(rule_source) (rule_source_root, rule_source_ext) = \ os.path.splitext(rule_source_basename) outputs = [self.ExpandInputRoot(out, rule_source_root, rule_source_dirname) for out in rule['outputs']] dirs = set() for out in outputs: if not out.startswith('$'): print('WARNING: Rule for target %s writes output to local path %s' % (self.target, out)) dir = os.path.dirname(out) if dir: dirs.add(dir) extra_outputs += outputs if int(rule.get('process_outputs_as_sources', False)): extra_sources.extend(outputs) components = [] for component in rule['action']: component = self.ExpandInputRoot(component, rule_source_root, rule_source_dirname) if '$(RULE_SOURCES)' in component: component = component.replace('$(RULE_SOURCES)', rule_source) components.append(component) command = gyp.common.EncodePOSIXShellList(components) cd_action = 'cd $(gyp_local_path)/%s; ' % self.path command = cd_action + command if dirs: command = 'mkdir -p %s' % ' '.join(dirs) + '; ' + command # We set up a rule to build the first output, and then set up # a rule for each additional output to depend on the first. outputs = map(self.LocalPathify, outputs) main_output = outputs[0] self.WriteLn('%s: gyp_local_path := $(LOCAL_PATH)' % main_output) self.WriteLn('%s: gyp_var_prefix := $(GYP_VAR_PREFIX)' % main_output) self.WriteLn('%s: gyp_intermediate_dir := ' '$(abspath $(gyp_intermediate_dir))' % main_output) self.WriteLn('%s: gyp_shared_intermediate_dir := ' '$(abspath $(gyp_shared_intermediate_dir))' % main_output) # See explanation in WriteActions. self.WriteLn('%s: export PATH := ' '$(subst $(ANDROID_BUILD_PATHS),,$(PATH))' % main_output) main_output_deps = self.LocalPathify(rule_source) if inputs: main_output_deps += ' ' main_output_deps += ' '.join([self.LocalPathify(f) for f in inputs]) self.WriteLn('%s: %s $(GYP_TARGET_DEPENDENCIES)' % (main_output, main_output_deps)) self.WriteLn('\t%s\n' % command) for output in outputs[1:]: # Make each output depend on the main output, with an empty command # to force make to notice that the mtime has changed. self.WriteLn('%s: %s ;' % (output, main_output)) self.WriteLn() self.WriteLn() def WriteCopies(self, copies, extra_outputs): """Write Makefile code for any 'copies' from the gyp input. extra_outputs: a list that will be filled in with any outputs of this action (used to make other pieces dependent on this action) """ self.WriteLn('### Generated for copy rule.') variable = make.StringToMakefileVariable(self.relative_target + '_copies') outputs = [] for copy in copies: for path in copy['files']: # The Android build system does not allow generation of files into the # source tree. The destination should start with a variable, which will # typically be $(gyp_intermediate_dir) or # $(gyp_shared_intermediate_dir). Note that we can't use an assertion # because some of the gyp tests depend on this. if not copy['destination'].startswith('$'): print('WARNING: Copy rule for target %s writes output to ' 'local path %s' % (self.target, copy['destination'])) # LocalPathify() calls normpath, stripping trailing slashes. path = Sourceify(self.LocalPathify(path)) filename = os.path.split(path)[1] output = Sourceify(self.LocalPathify(os.path.join(copy['destination'], filename))) self.WriteLn('%s: %s $(GYP_TARGET_DEPENDENCIES) | $(ACP)' % (output, path)) self.WriteLn('\t@echo Copying: $@') self.WriteLn('\t$(hide) mkdir -p $(dir $@)') self.WriteLn('\t$(hide) $(ACP) -rpf $< $@') self.WriteLn() outputs.append(output) self.WriteLn('%s = %s' % (variable, ' '.join(map(make.QuoteSpaces, outputs)))) extra_outputs.append('$(%s)' % variable) self.WriteLn() def WriteSourceFlags(self, spec, configs): """Write out the flags and include paths used to compile source files for the current target. Args: spec, configs: input from gyp. """ for configname, config in sorted(configs.items()): extracted_includes = [] self.WriteLn('\n# Flags passed to both C and C++ files.') cflags, includes_from_cflags = self.ExtractIncludesFromCFlags( config.get('cflags', []) + config.get('cflags_c', [])) extracted_includes.extend(includes_from_cflags) self.WriteList(cflags, 'MY_CFLAGS_%s' % configname) self.WriteList(config.get('defines'), 'MY_DEFS_%s' % configname, prefix='-D', quoter=make.EscapeCppDefine) self.WriteLn('\n# Include paths placed before CFLAGS/CPPFLAGS') includes = list(config.get('include_dirs', [])) includes.extend(extracted_includes) includes = map(Sourceify, map(self.LocalPathify, includes)) includes = self.NormalizeIncludePaths(includes) self.WriteList(includes, 'LOCAL_C_INCLUDES_%s' % configname) self.WriteLn('\n# Flags passed to only C++ (and not C) files.') self.WriteList(config.get('cflags_cc'), 'LOCAL_CPPFLAGS_%s' % configname) self.WriteLn('\nLOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) ' '$(MY_DEFS_$(GYP_CONFIGURATION))') # Undefine ANDROID for host modules # TODO: the source code should not use macro ANDROID to tell if it's host # or target module. if self.toolset == 'host': self.WriteLn('# Undefine ANDROID for host modules') self.WriteLn('LOCAL_CFLAGS += -UANDROID') self.WriteLn('LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) ' '$(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))') self.WriteLn('LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))') # Android uses separate flags for assembly file invocations, but gyp expects # the same CFLAGS to be applied: self.WriteLn('LOCAL_ASFLAGS := $(LOCAL_CFLAGS)') def WriteSources(self, spec, configs, extra_sources): """Write Makefile code for any 'sources' from the gyp input. These are source files necessary to build the current target. We need to handle shared_intermediate directory source files as a special case by copying them to the intermediate directory and treating them as a genereated sources. Otherwise the Android build rules won't pick them up. Args: spec, configs: input from gyp. extra_sources: Sources generated from Actions or Rules. """ sources = filter(make.Compilable, spec.get('sources', [])) generated_not_sources = [x for x in extra_sources if not make.Compilable(x)] extra_sources = filter(make.Compilable, extra_sources) # Determine and output the C++ extension used by these sources. # We simply find the first C++ file and use that extension. all_sources = sources + extra_sources local_cpp_extension = '.cpp' for source in all_sources: (root, ext) = os.path.splitext(source) if IsCPPExtension(ext): local_cpp_extension = ext break if local_cpp_extension != '.cpp': self.WriteLn('LOCAL_CPP_EXTENSION := %s' % local_cpp_extension) # We need to move any non-generated sources that are coming from the # shared intermediate directory out of LOCAL_SRC_FILES and put them # into LOCAL_GENERATED_SOURCES. We also need to move over any C++ files # that don't match our local_cpp_extension, since Android will only # generate Makefile rules for a single LOCAL_CPP_EXTENSION. local_files = [] for source in sources: (root, ext) = os.path.splitext(source) if '$(gyp_shared_intermediate_dir)' in source: extra_sources.append(source) elif '$(gyp_intermediate_dir)' in source: extra_sources.append(source) elif IsCPPExtension(ext) and ext != local_cpp_extension: extra_sources.append(source) else: local_files.append(os.path.normpath(os.path.join(self.path, source))) # For any generated source, if it is coming from the shared intermediate # directory then we add a Make rule to copy them to the local intermediate # directory first. This is because the Android LOCAL_GENERATED_SOURCES # must be in the local module intermediate directory for the compile rules # to work properly. If the file has the wrong C++ extension, then we add # a rule to copy that to intermediates and use the new version. final_generated_sources = [] # If a source file gets copied, we still need to add the original source # directory as header search path, for GCC searches headers in the # directory that contains the source file by default. origin_src_dirs = [] for source in extra_sources: local_file = source if not '$(gyp_intermediate_dir)/' in local_file: basename = os.path.basename(local_file) local_file = '$(gyp_intermediate_dir)/' + basename (root, ext) = os.path.splitext(local_file) if IsCPPExtension(ext) and ext != local_cpp_extension: local_file = root + local_cpp_extension if local_file != source: self.WriteLn('%s: %s' % (local_file, self.LocalPathify(source))) self.WriteLn('\tmkdir -p $(@D); cp $< $@') origin_src_dirs.append(os.path.dirname(source)) final_generated_sources.append(local_file) # We add back in all of the non-compilable stuff to make sure that the # make rules have dependencies on them. final_generated_sources.extend(generated_not_sources) self.WriteList(final_generated_sources, 'LOCAL_GENERATED_SOURCES') origin_src_dirs = gyp.common.uniquer(origin_src_dirs) origin_src_dirs = map(Sourceify, map(self.LocalPathify, origin_src_dirs)) self.WriteList(origin_src_dirs, 'GYP_COPIED_SOURCE_ORIGIN_DIRS') self.WriteList(local_files, 'LOCAL_SRC_FILES') # Write out the flags used to compile the source; this must be done last # so that GYP_COPIED_SOURCE_ORIGIN_DIRS can be used as an include path. self.WriteSourceFlags(spec, configs) def ComputeAndroidModule(self, spec): """Return the Android module name used for a gyp spec. We use the complete qualified target name to avoid collisions between duplicate targets in different directories. We also add a suffix to distinguish gyp-generated module names. """ if int(spec.get('android_unmangled_name', 0)): assert self.type != 'shared_library' or self.target.startswith('lib') return self.target if self.type == 'shared_library': # For reasons of convention, the Android build system requires that all # shared library modules are named 'libfoo' when generating -l flags. prefix = 'lib_' else: prefix = '' if spec['toolset'] == 'host': suffix = '_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp' else: suffix = '_gyp' if self.path: middle = make.StringToMakefileVariable('%s_%s' % (self.path, self.target)) else: middle = make.StringToMakefileVariable(self.target) return ''.join([prefix, middle, suffix]) def ComputeOutputParts(self, spec): """Return the 'output basename' of a gyp spec, split into filename + ext. Android libraries must be named the same thing as their module name, otherwise the linker can't find them, so product_name and so on must be ignored if we are building a library, and the "lib" prepending is not done for Android. """ assert self.type != 'loadable_module' # TODO: not supported? target = spec['target_name'] target_prefix = '' target_ext = '' if self.type == 'static_library': target = self.ComputeAndroidModule(spec) target_ext = '.a' elif self.type == 'shared_library': target = self.ComputeAndroidModule(spec) target_ext = '.so' elif self.type == 'none': target_ext = '.stamp' elif self.type != 'executable': print("ERROR: What output file should be generated?", "type", self.type, "target", target) if self.type != 'static_library' and self.type != 'shared_library': target_prefix = spec.get('product_prefix', target_prefix) target = spec.get('product_name', target) product_ext = spec.get('product_extension') if product_ext: target_ext = '.' + product_ext target_stem = target_prefix + target return (target_stem, target_ext) def ComputeOutputBasename(self, spec): """Return the 'output basename' of a gyp spec. E.g., the loadable module 'foobar' in directory 'baz' will produce 'libfoobar.so' """ return ''.join(self.ComputeOutputParts(spec)) def ComputeOutput(self, spec): """Return the 'output' (full output path) of a gyp spec. E.g., the loadable module 'foobar' in directory 'baz' will produce '$(obj)/baz/libfoobar.so' """ if self.type == 'executable': # We install host executables into shared_intermediate_dir so they can be # run by gyp rules that refer to PRODUCT_DIR. path = '$(gyp_shared_intermediate_dir)' elif self.type == 'shared_library': if self.toolset == 'host': path = '$($(GYP_HOST_VAR_PREFIX)HOST_OUT_INTERMEDIATE_LIBRARIES)' else: path = '$($(GYP_VAR_PREFIX)TARGET_OUT_INTERMEDIATE_LIBRARIES)' else: # Other targets just get built into their intermediate dir. if self.toolset == 'host': path = ('$(call intermediates-dir-for,%s,%s,true,,' '$(GYP_HOST_VAR_PREFIX))' % (self.android_class, self.android_module)) else: path = ('$(call intermediates-dir-for,%s,%s,,,$(GYP_VAR_PREFIX))' % (self.android_class, self.android_module)) assert spec.get('product_dir') is None # TODO: not supported? return os.path.join(path, self.ComputeOutputBasename(spec)) def NormalizeIncludePaths(self, include_paths): """ Normalize include_paths. Convert absolute paths to relative to the Android top directory. Args: include_paths: A list of unprocessed include paths. Returns: A list of normalized include paths. """ normalized = [] for path in include_paths: if path[0] == '/': path = gyp.common.RelativePath(path, self.android_top_dir) normalized.append(path) return normalized def ExtractIncludesFromCFlags(self, cflags): """Extract includes "-I..." out from cflags Args: cflags: A list of compiler flags, which may be mixed with "-I.." Returns: A tuple of lists: (clean_clfags, include_paths). "-I.." is trimmed. """ clean_cflags = [] include_paths = [] for flag in cflags: if flag.startswith('-I'): include_paths.append(flag[2:]) else: clean_cflags.append(flag) return (clean_cflags, include_paths) def FilterLibraries(self, libraries): """Filter the 'libraries' key to separate things that shouldn't be ldflags. Library entries that look like filenames should be converted to android module names instead of being passed to the linker as flags. Args: libraries: the value of spec.get('libraries') Returns: A tuple (static_lib_modules, dynamic_lib_modules, ldflags) """ static_lib_modules = [] dynamic_lib_modules = [] ldflags = [] for libs in libraries: # Libs can have multiple words. for lib in libs.split(): # Filter the system libraries, which are added by default by the Android # build system. if (lib == '-lc' or lib == '-lstdc++' or lib == '-lm' or lib.endswith('libgcc.a')): continue match = re.search(r'([^/]+)\.a$', lib) if match: static_lib_modules.append(match.group(1)) continue match = re.search(r'([^/]+)\.so$', lib) if match: dynamic_lib_modules.append(match.group(1)) continue if lib.startswith('-l'): ldflags.append(lib) return (static_lib_modules, dynamic_lib_modules, ldflags) def ComputeDeps(self, spec): """Compute the dependencies of a gyp spec. Returns a tuple (deps, link_deps), where each is a list of filenames that will need to be put in front of make for either building (deps) or linking (link_deps). """ deps = [] link_deps = [] if 'dependencies' in spec: deps.extend([target_outputs[dep] for dep in spec['dependencies'] if target_outputs[dep]]) for dep in spec['dependencies']: if dep in target_link_deps: link_deps.append(target_link_deps[dep]) deps.extend(link_deps) return (gyp.common.uniquer(deps), gyp.common.uniquer(link_deps)) def WriteTargetFlags(self, spec, configs, link_deps): """Write Makefile code to specify the link flags and library dependencies. spec, configs: input from gyp. link_deps: link dependency list; see ComputeDeps() """ # Libraries (i.e. -lfoo) # These must be included even for static libraries as some of them provide # implicit include paths through the build system. libraries = gyp.common.uniquer(spec.get('libraries', [])) static_libs, dynamic_libs, ldflags_libs = self.FilterLibraries(libraries) if self.type != 'static_library': for configname, config in sorted(configs.items()): ldflags = list(config.get('ldflags', [])) self.WriteLn('') self.WriteList(ldflags, 'LOCAL_LDFLAGS_%s' % configname) self.WriteList(ldflags_libs, 'LOCAL_GYP_LIBS') self.WriteLn('LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) ' '$(LOCAL_GYP_LIBS)') # Link dependencies (i.e. other gyp targets this target depends on) # These need not be included for static libraries as within the gyp build # we do not use the implicit include path mechanism. if self.type != 'static_library': static_link_deps = [x[1] for x in link_deps if x[0] == 'static'] shared_link_deps = [x[1] for x in link_deps if x[0] == 'shared'] else: static_link_deps = [] shared_link_deps = [] # Only write the lists if they are non-empty. if static_libs or static_link_deps: self.WriteLn('') self.WriteList(static_libs + static_link_deps, 'LOCAL_STATIC_LIBRARIES') self.WriteLn('# Enable grouping to fix circular references') self.WriteLn('LOCAL_GROUP_STATIC_LIBRARIES := true') if dynamic_libs or shared_link_deps: self.WriteLn('') self.WriteList(dynamic_libs + shared_link_deps, 'LOCAL_SHARED_LIBRARIES') def WriteTarget(self, spec, configs, deps, link_deps, part_of_all, write_alias_target): """Write Makefile code to produce the final target of the gyp spec. spec, configs: input from gyp. deps, link_deps: dependency lists; see ComputeDeps() part_of_all: flag indicating this target is part of 'all' write_alias_target: flag indicating whether to create short aliases for this target """ self.WriteLn('### Rules for final target.') if self.type != 'none': self.WriteTargetFlags(spec, configs, link_deps) settings = spec.get('aosp_build_settings', {}) if settings: self.WriteLn('### Set directly by aosp_build_settings.') for k, v in settings.items(): if isinstance(v, list): self.WriteList(v, k) else: self.WriteLn('%s := %s' % (k, make.QuoteIfNecessary(v))) self.WriteLn('') # Add to the set of targets which represent the gyp 'all' target. We use the # name 'gyp_all_modules' as the Android build system doesn't allow the use # of the Make target 'all' and because 'all_modules' is the equivalent of # the Make target 'all' on Android. if part_of_all and write_alias_target: self.WriteLn('# Add target alias to "gyp_all_modules" target.') self.WriteLn('.PHONY: gyp_all_modules') self.WriteLn('gyp_all_modules: %s' % self.android_module) self.WriteLn('') # Add an alias from the gyp target name to the Android module name. This # simplifies manual builds of the target, and is required by the test # framework. if self.target != self.android_module and write_alias_target: self.WriteLn('# Alias gyp target name.') self.WriteLn('.PHONY: %s' % self.target) self.WriteLn('%s: %s' % (self.target, self.android_module)) self.WriteLn('') # Add the command to trigger build of the target type depending # on the toolset. Ex: BUILD_STATIC_LIBRARY vs. BUILD_HOST_STATIC_LIBRARY # NOTE: This has to come last! modifier = '' if self.toolset == 'host': modifier = 'HOST_' if self.type == 'static_library': self.WriteLn('include $(BUILD_%sSTATIC_LIBRARY)' % modifier) elif self.type == 'shared_library': self.WriteLn('LOCAL_PRELINK_MODULE := false') self.WriteLn('include $(BUILD_%sSHARED_LIBRARY)' % modifier) elif self.type == 'executable': self.WriteLn('LOCAL_CXX_STL := libc++_static') # Executables are for build and test purposes only, so they're installed # to a directory that doesn't get included in the system image. self.WriteLn('LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)') self.WriteLn('include $(BUILD_%sEXECUTABLE)' % modifier) else: self.WriteLn('LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp') self.WriteLn('LOCAL_UNINSTALLABLE_MODULE := true') if self.toolset == 'target': self.WriteLn('LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX)') else: self.WriteLn('LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_HOST_VAR_PREFIX)') self.WriteLn() self.WriteLn('include $(BUILD_SYSTEM)/base_rules.mk') self.WriteLn() self.WriteLn('$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)') self.WriteLn('\t$(hide) echo "Gyp timestamp: $@"') self.WriteLn('\t$(hide) mkdir -p $(dir $@)') self.WriteLn('\t$(hide) touch $@') self.WriteLn() self.WriteLn('LOCAL_2ND_ARCH_VAR_PREFIX :=') def WriteList(self, value_list, variable=None, prefix='', quoter=make.QuoteIfNecessary, local_pathify=False): """Write a variable definition that is a list of values. E.g. WriteList(['a','b'], 'foo', prefix='blah') writes out foo = blaha blahb but in a pretty-printed style. """ values = '' if value_list: value_list = [quoter(prefix + l) for l in value_list] if local_pathify: value_list = [self.LocalPathify(l) for l in value_list] values = ' \\\n\t' + ' \\\n\t'.join(value_list) self.fp.write('%s :=%s\n\n' % (variable, values)) def WriteLn(self, text=''): self.fp.write(text + '\n') def LocalPathify(self, path): """Convert a subdirectory-relative path into a normalized path which starts with the make variable $(LOCAL_PATH) (i.e. the top of the project tree). Absolute paths, or paths that contain variables, are just normalized.""" if '$(' in path or os.path.isabs(path): # path is not a file in the project tree in this case, but calling # normpath is still important for trimming trailing slashes. return os.path.normpath(path) local_path = os.path.join('$(LOCAL_PATH)', self.path, path) local_path = os.path.normpath(local_path) # Check that normalizing the path didn't ../ itself out of $(LOCAL_PATH) # - i.e. that the resulting path is still inside the project tree. The # path may legitimately have ended up containing just $(LOCAL_PATH), though, # so we don't look for a slash. assert local_path.startswith('$(LOCAL_PATH)'), ( 'Path %s attempts to escape from gyp path %s !)' % (path, self.path)) return local_path def ExpandInputRoot(self, template, expansion, dirname): if '%(INPUT_ROOT)s' not in template and '%(INPUT_DIRNAME)s' not in template: return template path = template % { 'INPUT_ROOT': expansion, 'INPUT_DIRNAME': dirname, } return os.path.normpath(path) def PerformBuild(data, configurations, params): # The android backend only supports the default configuration. options = params['options'] makefile = os.path.abspath(os.path.join(options.toplevel_dir, 'GypAndroid.mk')) env = dict(os.environ) env['ONE_SHOT_MAKEFILE'] = makefile arguments = ['make', '-C', os.environ['ANDROID_BUILD_TOP'], 'gyp_all_modules'] print('Building: %s' % arguments) subprocess.check_call(arguments, env=env) def GenerateOutput(target_list, target_dicts, data, params): options = params['options'] generator_flags = params.get('generator_flags', {}) builddir_name = generator_flags.get('output_dir', 'out') limit_to_target_all = generator_flags.get('limit_to_target_all', False) write_alias_targets = generator_flags.get('write_alias_targets', True) sdk_version = generator_flags.get('aosp_sdk_version', 0) android_top_dir = os.environ.get('ANDROID_BUILD_TOP') assert android_top_dir, '$ANDROID_BUILD_TOP not set; you need to run lunch.' def CalculateMakefilePath(build_file, base_name): """Determine where to write a Makefile for a given gyp file.""" # Paths in gyp files are relative to the .gyp file, but we want # paths relative to the source root for the master makefile. Grab # the path of the .gyp file as the base to relativize against. # E.g. "foo/bar" when we're constructing targets for "foo/bar/baz.gyp". base_path = gyp.common.RelativePath(os.path.dirname(build_file), options.depth) # We write the file in the base_path directory. output_file = os.path.join(options.depth, base_path, base_name) assert not options.generator_output, ( 'The Android backend does not support options.generator_output.') base_path = gyp.common.RelativePath(os.path.dirname(build_file), options.toplevel_dir) return base_path, output_file # TODO: search for the first non-'Default' target. This can go # away when we add verification that all targets have the # necessary configurations. default_configuration = None toolsets = set([target_dicts[target]['toolset'] for target in target_list]) for target in target_list: spec = target_dicts[target] if spec['default_configuration'] != 'Default': default_configuration = spec['default_configuration'] break if not default_configuration: default_configuration = 'Default' srcdir = '.' makefile_name = 'GypAndroid' + options.suffix + '.mk' makefile_path = os.path.join(options.toplevel_dir, makefile_name) assert not options.generator_output, ( 'The Android backend does not support options.generator_output.') gyp.common.EnsureDirExists(makefile_path) root_makefile = open(makefile_path, 'w') root_makefile.write(header) # We set LOCAL_PATH just once, here, to the top of the project tree. This # allows all the other paths we use to be relative to the Android.mk file, # as the Android build system expects. root_makefile.write('\nLOCAL_PATH := $(call my-dir)\n') # Find the list of targets that derive from the gyp file(s) being built. needed_targets = set() for build_file in params['build_files']: for target in gyp.common.AllTargets(target_list, target_dicts, build_file): needed_targets.add(target) build_files = set() include_list = set() android_modules = {} for qualified_target in target_list: build_file, target, toolset = gyp.common.ParseQualifiedTarget( qualified_target) relative_build_file = gyp.common.RelativePath(build_file, options.toplevel_dir) build_files.add(relative_build_file) included_files = data[build_file]['included_files'] for included_file in included_files: # The included_files entries are relative to the dir of the build file # that included them, so we have to undo that and then make them relative # to the root dir. relative_include_file = gyp.common.RelativePath( gyp.common.UnrelativePath(included_file, build_file), options.toplevel_dir) abs_include_file = os.path.abspath(relative_include_file) # If the include file is from the ~/.gyp dir, we should use absolute path # so that relocating the src dir doesn't break the path. if (params['home_dot_gyp'] and abs_include_file.startswith(params['home_dot_gyp'])): build_files.add(abs_include_file) else: build_files.add(relative_include_file) base_path, output_file = CalculateMakefilePath(build_file, target + '.' + toolset + options.suffix + '.mk') spec = target_dicts[qualified_target] configs = spec['configurations'] part_of_all = qualified_target in needed_targets if limit_to_target_all and not part_of_all: continue relative_target = gyp.common.QualifiedTarget(relative_build_file, target, toolset) writer = AndroidMkWriter(android_top_dir) android_module = writer.Write(qualified_target, relative_target, base_path, output_file, spec, configs, part_of_all=part_of_all, write_alias_target=write_alias_targets, sdk_version=sdk_version) if android_module in android_modules: print('ERROR: Android module names must be unique. The following ' 'targets both generate Android module name %s.\n %s\n %s' % (android_module, android_modules[android_module], qualified_target)) return android_modules[android_module] = qualified_target # Our root_makefile lives at the source root. Compute the relative path # from there to the output_file for including. mkfile_rel_path = gyp.common.RelativePath(output_file, os.path.dirname(makefile_path)) include_list.add(mkfile_rel_path) root_makefile.write('GYP_CONFIGURATION ?= %s\n' % default_configuration) root_makefile.write('GYP_VAR_PREFIX ?=\n') root_makefile.write('GYP_HOST_VAR_PREFIX ?=\n') root_makefile.write('GYP_HOST_MULTILIB ?= first\n') # Write out the sorted list of includes. root_makefile.write('\n') for include_file in sorted(include_list): root_makefile.write('include $(LOCAL_PATH)/' + include_file + '\n') root_makefile.write('\n') if write_alias_targets: root_makefile.write(ALL_MODULES_FOOTER) root_makefile.close() PK!??t xcode_test.pynu[#! /usr/bin/python2 # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Unit tests for the xcode.py file. """ import gyp.generator.xcode as xcode import unittest import sys class TestEscapeXcodeDefine(unittest.TestCase): if sys.platform == 'darwin': def test_InheritedRemainsUnescaped(self): self.assertEqual(xcode.EscapeXcodeDefine('$(inherited)'), '$(inherited)') def test_Escaping(self): self.assertEqual(xcode.EscapeXcodeDefine('a b"c\\'), 'a\\ b\\"c\\\\') if __name__ == '__main__': unittest.main() PK!npot/message_extractor.rbnu[PK!jl{ gpot/po_entry.rbnu[PK! pot/po.rbnu[PK!&spot.rbnu[PK!r $#template/json_index/js/navigation.jsnu[PK!P^".template/json_index/js/searcher.jsnu[PK!^2Htemplate/darkfish/_sidebar_table_of_contents.rhtmlnu[PK!>qq& Ktemplate/darkfish/fonts/Lato-Light.ttfnu[PK!䍒TtTt./template/darkfish/fonts/Lato-RegularItalic.ttfnu[PK!^b.1template/darkfish/fonts/SourceCodePro-Bold.ttfnu[PK!՞ww([Ntemplate/darkfish/fonts/Lato-Regular.ttfnu[PK!Zoo,ktemplate/darkfish/fonts/Lato-LightItalic.ttfnu[PK!I16template/darkfish/fonts/SourceCodePro-Regular.ttfnu[PK!TB)T template/darkfish/_sidebar_in_files.rhtmlnu[PK![L>>U template/darkfish/index.rhtmlnu[PK!3^^hX template/darkfish/_footer.rhtmlnu[PK!BYZ template/darkfish/class.rhtmlnu[PK! O2]]*o template/darkfish/_sidebar_installed.rhtmlnu[PK! NNN)q template/darkfish/servlet_not_found.rhtmlnu[PK!QCC)Js template/darkfish/_sidebar_sections.rhtmlnu[PK!鿶)t template/darkfish/table_of_contents.rhtmlnu[PK!^mq(D{ template/darkfish/_sidebar_classes.rhtmlnu[PK!E`(| template/darkfish/_sidebar_methods.rhtmlnu[PK!5)~ template/darkfish/_sidebar_includes.rhtmlnu[PK!   template/darkfish/js/search.jsnu[PK!13 3 % template/darkfish/js/darkfish.jsnu[PK!g:) template/darkfish/_sidebar_VCS_info.rhtmlnu[PK!{wj$ template/darkfish/servlet_root.rhtmlnu[PK!h˟ee& template/darkfish/images/tag_green.pngnu[PK!=V0΢ template/darkfish/images/bullet_toggle_minus.pngnu[PK!S  template/darkfish/images/bug.pngnu[PK!0 "S template/darkfish/images/brick.pngnu[PK!$V(i template/darkfish/images/macFFBgHack.pngnu[PK!Zmm' template/darkfish/images/page_green.pngnu[PK!(VV,T template/darkfish/images/page_white_text.pngnu[PK!P# template/darkfish/images/delete.pngnu[PK!Os~ $ template/darkfish/images/add.pngnu[PK!CCJUU$Q template/darkfish/images/package.pngnu[PK!(?Y) template/darkfish/images/bullet_black.pngnu[PK!)oHH* template/darkfish/images/wrench_orange.pngnu[PK!7 !? template/darkfish/images/zoom.pngnu[PK!"55-D template/darkfish/images/page_white_width.pngnu[PK!Utt% template/darkfish/images/arrow_up.pngnu[PK!R7' template/darkfish/images/brick_link.pngnu[PK!bb# template/darkfish/images/wrench.pngnu[PK!Err! template/darkfish/images/date.pngnu[PK!#۸PP!j template/darkfish/images/ruby.pngnu[PK!zz' template/darkfish/_sidebar_parent.rhtmlnu[PK!޹+ template/darkfish/_sidebar_navigation.rhtmlnu[PK!3( template/darkfish/_sidebar_extends.rhtmlnu[PK!o'' template/darkfish/css/rdoc.cssnu[PK!;9Iv # template/darkfish/css/fonts.cssnu[PK!` eL< template/darkfish/page.rhtmlnu[PK!OO&G> template/darkfish/_sidebar_pages.rhtmlnu[PK!e]]? template/darkfish/_head.rhtmlnu[PK!*f'C template/darkfish/_sidebar_search.rhtmlnu[PK!ДU ~F markup.rbnu[PK!q S json_index.rbnu[PK!P Q Q r darkfish.rbnu[PK!f=w ri.rbnu[PK!S'GG  template/darkfish/filepage.rhtmlnu[PK!}5}5d template/darkfish/rdoc.cssnu[PK! |;ff+ template/darkfish/js/jquery.jsnu[PK!/qZZ+r template/darkfish/js/thickbox-compressed.jsnu[PK!S< #C template/darkfish/js/quicksearch.jsnu[PK!c..! template/darkfish/classpage.rhtmlnu[PK!; FactoryClass.phpnu[PK!g)   FactoryFile.phpnu[PK!Sȴ StaticMethodFile.phpnu[PK!sTH FactoryParameter.phpnu[PK!G { FactoryGenerator.phpnu[PK!uv GlobalFunctionFile.phpnu[PK!c]W;;_ run.phpnu[PK!Z; parts/matchers_footer.txtnu[PK!| xx parts/file_header.txtnu[PK!ݬ parts/matchers_imports.txtnu[PK! >7 parts/functions_header.txtnu[PK!;VV parts/matchers_header.txtnu[PK! parts/functions_imports.txtnu[PK! parts/functions_footer.txtnu[PK!k3ccC FactoryCall.phpnu[PK!D.G FactoryMethod.phpnu[PK!@;gypsh.pynu[PK!M1  msvs.pynu[PK! "__init__.pynu[PK!g##ninja.pynu[PK!i(՟  dump_dependency_json.pynu[PK!433 ݺmsvs_test.pynu[PK!sB#˱Lcompile_commands_json.pynu[PK! Excode.pynu[PK!y>ww sanalyzer.pynu[PK!'ukukQ,make.pynu[PK!ގ gypd.pynu[PK!1wo ¥ninja_test.pynu[PK!7欄ƮƮլcmake.pynu[PK!:>ӓBB [eclipse.pynu[PK!ʩ88 android.pynu[PK!??t ePxcode_test.pynu[PKhh%%S