blob: 546dd963f6739bde831e749305549ed964ef2b88 [file] [log] [blame]
caryclark5ef194c2015-08-31 09:22:38 -07001/*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
Mike Kleinc0bd9f92019-04-23 12:05:21 -05008#include "include/core/SkGraphics.h"
caryclark5ef194c2015-08-31 09:22:38 -07009
caryclark5ef194c2015-08-31 09:22:38 -070010extern bool CheckChecksums();
11extern bool GenerateChecksums();
12
Mike Kleinbe28ee22017-02-06 12:46:20 -050013int main(int argc, char** argv) {
caryclark5ef194c2015-08-31 09:22:38 -070014 if (argc == 2) {
15 SkAutoGraphics ag; // Enable use of SkRTConfig
16 if (!strcmp(argv[1], "--check")) {
17 return (int) !CheckChecksums();
18 }
19 if (!strcmp(argv[1], "--generate")) {
20 if (!GenerateChecksums()) {
21 return 2;
22 }
23 return 0;
24 }
25 }
26 SkDebugf("Usage:\n %s [--check] [--generate]\n\n", argv[0]);
27 return 3;
28}