Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: Source/build/scripts/templates/macros.tmpl

Issue 26414004: Move core/scripts to build/scripts so that platform can use them. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 {% macro wrap_with_condition(condition) %} 1 {% macro wrap_with_condition(condition) %}
2 {%- if condition %} 2 {%- if condition %}
3 #if ENABLE({{condition}}) 3 #if ENABLE({{condition}})
4 {{- caller() }} 4 {{- caller() }}
5 #endif 5 #endif
6 {%- else %} 6 {%- else %}
7 {{- caller() }} 7 {{- caller() }}
8 {%- endif %} 8 {%- endif %}
9 {%- endmacro %} 9 {%- endmacro %}
10 10
(...skipping 28 matching lines...) Expand all
39 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 39 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
40 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 40 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
41 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 41 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
42 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 42 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43 */ 43 */
44 {%- endmacro %} 44 {%- endmacro %}
45 45
46 {% macro lower_first(s) -%} 46 {% macro lower_first(s) -%}
47 {{ (s[0]|lower) + s[1:] }} 47 {{ (s[0]|lower) + s[1:] }}
48 {%- endmacro %} 48 {%- endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698