aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/whitelist_typefaces.cpp
blob: 5cdfb6abe28cbd57eb604348c2ea1760a3a20492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright 2013 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "SkGraphics.h"

extern bool CheckChecksums();
extern bool GenerateChecksums();

int main(int argc, char** argv) {
    if (argc == 2) {
        SkAutoGraphics ag;  // Enable use of SkRTConfig
        if (!strcmp(argv[1], "--check")) {
            return (int) !CheckChecksums();
        }
        if (!strcmp(argv[1], "--generate")) {
            if (!GenerateChecksums()) {
                return 2;
            }
            return 0;
        }
    }
    SkDebugf("Usage:\n %s [--check] [--generate]\n\n", argv[0]);
    return 3;
}